« Kelly's Resport Hotel | Main | RAND U.S. Competitiveness in Science and Technology 2008 »

Open IPv6 Router

IPv6 (tutorial) - DD-WRT Wiki

Requesting a Tunnel/Subnet

1. Sign up with a RIPE/ARIN/etc handle or by using the direct signup
2. After your login at the SixXS Home you can request a tunnel and later a subnet.

Note that providing a link to a XING or LinkedIn profile or providing links to projects you work on can provide extra credits!
[edit] Static Tunnel

There are instructions at Remoteroot.net with example scripts.

This wiki also offers an example IPv6 startup script

Notice that radvd doesn't work with mini version but requires the full version of DD-WRT. Also if you have problems with pinging and SixXS, notice their FAQ message related to this. By default DD-WRT seems to try to masquerade also the IPv6 packets so the following addition to the firewall rule worked for me:

iptables -t nat -D POSTROUTING -o vlan1 -j MASQUERADE
iptables -t nat -I POSTROUTING -p ! ipv6 -o vlan1 -j MASQUERADE

[edit] Dynamic Tunnel
[edit] Install AICCU

1. Install AICCU using ipkg.

# ipkg install http://downloads.openwrt.org/kamikaze/packages/mipsel/aiccu_20070115-1_mipsel.ipk

2. Configure AICCU.

# vi /jffs/etc/aiccu.conf

# AICCU Configuration

# Login information
username
password

# Interface names to use
ipv4_interface vlan1
ipv6_interface sixxs

# The tunnel_id to use
# (only required when there are multiple tunnels in the list)
tunnel_id

# Be verbose?
verbose false

# Daemonize?
daemonize true

# Automatic?
automatic true

Note that if you can't write to /jffs/etc/, you can always store the script in another directory (that of course is persistent otherwise you loose it :) and use eg 'aiccu start /tmp/aiccu.conf' to pick a different configuration file location.
[edit] Automatic start your Tunnel

1. Create a .startup file and make it executable.

# vi /jffs/etc/config/aiccu.startup

#!/bin/sh

/jffs/etc/init.d/S51aiccu start
ip -6 addr add 2001:xxxx:xxx::/64 dev br0 # Edit to your assigned subnet settings. (You have to use /64 here)

# chmod +x /jffs/etc/config/aiccu.startup

2. Adjust the AICCU init script.

# vi /jffs/etc/init.d/S51aiccu

#!/bin/sh

case "$1" in
start)
( while [ `date +%Y` -eq 1970 ]; do
sleep 1
done && /jffs/usr/sbin/aiccu start /jffs/etc/aiccu.conf ) &
;;

stop)
aiccu stop /jffs/etc/aiccu.conf
aiccu stop /jffs/etc/aiccu.conf
;;

restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac

[edit] Announce your Subnet with radvd

1. Enable radvd at the webinterface of your router (Administration->Management->IPv6 Support)
2. Insert your radvd.conf into the form and save your settings.(You have use the /64 prefix even if you got a /48 subnet)

interface br0
{
AdvSendAdvert on;
prefix 2001:xxxx:xxxx::/64
{
AdvOnLink on;
AdvAutonomous on;
AdvRouterAddr on;
};
};

TrackBack

TrackBack URL for this entry:
https://www.tssg.org/mt-blog/mt-tb.cgi/555

About

This page contains a single entry from the blog posted on June 23, 2008 3:30 PM.

The previous post in this blog was Kelly's Resport Hotel.

The next post in this blog is RAND U.S. Competitiveness in Science and Technology 2008.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34