Squid 2.7.6 not honoring ACL rules

Posted by peppery on Server Fault See other posts from Server Fault or by peppery
Published on 2010-05-17T11:51:14Z Indexed on 2010/05/17 12:01 UTC
Read the original article Hit count: 175

Filed under:
|
|
|
|

Hello there,

I have a /24 block of IP addresses assigned to a single server that I have been attempting to install Squid on an Ubuntu server machine.

All of the IP addresses are set up correctly (aliases of eth0) in /etc/networking and work as they should be, using cURL I can specify an interface and it goes out on the correct address as it should be.

I would like Squid to take the incoming IP address the request was sourced to and proxy the request out on the same IP (e.g incoming 123.123.123.1:3128 -> 123.123.123.1, .2 -> .2, etc) and have set up these ACL rules in /etc/squid.conf

acl ip1 myip x.x.x.1
tcp_outgoing_address x.x.x.1 ip1
acl ip2 myip x.x.x.2
tcp_outgoing_address x.x.x.2 ip2
acl ip3 myip x.x.x.3
tcp_outgoing_address x.x.x.3 ip3

and so on, as this seems to be the only way to do what I want (from research). However, after much frustration, Squid seems to be ignoring these rules and sending requests out on the default interface.

Does anybody have any suggestions?

Thanks.

© Server Fault or respective owner

Related posts about squid

Related posts about linux