Re: NAT packets leaking out with source address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stephen Hemminger wrote:
> 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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux