public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* conntrack, NAT and icmp echo reply
@ 2012-10-11  9:41 Denys Fedoryshchenko
  2012-10-11  9:57 ` Eric Dumazet
  0 siblings, 1 reply; 6+ messages in thread
From: Denys Fedoryshchenko @ 2012-10-11  9:41 UTC (permalink / raw)
  To: netdev, netfilter

Hi all

I have NAT box, with very simple rule
iptables -t nat -I POSTROUTING -s 10.0.0.0/8 -j MASQUERADE
It can be SNAT also, and it works fine, as NAT.

When i generate icmp _reply_ packet, to some host
hping -I ppp0 -1 --icmptype 0 8.8.8.8

It will pass the box, and will exit it without NAT, e.g. with original 
IP 10.x.x.x
on outgoing interface, which is not expected behavior IMHO.
Is it a bug or feature?

---
Denys Fedoryshchenko, Network Engineer, Virtual ISP S.A.L.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-12 12:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11  9:41 conntrack, NAT and icmp echo reply Denys Fedoryshchenko
2012-10-11  9:57 ` Eric Dumazet
2012-10-11 10:02   ` Denys Fedoryshchenko
2012-10-12  5:13     ` Vigneswaran R
2012-10-12  6:59       ` Denys Fedoryshchenko
2012-10-12 12:41         ` Jozsef Kadlecsik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox