How to configure Transparent Proxy With Bridging

If you are trying to setup a transparent proxy on a Linux machine that has been configured as a bridge, you will need to add one additional iptables command to what we had in section 5. Specifically, you need to explicitly allow connections to the machine on port 3128 (or any other port squid is listening on), otherwise the machine will just forward them over to the other interface like a good little bridge. Here’s the magic words:

  • iptables -A INPUT -i interface -p tcp -d your_bridge_ip -s local-network --dport 3128 -m state --state NEW,ESTABLISHED -j ACCEPT

Replacing interface with the interface that corresponds to your_bridge_ip (typically eth0 or eth1). First time bridge users should also note that you’ll probably want to repeat the same command with “3128” replaced by “telnet” if you want to administer your bridge remotely.


One Response to “How to configure Transparent Proxy With Bridging”

  • … [Trackback]…

    [...] There you will find 88682 more Infos: techgurulive.com/2008/11/29/how-to-configure-transparent-proxy-with-bridging/ [...]…


Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>