Mailing List Archive

Viewing NAT tables
Hello,
I was wondering if it was possible to view NAT tables? I don't know if
this is a popular question, but I did not see it in the FAQs. Bascially,
I have certain "ports" being forwarded. Heres an example of all web
traffic being forwarded to my (internal) webserver:
iptables -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to
$WEBSERVER:80

I have other ports being forwarded to other servers. Can these tables be
viewed, so I know what is currectly being forwarded and where?

Thanks!

Andy
Re: Viewing NAT tables [ In reply to ]
Hey,
Yep.
The command is: "iptables -t nat -L"

Nick

----- Original Message -----
From: <elmera@mediaone.net>
To: <netfilter@lists.samba.org>
Sent: Wednesday, July 25, 2001 4:11 PM
Subject: Viewing NAT tables


Hello,
I was wondering if it was possible to view NAT tables? I don't know if
this is a popular question, but I did not see it in the FAQs. Bascially,
I have certain "ports" being forwarded. Heres an example of all web
traffic being forwarded to my (internal) webserver:
iptables -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to
$WEBSERVER:80

I have other ports being forwarded to other servers. Can these tables be
viewed, so I know what is currectly being forwarded and where?

Thanks!

Andy
AW: Viewing NAT tables [ In reply to ]
Hello,

use >> cat /proc/net/ip_conntrack << (This will show "normal" routing
connections too)



Harald Scharf
Intel Certified Integration Specialist Networking
Softpoint electronic
Netzwerksysteme / Firewalls
Bricks Core Development
mailto:h.scharf@softpoint.at
www.bricks.at
www.softpoint.at


-----Ursprüngliche Nachricht-----
Von: elmera@mediaone.net [mailto:elmera@mediaone.net]
Gesendet: Mittwoch, 25. Juli 2001 08:11
An: netfilter@lists.samba.org
Betreff: Viewing NAT tables


Hello,
I was wondering if it was possible to view NAT tables? I don't know if
this is a popular question, but I did not see it in the FAQs. Bascially,
I have certain "ports" being forwarded. Heres an example of all web
traffic being forwarded to my (internal) webserver:
iptables -A PREROUTING -t nat -p tcp -d $EXTIP --dport 80 -j DNAT --to
$WEBSERVER:80

I have other ports being forwarded to other servers. Can these tables be
viewed, so I know what is currectly being forwarded and where?

Thanks!

Andy