Skip to contentSkip to conversation

snat dropping packets???

DISCUSSION Ferry Huberts 1 participant 1 message Oct 16, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

Hi all!

I have a problem with dropped packets and I suspect netfilter connection tracking.

The setup: I have set up a box doing full NAT for a box behind it: DNAT in PREROUTING and SNAT in POSTROUTING.

The situation:
There seem to be multiple things going on. I can not put my finger on it.

1. When there is (heavy) traffic coming into the box towards itself or the box behind it (for which the NAT is done) at the time of configuring these iptables rules at startup, there seem to be false/incorrect connection tracking records.

2. When looking at the situation with tcpdump, I see packets being sent out to the interface, but I do not see them on the wire. As I understand, tcpdump hooks in before POSTROUTING, so I suspect SNAT/POSTROUTING from dropping my packets.

My question:
--> under what conditions are packets dropped? help! :-) going through the kernel code seemed a bit too daunting at this time, I thought the people here would have quicker answers...

Also, my external address is a DHCP assigned address and when it changes, the old connection tracking records are in the way and should be flushed. But I have no idea on how to accomplish this... help! :-)
I can not use MASQ because I have actually two external DHCP addresses:
one for the box itself and one for the box behind it...

--
Ferry Huberts