Search squid archive

Re: squid proxy - multiple outgoing IP addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cameron Knowlton wrote:
To clarify, I already have the application coded to round robin through a provided list of IP:port combinations, I simply need to get Squid to run on both local IPs.

Supplying multiple http_port directives to Squid doesn't seem to do the trick:

http_port 24.69.1.2:%PORT%
http_port 24.69.1.3:%PORT%

I only seem to get Squid to run on 24.69.1.2.  :(

Some additional configuration is required:

* an ACL to for each receiving port to match only traffic arriving at that port. * tcp_outgoing_addr using those ACL to explicitly set the Squid outbound IP on traffic arriving at a given port.

For example:

  http_port 1.2.3.4:3128 name=A
  http_port 1.2.3.5:3128 name=B

  acl fromA myportname A
  tcp_outgoing_address 1.2.3.4 fromA
  tcp_outgoing_address 1.2.3.4 !all

  acl fromB myportname B
  tcp_outgoing_address 1.2.3.5 fromB
  tcp_outgoing_address 1.2.3.5 !all


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20
  Current Beta Squid 3.1.0.14

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux