Search squid archive

Re: iptables syntax

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

 



> 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

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

  Powered by Linux