[squid-users] Squid problem

From: Munawar Zeeshan <[email protected]>
Date: Tue, 13 Feb 2007 12:03:45 +0500

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.

/usr/local/squid/sbin/squid
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

127.0.0.1 localhost.localdomain localhost
192.168.3.1 linuxgateway.ecda.gov.pk linuxgateway

and in resolve.conf
nameserver 192.168.3.81

while 192.168.3.81 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
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
192.168.3.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 192.168.3.81 0.0.0.0 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.

-- 
Munawar Zeeshan
Islamabad,Pakistan
+92-300-514-6886
+92-321-535-4851
Received on Tue Feb 13 2007 - 00:03:49 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST