Hurricane Electric provides free IPv6 tunnels via the 6in4 protocol on the website tunnelbroker.net. After signing up, one can create up to 5 tunnels. When settings up a standard tunnel, one has to provide one's endpoint IPv4 address which may change from time to time (moving around or 24-hour reset of a DSL line). So one may want to automate the process of updating the tunnel endpoint on the HE website (plus the re-activation of tunnel on the local computer.
To do this automatic updating and tunnel recreation on Mac OS X 10.6, I found a usefull script by limemonkey in a post on the HE forum. I modified it and publish it here. To (re)activate the tunnel on Mac OS X, change the constants of this script according to your values (credentials on tunnelbroker.net) and run this bash script:
- List of woldwide IPv6 tunnel brokers: http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers#Worldwide
- tunnelbroker.net automatic tunnel IP update and tunnel setup (on Mac OS X): https://gist.github.com/960672
- HE - Tunnel with a dynamic ip-address: http://www.tunnelbroker.net/forums/index.php?topic=287.0
- IPv6 on OS X: https://wikispaces.psu.edu/display/ipv6/IPv6+on+OS+X
- Alternative, especially if you are using a MacBook (Pro) or iBook:
- Instantaneous IPv6 connectivity via the Teredo protocol (still beta): https://github.com/darconeous/miredo-osx