How do i check iptables nat rules on linux?



  • Man page for iptables.

    $ sudo iptables -t nat -L
    Chain PREROUTING (policy ACCEPT)
    target     prot opt source               destination
    
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    DNAT       tcp  --  anywhere             anywhere             tcp dpt:http to:10.50.25.4:80
    
    Chain POSTROUTING (policy ACCEPT)
    target     prot opt source               destination
    


© Lightnetics 2019