Advolex - Kein schöner Leben

Ein privates Blog, völlig ohne Allgemeininteresse.

Name: Advolex
Location: Lidingö, Sweden

Tuesday, April 24, 2007

HowTo configure iptables - SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia

HowTo configure iptables - SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia: "Using SIP conntrack/NAT

Load the modules

modprobe ip_conntrack_sip ip_nat_sip

Set IPtables filter rules

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p udp --dport 5060 -j ACCEPT

Set IPtables NAT rules

iptables -A FORWARD -o eth0 -p udp --dport 5060 -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source ip.add.dr.ess

[edit] "

0 Comments:

Post a Comment

Links to this post:

<< Home