ip6tables and automatic IPV6 addressing

Over the weekend, I switched VPS providers from Slicehost to Linode. I requested an IPV6 address for my server (and got one within 2 minutes of my ticket!) and this morning sat down to set up some firewall rules. After setting up the rules, however, I found that the IPV6 address was no longer being assigned manually. After determining it was due to ip6tables, I looked around and found I needed the following rules:

-A INPUT -p icmpv6 --icmpv6-type router-advertisement -j ACCEPT
-A INPUT -p icmpv6 --icmpv6-type router-solicitation -j ACCEPT
-A INPUT -p icmpv6 --icmpv6-type neighbour-advertisement -j ACCEPT
-A INPUT -p icmpv6 --icmpv6-type neighbour-solicitation -j ACCEPT
-A INPUT -p icmpv6 --icmpv6-type echo-request -j ACCEPT
-A INPUT -p icmpv6 --icmpv6-type echo-reply -j ACCEPT

After adding the above rules, my network adapter was happily assigned an IPV6 address.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>