All of lore.kernel.org
 help / color / mirror / Atom feed
* nat drop the icmp redirect packet
@ 2011-11-28  1:12 Gao feng
  2011-11-28  1:23 ` Gao feng
  2011-11-30 18:53 ` Patrick McHardy
  0 siblings, 2 replies; 9+ messages in thread
From: Gao feng @ 2011-11-28  1:12 UTC (permalink / raw)
  To: netfilter-devel

Hi

In func nf_nat_icmp_reply_translation,the icmp packet will be droped when the nat is not finished.
pc A(whose gateway is C) send a icmp request to pc B.
When gw C receive this packet,it may return a icmp redirect packet to A.
BUT now,the icmp request packet has not go to POSTROUTING,So the nat is not finished.
Finally,the icmp redirect packet will be droped no matter the conn has nat or not.

of course,the icmp redirect packet will be correct handled when nat is finished.

Can somebody will give me some suggestion,
or should I just add a sysctl to let the user decide drop or receive this icmp redirect packet when nat is not finished?

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

end of thread, other threads:[~2011-12-05  1:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-28  1:12 nat drop the icmp redirect packet Gao feng
2011-11-28  1:23 ` Gao feng
2011-11-30  4:00   ` Gao feng
2011-11-30 18:53 ` Patrick McHardy
2011-12-01  0:59   ` Gao feng
2011-12-01 10:20     ` Patrick McHardy
2011-12-02  5:32       ` Gao feng
2011-12-02 12:58         ` Patrick McHardy
2011-12-05  1:18           ` Gao feng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.