Linux Netfilter discussions
 help / color / mirror / Atom feed
* nf_conntrack_sip and nf_nat_sip not working
@ 2009-12-14  9:45 rebeca.martinez-garcia
  2010-01-11 12:26 ` nf_conntrack_sip and nf_nat_sip can do this?? rebeca.martinez-garcia
  0 siblings, 1 reply; 10+ messages in thread
From: rebeca.martinez-garcia @ 2009-12-14  9:45 UTC (permalink / raw)
  To: netfilter; +Cc: vhuertas


Hi all,

I am tired of googling and try all the options I have found.
I have loaded moduls nf_conntrack_sip and nf_nat_sip:

cng@cng:~$ lsmod | grep nf
nf_nat_sip              6300  0
nf_conntrack_sip       17872  1 nf_nat_sip
nf_nat                 17808  2 nf_nat_sip,iptable_nat
nf_conntrack_ipv4      13352  7 iptable_nat,nf_nat
nf_conntrack           67608  7  
xt_helper,xt_state,nf_nat_sip,nf_conntrack_sip,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4          1756  1 nf_conntrack_ipv4
binfmt_misc             8356  1

but they are not working.
I am facing oneway audio problem due to NAT because it does not change  
the private IP of the client in its Contact Field of the SIP message  
although that modules are loaded.
Maybe it is because of my iptables configuration (Am I forgetting to  
include some rules?):

#! /bin/bash

# The script is saved in /etc/firewall.bash

# Load modules:
/sbin/modprobe ip_tables
/sbin/modprobe iptable_nat
/sbin/modprobe iptable_filter
/sbin/modprobe nf_conntrack
/sbin/modprobe nf_conntrack_sip sip_direct_signalling=0 sip_direct_media=0
/sbin/modprobe nf_nat_sip

# Remove all rules and chains:
iptables -F
iptables -X

# Accept input connections:
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p udp -m multiport --dport 1025:60000 -j ACCEPT

# Forward:
iptables -A FORWARD -o eth0 -p udp -m multiport --dport 1025:60000 -j ACCEPT
iptables -A FORWARD -p udp -m multiport --dport 1025:60000 -d  
192.168.50.0/24 -j ACCEPT
iptables -t mangle -A FORWARD -m helper --helper sip -j CLASSIFY  
--set-class 1:1

# MASQUERADE:
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 10.1.3.207

# End message:
echo " [End iptables rules setting]"

Please, I really need help.

Thanks in advance,
Rebeca Martinez

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-02-17  8:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14  9:45 nf_conntrack_sip and nf_nat_sip not working rebeca.martinez-garcia
2010-01-11 12:26 ` nf_conntrack_sip and nf_nat_sip can do this?? rebeca.martinez-garcia
2010-01-13  8:22   ` Patrick McHardy
2010-01-13 13:38     ` rebeca.martinez-garcia
2010-01-13 13:53       ` Patrick McHardy
2010-01-14 10:13         ` rebeca.martinez-garcia
2010-01-14 10:51           ` Patrick McHardy
     [not found]             ` <20100115092906.15796e278u2h26os@ek2pim.upc.edu>
2010-01-15  9:59               ` Patrick McHardy
     [not found]                 ` <20100115113829.1720778iyiylgn0g@ek2pim.upc.edu>
2010-01-15 13:57                   ` Patrick McHardy
2010-02-17  8:23                     ` rebeca.martinez-garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox