I tried to use HE's TunnelBroker service and the IANA's 192.88.99.1 service, both setup with the following script:
#!/bin/sh
modprobe
# replace {remote_ip} with HE endpoint or 192.88.99.1
ip tunnel add 6to4 mode sit remote {remote_ip} local 221.xxx.xxx.xxx ttl 255
ip link set 6to4 up
ip addr add 200x:xxxx:xxxx::2/64 dev 6to4 # for 192.88.99.1 it is 2002:abcd:abcd::1/16
ip route add ::/0 dev 6to4
ip -f inet6 addr
When I do curl
to dual-stack address to lookup my ip, without -4
or -6
, using he-ipv6 6to4 will return an ipv6 address, using 192.88.99.1 6to4 will return ipv4 address (forcing ipv6 by using -6
works)
How can I force it to return ipv6 address by default?