cache peer , force peer to use dns ipv4 not ipv6

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

cache peer , force peer to use dns ipv4 not ipv6

--Ahmad--
Hello Team ,

just wondering .

using cache peer to FWD request to upstream squid .

the problem is sometimes the Upstream go to destination over ipv6 .

is there an option can be used to force the peer to use ipv4 dns ?

agian , we dont have an access to upstream upstream  , just wondering can we do something our side ?

Thanks


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

Re: cache peer , force peer to use dns ipv4 not ipv6

Amos Jeffries
Administrator
On 3/09/19 4:45 pm, --Ahmad-- wrote:

> Hello Team ,
>
> just wondering .
>
> using cache peer to FWD request to upstream squid .
>
> the problem is sometimes the Upstream go to destination over ipv6 .
>
> is there an option can be used to force the peer to use ipv4 dns ?
>

Put the IPv4 address of the peer into the cache_peer line instead of its
hostname.


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

Re: cache peer , force peer to use dns ipv4 not ipv6

Giles Coochey

On 03/09/2019 09:23, Amos Jeffries wrote:

> On 3/09/19 4:45 pm, --Ahmad-- wrote:
>> Hello Team ,
>>
>> just wondering .
>>
>> using cache peer to FWD request to upstream squid .
>>
>> the problem is sometimes the Upstream go to destination over ipv6 .
>>
>> is there an option can be used to force the peer to use ipv4 dns ?
>>
> Put the IPv4 address of the peer into the cache_peer line instead of its
> hostname.
If you are trying to influence how your system chooses between IPv4 and
IPv6 for its outbound connections then you should look to understand how
/etc/gai.conf operates on your system. Otherwise, if you only want squid
in this instance to use IPv4 then go with Amos' suggestion above.
> =-
> Giles Coochey
_______________________________________________
squid-users mailing list
[hidden email]
http://lists.squid-cache.org/listinfo/squid-users
Reply | Threaded
Open this post in threaded view
|

Re: cache peer , force peer to use dns ipv4 not ipv6

--Ahmad--
In reply to this post by Amos Jeffries
Hello Team , thank you for replies .

########################################
http_port 10.61.8.189:10000 name=10000
acl 10000 myportname 10000
never_direct allow 10000
cache_peer 192.247.37.193 parent 12847 0 no-query  round-robin no-digest no-tproxy proxy-only name=peer10000
cache_peer_access peer10000 allow 10000
cache_peer_access peer10000 deny all
########################################

Amos do you mean name should be 192.247.37.193 now name=peer10000 ?
is that what you mean ?



Thanks 


On 3 Sep 2019, at 11:23, Amos Jeffries <[hidden email]> wrote:

Put the IPv4 address of the peer into the cache_peer line instead of its


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

Re: cache peer , force peer to use dns ipv4 not ipv6

Amos Jeffries
Administrator
On 3/09/19 10:33 pm, --Ahmad-- wrote:

> Hello Team , thank you for replies .
>
> ########################################
> http_port 10.61.8.189:10000 name=10000
> acl 10000 myportname 10000
> never_direct allow 10000
> cache_peer 192.247.37.193 parent 12847 0 no-query  round-robin no-digest
> no-tproxy proxy-only name=peer10000
> cache_peer_access peer10000 allow 10000
> cache_peer_access peer10000 deny all
> ########################################
>
> Amos do you mean name should be 192.247.37.193 now name=peer10000 ?
> is that what you mean ?
>

I mean what you have in the above config snippet.

The peer "cache_peer 192.247.37.193 parent" cannot be sometimes
connected to using IPv6 as you described happening.

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