Patrick McHardy 1b683b5512 [NETFILTER]: sip conntrack: better NAT handling
The NAT handling of the SIP helper has a few problems:

- Request headers are only mangled in the reply direction, From/To headers
  not at all, which can lead to authentication failures with DNAT in case
  the authentication domain is the IP address

- Contact headers in responses are only mangled for REGISTER responses

- Headers may be mangled even though they contain addresses not
  participating in the connection, like alternative addresses

- Packets are droppen when domain names are used where the helper expects
  IP addresses

This patch takes a different approach, instead of fixed rules what field
to mangle to what content, it adds symetric mapping of From/To/Via/Contact
headers, which allows to deal properly with echoed addresses in responses
and foreign addresses not belonging to the connection.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2006-12-02 21:31:26 -08:00
..
2006-12-02 21:24:01 -08:00
2006-11-05 14:11:25 -08:00
2006-12-02 21:30:17 -08:00
2006-12-02 21:21:18 -08:00
2006-08-05 21:15:58 -07:00
2006-12-02 21:21:23 -08:00
2006-12-02 21:24:02 -08:00
2006-12-02 21:21:24 -08:00
2006-07-12 13:58:59 -07:00
2006-11-30 05:24:39 +01:00
2006-09-22 14:53:34 -07:00
2005-04-16 15:20:36 -07:00