Take the 2-minute tour ×  Hello for all you people,  I am
setting in Squid-Proxy two outputs internet. Below is a
"diagram" of the final result I want to get:  SERVER2: Internet2
:: Client :: ----- SERVER1 ---> INTERNET (MODEM)
| -----> SERVER2 ----> INTERNET (MODEM 2)  I've configured in
squid.conf the following lines:  acl route_alt dstdomain
.whatismyip.com tcp_outgoing_address <IP_SERVER2> route_alt
Restarting Squid and trying to access the site, returns me the
following error: "(99) Can not assign requested address"  So
googling, I found and did the following: echo 1> /
proc/sys/net/ipv4/ip_nonlocal_bind  Now trying to access the
site, returns me the following error: "(22) Invalid argument"
These errors, only "(99) Can not assign requested address" shows
me in /var/log/squid/cache.log. The other did not find it
anywhere.  Strace'ing I found the following:  connect(267,
{sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("")},
16) = -1 EINVAL (Invalid  Squid version is 3