This weekend I set up an IPv6 tunnel for my home network (using tunnelbroker.net). The only real difficulties were (i) automatic configuration does not happen on hosts with IP forwarding enabled, and this applies to IPv4 forwarding as well as IPv6 forwarding (ii) automatic configuration and Linux's ethernet bridging don't seem to play very together very reliably.
Having IPv6 of course means that programs might actually use it, and sometimes this can be inconvenient. /etc/gai.conf lets you re-order hostname lookup results but this doesn't seem to be enough to actually stop the IPv6 address being used. Therefore I wrote a little LD_PRELOAD-based utility to completely suppress IPv6 addresses in getaddrinfo() results:
$ telnet ftp.uk.debian.org 80 Trying 2001:470:1f08:80b::2... Connected to debian.hands.com. Escape character is '^]'. ^]q telnet> q Connection closed. $ noipv6 telnet ftp.uk.debian.org 80 Trying 83.142.228.128... Connected to ftp.uk.debian.org. Escape character is '^]'. ^]q telnet> q Connection closed. $
Programs that use other APIs to look up hostnames won't be affected.
It includes a noipv4 program as well.
Get it here. Currently only works on Linux but shouldn't be hard to adapt to other Unix platforms.
(no subject)
Date: 2011-02-06 02:16 pm (UTC)From a bridge perspective I had to redo my ebtables rules 'cos --among-src doesn't work with IPv6 but that was doable.
However I had to stop running IPv6 inside my UMLs because my host is CentOS5.5 and that Linux kernel doesn't properly do ip6tables (I think it needs a 2.6.20 or better kernel) so I wasn't able to properly restrict access from the UML instances to my network; considering I use them as "bastion hosts", proper firewall rules are important :-)
(no subject)
Date: 2011-02-06 02:38 pm (UTC)(no subject)
Date: 2011-02-06 03:03 pm (UTC)Hmm.
(no subject)
Date: 2011-02-06 02:20 pm (UTC)(no subject)
Date: 2011-02-06 02:34 pm (UTC)(no subject)
Date: 2011-02-06 03:04 pm (UTC)(no subject)
Date: 2011-02-07 10:33 am (UTC)(no subject)
Date: 2011-02-07 11:04 am (UTC)(no subject)
Date: 2011-02-07 11:07 am (UTC)(no subject)
Date: 2011-02-07 11:08 am (UTC)(no subject)
Date: 2011-02-07 10:34 am (UTC)