donderdag 13 januari 2011

IPv6 through your old IPv4 ADSL modem with PCs/MacBook/iPhones on a NAT

..or howto get ipv6 (tunneled with 6in4) through your pretty standard IPv4 home modem with built-in NAT and a few Macs/PCs/Laptops/smartphones behind it.

You can test and diagnose your IPv6 connectivity through test-ipv6.com. You probably should that right now, and along the way.

Further, your modem needs to support (not filter) 'protocol 41'.

Using Hurricane Electric tunnelbroker.net with Mac OS X 10.6:

OS X versions lower than 10.6.5 had some trouble with automatically figuring out IPv6 and IPv6 tunnels, you may need to update to that version.

  • Register at http://www.tunnelbroker.net/ (I already did that years ago)

  • On your "Main Page" over there, click on your tunnel.

  • At the bottom, select "NetBSD/MacOS X" from the pulldown and hit "Show Config"

  • On the second line (ifconfig gif0 tunnel A.B.C.D W.X.Y.Z) replace the first address (so A.B.C.D) with your local address (behind your NAT). You can find that with ifconfig, or Networkpreferences.

  • You will need to run each line as root (sudo). And needs to be repeated every reboot. You will probably want to hook that into some startup script if you will keep using this. I don't, so I won't document that.


Using HE tunnelbroker.net with Airport Extreme or Express:

You need to run 7.5.2 or 7.3.x on your Airport, other versions had problems in various software and hardware configurations.

  • Airport configuration tool: Advanced > IPv6

  • Mode: Tunnel

  • Configure IPv6: Manual

  • Remote IPv4 Address: From the 'Tunnel Details'-page copy 'Server IPv4 address'

  • WAN IPv6 Address: copy 'Client IPv6 address'

  • IPv6 Default Route: copy 'Server IPv6 address'

  • LAN IPv6 Address: copy 'Routed /64' and add '1' to the end (?)

Systems connecting to this Airport the need to be configured as 'Node', 'Host' or just 'Automatic' in their IPv6 config. "Link-local" in terms of IPv6 routing means no traffic is routed upstream (over the WAN interface).

Using XS4ALL.nl tunnel with Airport Extreme or Express:

You need to run 7.5.2 or 7.3.x on your Airport, other versions had problems in various software and hardware configurations.

  • Mode: Tunnel

  • Configure IPv6: Manual

  • Remote IPv4 Address: From the "XS4ALL IPv6-tunnelbroker"-page copy "XS4ALL's IPv4-tunnel endpoint"

  • WAN IPv6 Address: copy "$user's tunnel IPv6-adres"

  • IPv6 Default Route: copy "XS4ALL's tunnel IPv6-adres"

  • LAN IPv6 Address: copy "$user's IPv6-prefix" and add '1' to the end (?)

Geen opmerkingen: