conntrack NAT problem w/ UDP
There seems to be an intermittent problem w/ NAT when the source port and destination port are the same on UDP traffic.
I've found this on two routers, one with OpenWRT whiterussian RC3 (kernel 2.4.30) and on SuSE 10 (kernel 2.6.13-15). At random times NAT fails to operate on the UDP traffic for IAX2 from Asterisk. IAX2 is UDP port 4569 to port 4569. The kernel will stop rewriting the source port when using either SNAT or MASQUERADE.
Rebooting the kernel is the only solution I have found to fixing the problem. I have found numerous reports of this problem. It's usually reported as Asterisk failing to register.
I diagnosed the problem by sniffing the traffic between the router and internet device (DSL or cable modem). This revealed the source address is not being rewritten.
Any suggestions on how to further trace where the problem in netfilter is occurring would be of great benefit. Unfortunately, I only see this problem once every couple months. So I need to know where to look for more information on the problem.
I've posted this bug in bugzilla ID #421.
Chip Schweiss
Innovates, Inc.
4038 Avery Ln.
Bridgeton, MO 63044
(314) 298-3708 - (618) 207-3442 - (877) 444-2003