[CentOS] iptables command to view just nat/forward info by ip

Thu Dec 21 01:15:32 UTC 2006
Aleksandar Milivojevic <alex at milivojevic.org>

Dustin Krysak wrote:
> Hi there... does anyone know of a handy iptables command to look at
> existing nat rules?
> 
> I tried:
> 
> iptables -t nat -L
> 
> Which was close, but the problem is that the DNAT and SNAT list the
> reverse DNS for the IP's, when I would rather see just pure IP's.
> 
> I have been reading the man pages and google looking for an answer as well.

Probably the most useful combination of options is -nvx -L, since it
will print some additional info (most importantly the counters).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20061220/10a1204a/attachment-0005.sig>