chentschel at people.netfilter.org
2005-04-09
The SIP conntrack/NAT extension support the connection tracking/NATing of the data streams requested on the dynamic RTP/RTCP ports of a SIP session, as well as mangling of SIP requests/responses.
This few lines explains howto configure Netfilter framework to get this ALG work.
The lastest patches are maintained in the Netfiler patch-o-matic-ng subversion repository.
Get the latest svn snapshot from:
Simply do ./runme sip-conntrack-nat in the directory containing the package's source code.
You'll have to compile the kernel modules, selecting the 'SIP support' option in the kernel configuration menu.
note: This assumes that you already have Linux >= 2.6.11 kernel and iptables sources in your box. patch-o-matic needs them.
To get more information about Netfilter extensions, see the Netfilter Extensions HOWTO
Once you've recompiled the kernel, make sure you load the modules.
Netfilter will take care of the conntracking and NAT of SIP packets now, but don't forget the iptables rules. Examples as follows:
Set iptables rules to allow UDP packets on port 5060:
And NAT as follows:
(C) 2005 Christian Hentschel. Licenced under the GNU GPL.