[squid-users] How to use ipv6 address to send requests
Amos Jeffries
squid3 at treenet.co.nz
Fri Nov 3 07:07:51 UTC 2017
On 03/11/17 17:23, dinoop wrote:
> I have installed Squid in one digital ocean ubuntu machine.
>
> What I want to do is: I will send a ipv4 address to this proxy server and I
> need to pick up and use a iPv6 address configured in the squid.conf. I have
> added 2 ipv6 addresses in the conf file.
>
> If I try the following command by specifying address as ipv6, it works fine.
>
> curl -H 'Cache-Control: no-cache' --proxy localhost:3128
> [2400:xxx:x:xx::xxx:a001]
> ie, it will pick a random ipv6 address from the conf file and send the
> request through that ip address.
>
> If i try the following command by specifying address as ipv4, its not
> working
>
> curl -H 'Cache-Control: no-cache' --proxy localhost:3128 34.xxx.xxx.148
> ie, Its not picking the ipv6 address specified in the conf file. Instead its
> using the server public ip .
Of course. You cannot open an IPv6 connection to an IPv4 server address.
Amos
More information about the squid-users
mailing list