How to do IPv6 port redirect on RHEL6?

Solution Verified - Updated -

Issue

  • How to do ip6tables port redirect?

  • How to do IPv6 port redirect on RHEL6?

  • Currently we use iptables for IPv4 port redirection with either the REDIRECT or DNAT in the PREROUTING chain, however neither of these work on ip6tables:

iptables -A PREROUTING -t nat -d <serverIP> -p tcp --dport 80 -j REDIRECT --to-port 8080
iptables -A PREROUTING -t nat -d <IP> -p tcp --dport 80 -j DNAT --to <IP>:8080
  • Can you provide a way to port forward with ip6tables?

  • ip6tables does not have the nat table in RHEL 6.

Environment

  • Red Hat Enterprise Linux 6
  • IPv6
  • ip6tables IPv6 firewall

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.