How to use ipv6 address to send requests

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to use ipv6 address to send requests

dinoop
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: How to use ipv6 address to send requests

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