How to do IPv6 port redirect on RHEL6?
Issue
-
How to do
ip6tablesport redirect? -
How to do IPv6 port redirect on RHEL6?
-
Currently we use
iptablesfor IPv4 port redirection with either theREDIRECTorDNATin thePREROUTINGchain, however neither of these work onip6tables:
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? -
ip6tablesdoes not have thenattable in RHEL 6.
Environment
- Red Hat Enterprise Linux 6
- IPv6
ip6tablesIPv6 firewall
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.