Difference between revisions of "IPv6 tunnel broker setup"

(Created page with "Hurricane Electric offers a free [http://tunnelbroker.net/ tunnel broker] service that is relatively painless to use under Arch if you wish to add IPv6 connectivity to an IPv4-on...")

Hurricane Electric offers a free [http://tunnelbroker.net/ tunnel broker] service that is relatively painless to use under Arch if you wish to add IPv6 connectivity to an IPv4-only host.

Hurricane Electric offers a free [http://tunnelbroker.net/ tunnel broker] service that is relatively painless to use under Arch if you wish to add IPv6 connectivity to an IPv4-only host.

+

+

These instructions work for [http://www.sixxs.net/ SixXS] tunnels as well.

== Registering for a tunnel ==

== Registering for a tunnel ==

+

+

It is not that hard to do. Feel free to fill in the directions here if something seems tricky, but otherwise just go the tunnel broker site and complete the registration.

+

+

== Setting up SiXxs tunnel ==

+

+

First, you need to have {{Pkg|aiccu}}, {{Pkg|radvd}} and {{Pkg|iproute2}} installed.

+

+

Now edit {{ic|/etc/aiccu.conf}} and fill in your data.

+

If you have several tunnels, you need to also supplement the tunnel_id option in the file.

+

The following is an example for a dynamic ayiay tunnel.

+

+

{{bc|<nowiki>

+

username <username>

+

password <password>

+

protocol tic

+

server tic.sixxs.net

+

ipv6_interface sixxs

+

automatic true

+

requiretls true

+

pidfile /var/run/aiccu.pid

+

defaultroute true

+

makebeats true

+

behindnat true

+

</nowiki>}}

+

+

Test the configuration now with:

+

# systemctl start aiccu

+

If it works, enable it:

+

# systemctl enable aiccu

+

+

Configuring radvd and LAN side IP of the router:

+

See [[Router#IPv6|Router]].

== Tunnel rc.d script ==

== Tunnel rc.d script ==

+

+

{{Out of date|Needs to be rewritten into [[systemd#Writing custom .service files|systemd service]], if still useful.}}

+

+

For this script to work you will need the iproute2 package installed:

+

+

# pacman -S iproute2

+

+

Try the following init script to start and stop an IPv6 tunnel once you have registered it with HE. I placed this at {{ic|/etc/rc.d/6in4-tunnel}}. Obviously some of the variables up top will need to be filled in.

Which should also make wget quiet and not bothering you with emails about its activity. Please replace USERNAME, PASSWORD and TUNNELID by the details of your account and tunnel. I would recommend running the command on its own first, to check if it works. To do that run:

Try the following init script to start and stop an IPv6 tunnel once you have registered it with HE. I placed this at /etc/rc.d/6in4-tunnel. Obviously some of the variables up top will need to be filled in.

Which should also make wget quiet and not bothering you with emails about its activity. Please replace USERNAME, PASSWORD and TUNNELID by the details of your account and tunnel. I would recommend running the command on its own first, to check if it works. To do that run: