Skip to contentSkip to conversation

NAT packets leaking out with source address

DISCUSSION Stephen Hemminger 2 participants 2 messages Mar 6, 2008

lore
Share & tools
lore
#0 lore raw

QA is seeing some (not all packets) going through a NAT router with the original source address. Is this a known problem? or a configuration issue?

The packets are ICMP echo requests coming in at almost line rate, so some table could be getting overloaded?

#1 lore raw
Quoted 5 lines · Stephen Hemminger

QA is seeing some (not all packets) going through a NAT router with the original source address. Is this a known problem? or a configuration issue?

The packets are ICMP echo requests coming in at almost line rate, so some table could be getting overloaded?

First step is to check the conntrack table for an unnatted and unreplied entry.

If the first ICMP was sent before the NAT rule was installed, and you never get a reply (presumably because it is was not NATted), then subsequent ICMP packets will use the same conntrack entry and not be NATted either. These will also refresh the timeout on the conntrack, so it never expires until you stop pinging.

If this is the problem, the solution is to make sure you have the NAT rules installed before the filter rules allow the packets.