<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>N37-L0RD :: Blog &#187; dd-wrt</title>
	<atom:link href="http://net-lord.net/blog/tag/dd-wrt/feed/" rel="self" type="application/rss+xml" />
	<link>http://net-lord.net/blog</link>
	<description>N37-L0RD&#039;s personal blog</description>
	<lastBuildDate>Sun, 13 Jun 2010 20:24:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IPv6 on DD-WRT v24 (pre)SP2</title>
		<link>http://net-lord.net/blog/2009/12/26/ipv6-on-dd-wrt-presp2/</link>
		<comments>http://net-lord.net/blog/2009/12/26/ipv6-on-dd-wrt-presp2/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 16:39:06 +0000</pubDate>
		<dc:creator>N37-L0RD</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[dd-wrt]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[tunnel]]></category>

		<guid isPermaLink="false">http://net-lord.net/blog/?p=59</guid>
		<description><![CDATA[A few weeks ago I got my hands on a new Linksys WRT320N router (it looks extremelly nice, I should say) which replaced my Buffalo WHR-HP-G54. I played with the original firmware for a few minutes and then, of course, flashed it with the latest DD-WRT build for my router (based on 2.6 kernel). It [...]]]></description>
			<content:encoded><![CDATA[<p>A few weeks ago I got my hands on a new <a href="http://www.linksysbycisco.com/US/en/products/WRT320N">Linksys WRT320N</a> router (it looks extremelly nice, I should say) which replaced my Buffalo WHR-HP-G54. I played with the original firmware for a few minutes and then, of course, flashed it with the latest DD-WRT build for my router (based on 2.6 kernel). It all worked great but I just couldn&#8217;t properly configure IPv6 for my network. On my Buffalo I used a specialized crushedhat&#8217;s build and it worked like a charm, but here, no scripts I found on internet worked and after a few hours of searching and experimenting I finally found the solution. Since there are no working solutions around I considered it logical to share mine.</p>
<p>I&#8217;m using <a href="http://www.tunnelbroker.net/">Hurricane Electric</a> Tunnel Broker and text enclosed in square brackets and capitalized should be replaced by your own data from your &#8220;Tunnel Details&#8221;.</p>
<p>1. Turn on IPv6 and radvd under <strong>Administration -&gt; Management</strong> and paste this inside &#8220;Radvd config&#8221; box:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">interface br0 { 
        AdvSendAdvert on; 
        prefix [ROUTED 64] 
        { 
                AdvOnLink on; 
                AdvAutonomous on; 
        }; 
};</pre></div></div>

<p>2. Go to <strong>Administration -> Commands</strong>, paste the following code into the box and click &#8220;Save startup&#8221;:</p>
<pre>
insmod ipv6
insmod sit 

ip tunnel add he-ipv6 mode sit remote [SERVER IPV4 ADDRESS] local [CLIENT IPV4 ADDRESS] ttl 64
ip link set he-ipv6 up
ip addr add [CLIENT IPV6 ADDRESS] dev he-ipv6
ip route add ::/0 dev he-ipv6
ip addr add [ROUTED 64] dev br0 

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
radvd -C /tmp/radvd.conf
</pre>
<p>3. After saving startup script, paste the following code into the box and click &#8220;Save Firewall&#8221;:</p>
<pre>
iptables -I INPUT 2 -p ipv6 -i vlan1 -j ACCEPT
</pre>
<p>4. Reboot the router and you should have IPv6 connectivity for all connected (and IPv6 capable) clients.</p>
<p>The only problem for now is that by doing this, you are leaving yourself with no firewall (on DD-WRT&#8217;s side) through IPv6 and you need to have properly configured firewall on your computer. </p>
<p>I&#8217;ve contacted the developers about including <strong>ip6tables</strong> and they might soon fix that (well, it&#8217;s not really broken).</p>
<p>Oh, and here is the list of material that helped me:</p>
<ul>
<li><a href="http://www.dd-wrt.com/wiki/index.php/IPv6_on_v24">DD-WRT wiki #1</a></li>
<li><a href="http://www.dd-wrt.com/wiki/index.php/IPv6">DD-WRT wiki #2</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://net-lord.net/blog/2009/12/26/ipv6-on-dd-wrt-presp2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
