find_appropriate_src() BUG also exist in 2.4.24
Subsystems (2)
I too am having lockups every few hours on a heavily used gateway.
Back in September, Rusty offered this patch:
http://lists.netfilter.org/pipermail/netfilter-devel/2003-September/012388.html
Which to this point is not in either 2.4 or 2.6, but looks as though it may actually fix the endless loop we seem to be experiencing.
Alternatively, the following patch was merged in 2.6, but is not present in 2.4.24 -- could this also help?
net/ipv4/netfilter/ip_nat_core.c +2 -1
@@ -421,7 +421,8 @@ *tuple = ((struct ip_conntrack_tuple ) { *manip, orig_tuple->dst });DEBUGP ("get_unique_tuple: Found current src map\n" ); -return 1 ; +if (!ip_nat_used_tuple (tuple, conntrack)) +return 1 ; } }
Any thoughts on either of the above would be appreciated.
Phil Oester
Quoted 3 lines
Which to this point is not in either 2.4 or 2.6, but looks as though it may actually fix the endless loop we seem to be experiencing.
Yes, the patch should work. The problem here is that, although we are sure it is buggy, the semantic of the find_appropriate_src isn't all that clear.
Its purpose is ,as stated in the comment, that "if this srcip/proto/src-proto-part is currently mapped,and that same mapping gives a unique tuple within the given range, use that". This makes NAT a little predicatable for some protocols. But I wonder
1. why we should care about other sessions, or why we must test that srcip/proto/src-proto-part is currently mapped if that same mapping gives a unique tuple.
2. From the comment's words "that same mapping", I agreed that with KOVACS that maybe the destionation IP of reply tuple should be used.
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/