outgoing address for DNS queries per instance

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

outgoing address for DNS queries per instance

--Ahmad--
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 ?

Thanks

_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: outgoing address for DNS queries per instance

Amos Jeffries
Administrator
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
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: outgoing address for DNS queries per instance

--Ahmad--
Nice ! 

Thanks Amos ! 

On 5 Aug 2019, at 12:57, Amos Jeffries <[hidden email]> wrote:

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
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users


_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users