# Configure squid to listen on any IP address with port 80

**URL:** <https://community.unix.com/t/configure-squid-to-listen-on-any-ip-address-with-port-80/298768>\
**Category:** IP Networking\
**Created:** [November 8, 2011, 1:41am UTC](https://community.unix.com/t/configure-squid-to-listen-on-any-ip-address-with-port-80/298768 "2011-11-08T01:41:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Learner32](https://community.unix.com/letter_avatar/learner32/32/5_5575768a8748004e209b776fc1b2916d.png) [@Learner32](https://community.unix.com/u/Learner32)\
**Post date:** [November 8, 2011, 1:41am UTC](https://community.unix.com/t/configure-squid-to-listen-on-any-ip-address-with-port-80/298768/1 "2011-11-08T01:41:35Z")

</div>

Hi,

I am trying to configure a transparent squid cache. When I try to use the below option in squid.conf, squid listens on port 80 only for the IP address configured on the system's interface.

http\_port 80 transparent

But I want squid to accept connections for any IP address on port 80.  
I don't want to bind any specific IP address. It should listen to all IP addresses.

Could anyone let me know how this can be done?

---

<div class="post-metadata">

**Author:** ![pludi](https://community.unix.com/user_avatar/community.unix.com/pludi/32/1278_2.png) [@pludi](https://community.unix.com/u/pludi)\
**Post date:** [November 8, 2011, 3:43am UTC](https://community.unix.com/t/configure-squid-to-listen-on-any-ip-address-with-port-80/298768/2 "2011-11-08T03:43:42Z")

</div>

Even if you could configure squid to listen to all addresses it wouldn't work, as only that traffic directed at it would reach it anyways. That's what routers and switches do. A transparent proxy is usually done by redirecting, on the firewall, all client traffic to the proxy. The client still doesn't see it.

---

<div class="post-metadata">

**Author:** ![Learner32](https://community.unix.com/letter_avatar/learner32/32/5_5575768a8748004e209b776fc1b2916d.png) [@Learner32](https://community.unix.com/u/Learner32)\
**Post date:** [November 8, 2011, 4:13am UTC](https://community.unix.com/t/configure-squid-to-listen-on-any-ip-address-with-port-80/298768/3 "2011-11-08T04:13:05Z")

</div>

Thanks for your reply.

I am actually redirecting all the traffic to the squid cache without changing the Destination IP to achieve full transparency. But the squid doesn't respond to the traffic since it is listening on the IP s configured on the interface.

So I would like to know how to make the squid listen on any IP.

---

<div class="post-metadata">

**Author:** ![Corona688](https://community.unix.com/letter_avatar/corona688/32/5_5575768a8748004e209b776fc1b2916d.png) [@Corona688](https://community.unix.com/u/Corona688)\
**Post date:** [November 8, 2011, 12:41pm UTC](https://community.unix.com/t/configure-squid-to-listen-on-any-ip-address-with-port-80/298768/4 "2011-11-08T12:41:51Z")

</div>

Internet Protocol doesn't work that way. If you want them to connect to SQUID, redirect them into SQUID.

You won't get "full transparency" anyway because squid remains the only thing making outgoing connections to the destination server, not the client.
