Iptables destination NAT not working
Issue
Rules for destination NAT are not working :
# iptables -t nat -A POSTROUTING -d XXX.XXX.XXX.XXX -p tcp -m tcp --dport XXXX -j DNAT --to-destination YYY.YYY.YYY.YYY:ZZZZ
# iptables -A FORWARD -d YYY.YYY.YYY.YYY -p tcp --dport ZZZZ -m state --state NEW -j ACCEPT
Environment
- Red Hat Enterprise Linux (RHEL) 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.