Skip to contentSkip to conversation

view nat mappings

DISCUSSION Stephen Clark 3 participants 4 messages Feb 2, 2006 – Feb 3, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

Hello List,

Does iptables have the capability to list out the actual nat mappings/translations, not just the rules that are currently active -
similar to the way FreeBSD's ipfilter/ipnat does?

I've perused the man pages and googled but was unable to find anything that seemed pertinent.

TIA,
Steve

#1 lore raw
Quoted 1 line · Stephen Clark

Hello List,

Hello,

Quoted 2 lines

Does iptables have the capability to list out the actual nat mappings/translations, not just the rules that are currently active -

Please use "conntrack -L" or "cat /proc/net/ip_conntrack" for older kernels than 2.6.14.

Best regards,

Krzysztof Olędzki

PS: This is a devel ml.

#2 lore raw
In reply to Stephen Clark
Quoted 4 lines · Stephen Clark

Does iptables have the capability to list out the actual nat mappings/translations,
not just the rules that are currently active - similar to the way FreeBSD's ipfilter/ipnat does?

So, if I understood well, you want to get only current nat'ted connections, right?

If so, this is fairly easy to implement in the conntrack tool. Something like conntrack -L nat to show all current nat'ed connections. Is this really of interest for everyone?

Signature · 1 line
Pablo
#3 lore raw
Quoted 10 lines · Pablo Neira Ayuso
Quoted 6 lines · Stephen Clark

Does iptables have the capability to list out the actual nat mappings/translations,
not just the rules that are currently active - similar to the way FreeBSD's ipfilter/ipnat does?

Quoted 9 lines

So, if I understood well, you want to get only current nat'ted connections, right?

If so, this is fairly easy to implement in the conntrack tool. Something like conntrack -L nat to show all current nat'ed connections. Is this really of interest for everyone?

Actually this is on an embedded system running uClinux 2.4.6, an ActionTec DualPC Modem.
I am trying to use it as backup for ipsec traffic. Everything works great until we have an interruption - like the phone connection drops the vpn won't get reestablished. But when we
use an Apple Airport Extreme Base Station - the vpn get reestablished with no problem. So it
seems ther is some state in the ActionTec modem/router - it is performing masquerading - that keep the vpn from coming up. IT is really strange because we get SA's (isakmp traffic) on both sides, but esp traffic never gets across.

Steve
traffic doesn't