Friday, July 16, 2010

How To: Setup IPv6 on a Linksys WRT54G using DD-WRT

So here’s how I setup IPv6 connectivity using HE.net's Tunnelbroker with a Linksys WRT54G running  DD-WRT 13064 firmware.

  1. Setup an account in Hurricane Electric’s Tunnelbroker.
  2. Once you have logged in, click “Create regular Tunnel”
  3. In the “Setup IPv6 Regular Tunnel” page, input your dynamic or static public IPv4 address. This must be reachable via icmp before they will create the tunnel.
  4. Check the Tunnel Details for your newly created tunnel. 
Details for my account (yeah right) :)


Server IPv4 address:209.51.181.2

Server IPv6 address: 2001:470:2f13:354::1/64

Client IPv4 address: 174.143.212.44

Client IPv6 address: 2001:470:2f14:354::2/64 








Now on the good stuff.
  1. Enable IPv6 and Radvd in Administration->Management tab under "IPv6 Support".
  2. In Administration->Management tab, input the lines below for Radvd config then click Save.
      interface br0 {
      AdvSendAdvert on;
      prefix 2001:470:2f14:354::/64
      {
      AdvOnLink on;
      AdvAutonomous on;
      };
      };
  1. In Administration->Commands, input the lines below. Then save as Startup Script. 

ip tunnel add he-ipv6 mode sit remote 209.51.181.2 local 174.143.212.44 ttl 255
ip link set he-ipv6 up
ip addr add 2001:470:2f13:354::1/64 dev he-ipv6
ip route add ::/0 dev he-ipv6
ip addr add 2001:470:2f14:354::1/64 dev br0
radvd -C /tmp/radvd.conf &
 
  1. In the Administration->Commands, type the lines below. Then save as Firewall. 
iptables -I INPUT 2 -p ipv6 -i vlan1 -j ACCEPT

  1. Now Reboot router and enjoy being on IPV6.
 
PLEASE Note that this is the simplest setup. Add/edit the firewall settings to reflect your specific rules.







No comments:

Post a Comment