Iptables destination NAT not working

Solution Verified - Updated -

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 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.