~drscream

Fruky Raspberry Pi IPv6 gateway

The internet service provider from my girlfriend didn’t provide nativ IPv6 support. So my idea was to use our aweseome Fruky VPN on an default FRITZ!Box, because that was provided by the ISP. Well OpenVPN and quagga isn’t supported with the default firmware so I switched to Freetz an OpenSource alternative.

There a lot’s of documentation for Freetz and I also got it running on my FRITZ!Box after one day. But for some unknown reason the FRITZ!Box reboots sometimes and didn’t came back online for ~5 minutes. I think OpenVPN and quagga needs to much reasources, but there is only a limited way to debug it on the box.

A much easier solution is to switch to an awesome Raspberry Pi with an minimal Debian running. The FRITZ!Box have an USB port with enough power to run the PI directly connected to the box.

Now to the small configuration that is basically default generated by Fruky VPN. Required packages are openvpn for tunneling the traffic and quagga for routing advertisements.

My OpenVPN config file could be found on GitHub Gist, but basically it’s an default configuration file that could be found everywhere.

The quagga (/etc/quagga/zebra.conf) configuration file contains the IPv6 addresses that are added to the interface and enable routing advertisements. Here is a snip of the file:

!
interface eth0
 ipv6 address 2a01:138:a015:10::1/64
 no ipv6 nd suppress-ra
 ipv6 nd prefix 2a01:138:a015:10::/64
!
interface tap0
 ipv6 address 2a01:138:a015:42::10/64
 ipv6 nd suppress-ra
!
ipv6 route ::/0 2a01:138:a015:42::1
!
ipv6 forwarding
!

So my recommendation, it’s much easier to connect an Raspberry Pi to the FRITZ!Box instead of patching the FRITZ!Box firmware.


Send your comment by mail.