Re: [squid-users] iptables syntax

From: Indunil Jayasooriya <indunil75_at_gmail.com>
Date: Mon, 16 Jun 2008 11:26:22 +0530

> I will run Squid on Linux OS, with transparent mode.
> Should I use iptables to do the http intercept?
> what's the iptables syntax? please help, thank you.

How many network card does this squid box have?

in squid.conf, Pls add below line

http_port 3128 transparent

This is the iptables rule

#Redirecting traffic destined to port 80 to port 3128
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j REDIRECT
--to-port 3128

for more, pls visit below URL

http://wiki.squid-cache.org/SquidFaq/InterceptionProxy

Happy Squiding

-- 
Thank you
Indunil Jayasooriya
Received on Mon Jun 16 2008 - 05:56:28 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 16 2008 - 12:00:03 MDT