iptables does not list rules i have created
The command iptables -nvL
is displaying the contents of the filter
table. The rule you are adding is in the nat
table. Add -t nat
to look at the nat
table:
iptables -t nat -nvL
You can also run iptables-save
and it'll dump all the contents to the screen if you just want to look at everything. I find it easy to look at everything that way when I feel lazy.