iptables does not recognize -j SNAT statement

Solution Verified - Updated -

Issue

When creating iptable rules for SNAT, the error is thrown and no rule is added:

iptables -t nat -A POSTROUTING -o virbr0 -s <XX.YY.ZZ.QQ> -j SNAT -–source <QQ.ZZ.XX.YY>

iptables v1.4.21: unknown option "SNAT"
Try `iptables -h' or 'iptables --help' for more information.

Environment

RHEL 7

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