Search squid archive

Re: squid transparent proxy still not working

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

 



> 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

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

  Powered by Linux