[CentOS] How to setup both Transpaent Proxy and firewall on the same Machine.

Indunil Jayasooriya indunil75 at gmail.com
Thu Jun 14 04:11:53 UTC 2007


Thanks, By now I have solved it.


> >  iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
> >  --to-port 3128
>
> Which side is eth0 pointing to?  LAN or Internet?  If it's the Internet side
> then you need to change the above to the LAN side.
>

U R RIGHT. eth0 is connected to INTERNET.

I changed it to eth2.





-- 
Thank you
Indunil Jayasooriya



More information about the CentOS mailing list