Hi list,
I was following these instructions for a transparent proxy/router box:
http://en.tldp.org/HOWTO/TransparentProxy.html
There is one more thing I want to do that wasn't covered. The guide
gives this command and the magic to "transparently" re-route all traffic
coming in on eth0 destined for port 80 to the local proxy:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 3128
How can I do the same for traffic that originates on the local host? I
tried the same command without "-i eth0" but that seems to have had no
effect.
More concisely: I have the web browser and the proxy running on the same
machine. I want to tell Linux to redirect the browsers traffic (*:80)
to localhost:3128.
TIA,
-- Arran
--
gentoo-user@gentoo.org mailing list
I was following these instructions for a transparent proxy/router box:
http://en.tldp.org/HOWTO/TransparentProxy.html
There is one more thing I want to do that wasn't covered. The guide
gives this command and the magic to "transparently" re-route all traffic
coming in on eth0 destined for port 80 to the local proxy:
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 3128
How can I do the same for traffic that originates on the local host? I
tried the same command without "-i eth0" but that seems to have had no
effect.
More concisely: I have the web browser and the proxy running on the same
machine. I want to tell Linux to redirect the browsers traffic (*:80)
to localhost:3128.
TIA,
-- Arran
--
gentoo-user@gentoo.org mailing list