Re: [squid-users] squid transparent proxy still not working

From: Indunil Jayasooriya <indunil75@dont-contact.us>
Date: Mon, 11 Feb 2008 08:29:29 +0530

> and this is my iptables for squid transparent
> iptables -t nat -A PREROUTING -i eth0 -s 192.168.10.10
> -p tcp --dport 80 -j ACCEPT
> iptables -t nat -A PREROUTING -i eth1 -s 192.168.10/24
> -p tcp --dport 80 -j REDIRECT --to-port 8080
> iptables -t filter -A FORWARD -i eth1 -s 192.168.10/24
> -p tcp --dport 80 -j REJECT

pls try below 2 iptables rules

 iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 8080 -j REDIRECT
 --to-port 3128

 iptables -A INPUT -i eth1 -d 192.168.10.10 -p tcp -s
 192.168.101.0/24 --dport 3128 -j ACCEPT

I assume 192.168.10.10 is the ip of squid proxy server's LAN ip. pls
add this ip to client's gateway

-- 
Thank you
Indunil Jayasooriya
Received on Sun Feb 10 2008 - 19:59:34 MST

This archive was generated by hypermail pre-2.1.9 : Sat Mar 01 2008 - 12:00:05 MST