[NETFILTER 03/04]: sip: Fix RTP address NAT

David Miller davem at davemloft.net
Thu May 3 12:35:54 CEST 2007


From: Patrick McHardy <kaber at trash.net>
Date: Thu,  3 May 2007 03:26:00 +0200 (MEST)

> [NETFILTER]: sip: Fix RTP address NAT
> 
> I needed to use this recently to talk to a Cisco server.  In my case
> I only did SNAT while the Cisco server used a different address for
> RTP traffic than the one for SIP.  I discovered that nf_nat_sip NATed
> the RTP address to the SIP one which was unnecessary but OK.  However,
> in doing so it did not DNAT the destination address on the RTP traffic
> to the Cisco back to the original RTP address.
> 
> This patch corrects this by noting down the RTP address and using it
> when the expectation fires.
> 
> Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
> Signed-off-by: Patrick McHardy <kaber at trash.net>

Applied.



More information about the netfilter-devel mailing list