If the above looks strange, recall that the first matching
tcp_outgoing_address rule/line wins, and the rules are tested
individually and independently in the order they appear in squid.conf.
The rest is basic probability theory, but it may also think about it in
1. Given that there are five possible addresses, how much traffic should
the first out of those five address receive? Obviously 1/5.
2. Now, if the first rule did not match, then there are four addresses
left. Given that there are four possible addresses, how much traffic
should the first out of those four address receive? Obviously 1/4.
> When I look at the log, or using network tcpdump analyzer, I can see
> that there is squid outgoing traffic on this IP
Yes, AFAICT, your rules did not tell Squid to use a specific secondary
IP in 33% of cases: (1-1/5)^5 = 0.33
Re: tcp_outgoing_address issue how to deny traffic to other IPs
Hi Alex, Ivan,
I finally found time to change/test the squid config to load balance on
outgoing IPs, and thanks you very much it works very good. All traffic
is not output according to the rules to the right IPs.
Other question I will open a new thread.
Many many thanks.
Le 23/02/2018 à 00:09, Alex Rousskov a écrit :
> On 02/22/2018 02:52 PM, Ivan Larionov wrote:
>> Your balancing rules are incorrect. This is how we balance 30% per IP:
> You won the race! Perhaps our similar emails will increase the page rank
> of the correct answers to this FAQ. :-).
> squid-users mailing list
> [hidden email] > http://lists.squid-cache.org/listinfo/squid-users