Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?


share|improve this question

migrated from Apr 21 '11 at 21:30

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

up vote 3 down vote accepted

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.

share|improve this answer

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 I use it at home over my existing IPv4 NAT connection, with a Linux machine as my router (using ip6tables) and it works perfectly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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