I'm looking to route all my traffic from my IPv4 NAT to an IPv6 address I have. I googled around on the Internet for a good tutorial on this, and could not find one. Right now I have my network setup with IPv4 NAT using iptables in Linux.

Can someone please point me to the right direction on this? Maybe a URL that you may know of?

Also is it possible to use ip6tables and iptables together ?


migrated from stackoverflow.com Apr 21 '11 at 21:30

This question came from our site for professional and enthusiast programmers.


Yes, it is possible to use ip6tables and iptables together. Think of IPv4 and IPv6 as completely separate Layer 3 stacks.

Since NAT is currently not supported or recommended for use with IPv6, and there is no standard for it, you will probably need to get a routed /64 for your network rather than use a single IP address. (At least, that's the IETF recommendation.) If you were relying on NAT to protect your network in some way, (prevent connections from the outside to your internal hosts) you'll have to protect it some other way.

I'm not sure what you use for a router, but mine is based on DD-WRT, which has a good tutorial for getting IPv6 up and running. Since you are using a Linux-based router, the basics might apply in your case as well.


You don't say where you're getting your IPv6 connectivity from, but if your ISP doesn't support it natively, I can recommend Sixxs.

Their guide for deploying the setup you want is at http://www.sixxs.net/wiki/Installing_a_Subnet. I use it at home over my existing IPv4 NAT connection, with a Linux machine as my router (using ip6tables) and it works perfectly.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.