[CentOS] ASTERISK BOX behind a filewall

Indunil Jayasooriya indunil75 at gmail.com
Wed Sep 12 08:10:44 UTC 2007

Hi All,

I want to put a ASTERISK BOX bend a Firewall. So I have given below rules.

iptables -A FORWARD -p udp -d -m multiport --dports
3478,4569,5060 -m state --state NEW -j ACCEPT
iptables -A FORWARD -p udp -d --dport 10000:20000 -m state
--state NEW -j ACCEPT

iptables -t nat -A PREROUTING -p udp -i eth0 -d -m multiport
--dports 3478,4569,5060 -j DNAT --to-destination
iptables -t nat -A PREROUTING -p udp -i eth0 -d --dport 10000:20000
-j DNAT --to-destination

pls assume is the ip that connects to the internet.

I use Xlite sotphone to talk. I can register. it says user ready. I can dial
extentions as well. But , WHEN I talk , Both parties can not hear anyrhing.

in rtp.conf file,  PORT 10000 to 20000 are also available.

Hope to hear from you.

Thank you
Indunil Jayasooriya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20070912/975951f3/attachment.htm

More information about the CentOS mailing list