How do I turn my iptables rules to ip6tables rules? I am getting a Bad Address:

iptables -A OUTPUT -p tcp -j ALLOW

iptables -t nat -A PREROUTING -d -i eth0 -j DNAT --to

iptables -t nat -A PREROUTING -d -i eth0 -j DNAT

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  • Hello and welcome to the Unix and Linux stack exchange! Please visit the Help Center to get more information on how to post to this site. To get to your question, please edit your post to include additional context please. What are your IPv6 addresses? What have you tried so far? – kemotep Mar 28 at 19:59
  • Those are IPv4 addresses. Use the equivalent IPv6 addresses. – stolenmoment Mar 29 at 2:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.