]> err.no Git - linux-2.6/commitdiff
[NETFILTER]: nf_nat: fix hanging connections when loading the NAT module
authorPatrick McHardy <kaber@trash.net>
Tue, 9 Jan 2007 22:33:49 +0000 (14:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2007 22:33:49 +0000 (14:33 -0800)
When loading the NAT module, existing connection tracking entries don't
have room for NAT information allocated and packets are dropped, causing
hanging connections. They really should be entered into the NAT table
as NULL mappings, but the current allocation scheme doesn't allow this.

For now simply accept those packets to avoid the hanging connections.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_standalone.c

index 730a7a44c883f0247c40e84348c8c953859b15c6..00d6dea9f7f3440aa1b6369a09f790e87e6ef72d 100644 (file)
@@ -123,7 +123,7 @@ nf_nat_fn(unsigned int hooknum,
 
        nat = nfct_nat(ct);
        if (!nat)
-               return NF_DROP;
+               return NF_ACCEPT;
 
        switch (ctinfo) {
        case IP_CT_RELATED: