Search squid archive

Re: Transparent caching problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kamel,

I used

1-  For  gre tunned, after loading ip_gre module at startup, I have
this gre interface.
You can copie it exactly the IP address in there doesn't matter.

[root@cachedla network-scripts]# cat ifcfg-gre0
DEVICE=gre0
BOOTPROTO=static
IPADDR=172.16.1.6
NETMASK=255.255.255.252
ONBOOT=yes
IPV6INIT=no

and

2- for  ip tables
-A PREROUTING -s My_Network/20  -d ! My_Network/20 -i gre0 -p tcp -m
tcp --dport 80 -j DNAT --to-destination my_cache_server_IP:3128

This is where I was mistaken, after doing this it worked!!

3- Make sure your /etc/sysctl.conf is allright too
# Controls IP packet forwarding
net.ipv4.ip_forward = 1

# Controls source route verification
net.ipv4.conf.default.rp_filter = 0

For more details on IP tables and GRE, please check these links  ;)
http://www.reub.net/node/3

http://www.squid-cache.org/mail-archive/squid-users/200510/0027.html


Hope this helps,

--
--------------------------
Daniel Epee Lea


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux