Quote:
Originally Posted by soumalya
Sir
In my centos 5 server
eth0 is connected to ppp for internet (adsl-setup)
eth1 is connected to lan 172.16.0.3
I have tried to configure transparent proxy using squid (squid is attached)
#iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j DNAT --to-destination 172.16.0.3:3128
#iptables -t nat -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
but when I use proxy setting in client browser I can access internet, but whn no proxy and gateway 172.16.0.3, I can not access.
please guide me if I made anything wrong.
|
Apparently, you keep missing the part where folks tell you there are NOT JUST SIRS on this site.
And you've asked this question before:
http://www.linuxquestions.org/questi...outing-886210/
http://www.linuxquestions.org/questi...-proxy-701710/
http://www.linuxquestions.org/questi...-proxy-701710/
You don't seem to be using the postrouting commands, and don't say whether or not you've enabled IP forwarding on your system. Have you followed the advice given in your other threads???? And again, your 'problem' doesn't sound like one...you say that you've got a proxy server in place, and that if you don't set your clients up to used it, Internet doesn't work. Yes, that sounds like what it SHOULD do...