This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can I display NAT-Rules via iptables ?

Hi,

I have configured DNAT and SNAT rules on a 8.103 via webadmin-interface.

As I have a small problem where DNAT/SNAT is working as expected I want to look into the generated iptables rules for nat.

I tried 'iptables -L -t nat' as root but there will no rules display I had configured.

Example output:

iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
AUTO_PRE   all  --  anywhere             anywhere
USR_PRE    all  --  anywhere             anywhere
LOAD_BALANCING  all  --  anywhere             anywhere

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
AUTO_POST  all  --  anywhere             anywhere
USR_POST   all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
AUTO_OUTPUT  all  --  anywhere             anywhere
USR_OUTPUT  all  --  anywhere             anywhere

Chain AUTO_OUTPUT (1 references)
target     prot opt source               destination

Chain AUTO_POST (1 references)
target     prot opt source               destination

Chain AUTO_PRE (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere            tcp spts:1024:65535 dpt:webadmin ADDRTYPE match dst-type LOCAL

Chain LOAD_BALANCING (1 references)
target     prot opt source               destination

Chain USR_OUTPUT (1 references)
target     prot opt source               destination

Chain USR_POST (1 references)
target     prot opt source               destination
MASQUERADE  all  --  206.197.17.200       anywhere            policy match dir out pol none

Chain USR_PRE (1 references)
target     prot opt source               destination

I would expect SNAT and DNAT somewhere in this output.

Am I wrong ?

Regards,
Dirk


This thread was automatically locked due to age.