I have configured squid to support transparency using this command

./configure --enable-ipfw-transparent --enable-ssl

I have started squid, is there any other configuration that i need to add so that all web requests do not bypass the proxy

I have already setup the squid machine to have transparent proxying on

The machine I have setup for squid is not running as the gateway to the internet, How do I setup so that all http requests go through to squid?

Do i have to use IP tables? where do i setup the IP tables? on the gateway? or squid machine?

1 Answer 1


You need to configure squid.conf to enable the transparent proxy mode. Then, you need to configure your firewall to redirect all web traffic through the proxy. You can look up the information elsewhere.

  • What if I have not installed the squid machine as the gateway? How can i get only the web requests from port 80
    – Gatura
    Feb 10, 2010 at 12:17
  • You need to make the firewall changes on your gateway. I have such a configuration. My router redirects traffic to the squid proxy which is on another machine. The only web traffic it allows thru is the one from the squid proxy.
    – sybreon
    Feb 11, 2010 at 7:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .