I have a very sticky problem.

My squid machine is between LAN and my DSL modem.Eth0 is is connected to LAN switch while Eth1 is connected with the DSL modem.I have following in my rc.local for tranparent proxy and masquerading.

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A PREROUTING -i eth0 -p udp --dport 80 -j REDIRECT --to-port 3128
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

Are my above lines ok ??

My /etc/hosts file is..while my machine name is linuxgateway.ecda.gov.pk localhost.localdomain localhost linuxgateway.ecda.gov.pk linuxgateway

and in resolve.conf

while is the ip of my DSL

My route output is

[root@linuxgateway ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface * U 0 0 0 eth0 * U 0 0 0 eth1 * U 0 0 0 eth1
default UG 0 0 0 eth0

The problem is my browsing suddenly stops working.the output of route command is v slow.When i restart server browsing strts as normal, but after some time it again slows down.