Skip to contentSkip to conversation

INVALID connections and SNAT

DISCUSSION Igor Bogomazov 2 participants 2 messages Apr 12, 2010

lore
Share & tools
lore
#0 lore raw

Hello,

Just noticed few packets which pass SNAT in POSTROUTING without altering their SRC. The problem has been obscured by the fact, that all works in general, no one complain.

After I add REJECT rule for "-m state --state INVALID" connections, unmodified (not NATed) packets have disappeared. All right now.

Why INVALID connections pass thru NAT instead of dropping them? It seems like a security risk, when hacker can listen not-NATed packets behind the router and learn a network topology.

Signature · 3 lines
С уважением,

Igor Bogomazov
#1 lore raw
Quoted 2 lines · Igor Bogomazov

Why INVALID connections pass thru NAT instead of dropping them?

They don't pass through it.