Re: 2.6.13-mm2
From: J.A. Magallon <hidden>
Date: 2005-09-11 01:22:40
On 09.11, Patrick McHardy wrote:
J.A. Magallon wrote:quoted
And I also get this on syslog: Sep 11 02:56:58 werewolf kernel: MASQUERADE: eth0 ate my IP address Sep 11 02:56:58 werewolf kernel: MASQUERADE: eth0 ate my IP addressThanks, I'm pretty sure its caused by this patch. The problem is that pump uses a regular UDP socket (some other dhcp clients use AF_PACKET sockets), and packet sent by it are also handled by iptables. The MASQUERADE rule can't find a local IP address and drops the packet. I'm not sure how to fix it yet, reverting the patch is not a good option.
quoted hunk
[NETFILTER]: Don't exclude local packets from MASQUERADING Increases consistency in source-address selection. Signed-off-by: Patrick McHardy <redacted> Signed-off-by: David S. Miller <davem@davemloft.net> --- commit 9baa5c67ff4ce57b6b9f68c90714a1bb876fccd7 tree 27f2c48e12e1bb5e3e6d5f8320651c213892ed20 parent fb13ab2849074244a51ae5147483610529a29ced author Patrick McHardy [off-list ref] Sun, 14 Aug 2005 17:32:50 -0700 committer David S. Miller [off-list ref] Mon, 29 Aug 2005 15:58:36 -0700 net/ipv4/netfilter/ipt_MASQUERADE.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-)diff --git a/net/ipv4/netfilter/ipt_MASQUERADE.c b/net/ipv4/netfilter/ipt_MASQUERADE.c --- a/net/ipv4/netfilter/ipt_MASQUERADE.c +++ b/net/ipv4/netfilter/ipt_MASQUERADE.c@@ -86,11 +86,6 @@ masquerade_target(struct sk_buff **pskb, IP_NF_ASSERT(hooknum == NF_IP_POST_ROUTING); - /* FIXME: For the moment, don't do local packets, breaks - testsuite for 2.3.49 --RR */ - if ((*pskb)->sk) - return NF_ACCEPT; - ct = ip_conntrack_get(*pskb, &ctinfo); IP_NF_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED || ctinfo == IP_CT_RELATED + IP_CT_IS_REPLY));
Thanks, reverting this made things work again. Are you confident in fixing this shortly, or should I just drop pump ? -- J.A. Magallon <jamagallon()able!es> \ Software is like sex: werewolf!able!es \ It's better when it's free Mandriva Linux release 2006.0 (Cooker) for i586 Linux 2.6.13-jam3 (gcc 4.0.1 (4.0.1-5mdk for Mandriva Linux release 2006.0))