Friday, November 30, 2012

Getting access to IPv6 for everyone using 6to4

Using 6to4 seems deprecated, but it still works as tunnel servers are still available. 

If you get your Internetz from a 19-century ISP who hasn't implemented IPv6 yet (read: almost all). You have a couple of choices to get access to IPv6.

  • Using a tunnel broker (recommended)
    • www.sixxs.net is a good one
  • Using 6to4 tunneling
To configure 6to4 tunneling, first see if you can reach a tunnel server by doing a ping or traceroute to  192.88.99.1. This IP exists on multiple networks, so you should be able to reach one.
Now to setup the tunnel, you first need to calculate your 6to4 IPv6 address:
printf "2002:%02x%02x:%02x%02x::1\n" `echo YOURv4ADDRESShere | tr . ' '`
Now build the tunnel:
ip tunnel add tun6to4 mode sit remote any local 188.142.102.38
ip link set dev tun6to4 mtu 1472 up
ip -6 add add YOURv6ADDRESShere/16 dev tun6to4
ip -6 route add ::/96 dev tun6to4 metric 1 
ip -6 route add 2000::/3 via ::192.88.99.1 dev tun6to4 metric 1
Now test this:
ping6 google.com

To break down the tunnel:
/sbin/ip -6 route flush dev tun6to4
/sbin/ip link set dev tun6to4 down
/sbin/ip tunnel del tun6to4

Info taken from http://www.wlug.org.nz/6to4

If you like, you can setup reverse DNS and register it at https://6to4.nro.net/ (visit this page using your new 6to4 address to make this work).

0 Comments:

Post a Comment

<< Home