TalkTalk Fiber and IPv6 tunnel from HE

Here is short description how to setup Hurricane Electric IPv6 tunnel with:

  • TalkTalk Fiber
  • HG633 router
  • Raspberry Pi running Raspbian.
First enable ipv6 module loading. Then ensure that on your router:
  1. VPN pass-through is enabled (it will under the hood enable proto 41 that is necessary for 6in4 tunnel).
  2. disabled
  3. disabled
Then edit /etc/network/interfaces to get something similar to this:


auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

## Add HE tunnel
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
  address 2001:470:6666:6666::2
  netmask 64
  endpoint 216.111.11.1 # Remote HE tunnel IP (POP)
  local 192.168.0.44 # Local RPi IPv4 address
  ttl 255
  gateway 2001:470:6666:6666::1 # Your tunnel remote end
  post-up ip -6 addr add 2001:470:7777:7777::1/64 dev eth0
  pre-down ip -6 addr del 2001:470:7777:7777::1/64 dev eth0

Last two lines adds/removes one of routed subnet IP addresses to eth0 interface. It will be useful for setting IPv6 router later on.

Here is what we gained so far:
pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:1f:b9:21
          inet addr:192.168.147.76  Bcast:192.168.147.255  Mask:255.255.255.0
          inet6 addr: fe80::1234:1234:1234:1234/64 Scope:Link
          inet6 addr: fd48:1234:1234:1234:1234:1234:1234:123/64 Scope:Global
          inet6 addr: 2001:470:7777:7777::1/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9055 errors:62 dropped:31 overruns:0 frame:62
          TX packets:712 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:444686 (434.2 KiB)  TX bytes:106088 (103.6 KiB)

he-ipv6   Link encap:IPv6-in-IPv4
          inet6 addr: 2001:470:6666:6666::2/64 Scope:Global
          inet6 addr: fe80::c0a8:934c/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1480  Metric:1
          RX packets:28 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:0
          RX bytes:3657 (3.5 KiB)  TX bytes:3210 (3.1 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:73 errors:0 dropped:0 overruns:0 frame:0
          TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6560 (6.4 KiB)  TX bytes:6560 (6.4 KiB)

sit0      Link encap:IPv6-in-IPv4
          inet6 addr: ::127.0.0.1/96 Scope:Unknown
          UP RUNNING NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

It shall be able to ping google via IPv6 now:
pi@raspberrypi ~ $ ping6 google.com -c4
PING google.com(lhr26s01-in-x0e.1e100.net) 56 data bytes
64 bytes from lhr26s01-in-x0e.1e100.net: icmp_seq=1 ttl=54 time=85.3 ms
64 bytes from lhr26s01-in-x0e.1e100.net: icmp_seq=2 ttl=54 time=85.4 ms
64 bytes from lhr26s01-in-x0e.1e100.net: icmp_seq=3 ttl=54 time=85.4 ms
64 bytes from lhr26s01-in-x0e.1e100.net: icmp_seq=4 ttl=54 time=84.7 ms

--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 84.703/85.244/85.461/0.375 ms

Now we need to set up routing. For home network RADV is more than enough:

Comments

Popular posts from this blog

Hardening OpenWRT - adding non-root user account

Dropbear SSH keys and autossh on OpenWRT

SSH Tunel with OpenWRT