[squid-users] outgoing address for DNS queries per instance

Amos Jeffries squid3 at treenet.co.nz
Mon Aug 5 09:57:04 UTC 2019


On 5/08/19 9:33 pm, --Ahmad-- wrote:
> Hello folks 
> i have 3 squid instances and i want to have different external ip for each squid instance .
> 
> i believed acls of dst ip of dns should work .
> but i even tested it didnt with the outgoing address .
> 
> dns_nameservers 8.8.8.8
> acl next dst 8.8.8.8
> tcp_outgoing_address 100.100.100.100 next
> 
> 
> but the problem when i do debug , the src ip that reach 8.8.8.8 is no 100.100.100.100 and its only the ip address of the main machine .
> 
> any help ?


DNS uses <http://www.squid-cache.org/Doc/config/udp_outgoing_address/>.
Despite the directive name, it is also used for DNS-TCP traffic.

Amos


More information about the squid-users mailing list