• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

Configuring a tunnel under Linux

Started by broquea, February 08, 2008, 01:49:39 PM

Previous topic - Next topic


Users will always be able to view the example configurations provided in the tunnelbroker.net interface, however we also wanted to make them available on the forums. I'll cover both the ifconfig and ip commands used. I won't be using valid IPv4/IPv6 information in the examples, but the example configurations in the broker's interface will provide the full commands with your relevant account information.

Legend of variables:
$ipv4a = tunnel server's IPv4 IP
$ipv4b = user's IPv4 IP
$ipv6a = tunnel server's side of point-to-point /64 allocation
$ipv6b = user's side of point-to-point /64 allocation

Using ifconfig:

ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::$ipv4a
ifconfig sit1 up
ifconfig sit1 inet6 add $ipv6b
route -A inet6 add ::/0 dev sit1

Using ip:

ip tunnel add he-ipv6 mode sit remote $ipv4a local $ipv4b ttl 255
ip link set he-ipv6 up
ip addr add $ipv6b dev he-ipv6
ip route add ::/0 dev he-ipv6


I slapped together a video presentation on setting up a Linux tunnel behind a firewall that passes Protocol41:


Full resolution version here: http://broquea.corp.he.net/videos/tutorial.ogv  (Ogg/Vorbis/Theora, used recordMyDesktop under Linux)

I'm working on some for MacOS X & Vista/XP, and will post them in the respective forum topics.

[EDIT] - Thanks e164, I had nuked the .htaccess fixing that by accident, and it is back in place now.


I haven't watched yet, but it's good of you to do this for people, you might want to link this on the main website.

Also the server is sending out the mime/type as text/html and you might want to change this to something else ;)