[mdlug] Need an iptables rule for bypassing a proxy

Jeff Hanson jhansonxi at gmail.com
Wed Dec 29 18:34:54 EST 2010


I've got DansGuardian on 8080 -> Squid on 3128.  Firefox is set to use
8080 as its proxy.  I need a rule to bypass DG and connect to Squid
directly.  I tried this but it doesn't work:

iptables -t nat -A PREROUTING -i lo -p tcp --dport 8080 -j REDIRECT
--to-port 3128

Didn't work with eth0 either.  Firefox reports it doesn't get a
response from the proxy.

The idea here is to bypass DG without having to change Firefox's proxy settings.

(I tried to post this to the mailing list at lugwash.org but their
server is down again.)



More information about the mdlug mailing list