I have a dante socks server which is configured to listen in an ipv4 IP and to have an ipv6 external IP.
I am trying to figure out how to verify if that really works.
I tried to use curl
but if I type:
curl http://google.com --socs5 1.2.3.4:9000
I will get an error on date socks side because google.com
resolves to an ipv4 address and dante says that it can't route IPv4 because it has no IPv4 address configured as an external one. Which is pretty much expected.
Then I found -6
parameter for curl. It now resolves google.com
to an IPv6 address but also now tries to resolve 1.2.3.4
to an IPv6 address which is wrong.
If I try to use explicitly IPv6 as an URL for curl I get an error:
curl 'http://[2a00:1450:400c:c03:0:0:0:8b]/' --socks5 1.2.3.4:9000
Also I tried to use proxychains with the telnet, but it seems that if i specify an IPv4 address as a proxy in proxychains:
socks5 1.2.3.4
It siply ignores that proxy and does a direct request if use IPv6 with telnet:
proxychains telnet 2a00:1450:400c:c03:0:0:0:8b 25
So how do I telnet to something with IPv6 address via a socks proxy on an IPv4 address?
internal: 1.2.3.4 port=1080 external.protocol: ipv6 external: aaa:bbb:ccc:...