Hurricane Electric's IPv6 Tunnel Broker Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Configuring a tunnel under Linux  (Read 38633 times)

broquea

  • Sr. Network Engineer, AS19733
  • Hero Member
  • *****
  • Posts: 1484
    • View Profile
    • Another IPv6 Blog...
Configuring a tunnel under Linux
« on: February 08, 2008, 01:49:39 PM »

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
« Last Edit: August 05, 2010, 08:41:25 AM by broquea »
Logged

broquea

  • Sr. Network Engineer, AS19733
  • Hero Member
  • *****
  • Posts: 1484
    • View Profile
    • Another IPv6 Blog...
Re: Configuring a tunnel under Linux
« Reply #1 on: May 03, 2008, 04:27:59 PM »

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

http://www.youtube.com/watch?v=4o7sk97mItM

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.
« Last Edit: May 17, 2008, 09:09:55 AM by broquea »
Logged

eonesixfour

  • readonly_member
  • Newbie
  • *
  • Posts: 49
    • View Profile
Re: Configuring a tunnel under Linux
« Reply #2 on: May 17, 2008, 06:26:48 AM »

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 ;)
Logged