2

I am able to get NAT to work using the following snat rule:

    iptables -t nat -A POSTROUTING -o em2 -j SNAT --to 192.168.2.2

My question is: Why is this rule not displayed when I issue the command:

   iptables -L

or even

   iptables -L -v
Sunny
  • 361
  • 1
  • 6
  • 16

1 Answers1

4

iptables -L -t nat is what you're looking for.

As you specify the table when you add the rule, you have to specify it to see it.

Fox
  • 3,887
  • 16
  • 23