Mar 212014
 

Start from squid 3.2, as mentioned here, you can use random acl. This helps me achieve my goal to round-robin outgoing IP address as follow:

[raw]
acl one_fourth_1 random 1/4
acl one_fourth_2 random 1/3
acl one_fourth_3 random 1/2
acl one_fourth_4 random 1/1

tcp_outgoing_address xxx.xxx.xxx.203 one_fourth_1
tcp_outgoing_address xxx.xxx.xxx.204 one_fourth_2
tcp_outgoing_address xxx.xxx.xxx.205 one_fourth_3
tcp_outgoing_address xxx.xxx.xxx.206 one_fourth_4
[/raw]

Sure you need to have all these IPs configured on your server.

  One Response to “Squid’s outgoing IP round robin”

  1. Thanks mate, this just saved me from a lot of work. I’ve been looking for a way to forward my ips with squid and the multiple_ip_balance option wasn’t good enough.

Sorry, the comment form is closed at this time.