conntrack NAT problem w/ UDP
A message that is not in the archive (sent off-list or not yet received): H0000067001795ab.1135782766.@MHS
Quoted 8 lines · [email protected] wrote:
The packet rewriting is not happening for the outgoing packets, therefore the other end can never reply because it has a private IP address being sent as the source address.
The timeout issue has been thoroughly debunked by numerous people. Asterisk sends a packet every 30 seconds to keep NAT connections alive.
The problem is definitely something getting lost in netfilter. When the problem occurs, DNS and other UDP traffic with different source ports than destination ports are still correctly rewritten. The last time the problem occurred for me, I completely reload the all the tables and tried using SNAT vs. MASQUERADE. Nothing made any packets get rewritten for Asterisk connections except rebooting the router. Next time, I will try unloading all the netfilter modules and reloading them before rebooting.
When this happens I don't have much time for debugging, because of the urgency to get a production phone system back in service. That is why I'm asking what should I examine to find out where netfilter is missing this connection?
You could monitor the conntrack events with the conntrack tool. A table dump while the problem occurs might also help.