[Asterisk-Users] iptables rules for forwarding SIP/RTP to Asterisk server from behind nat firewall/router

Robert La Ferla robertlaferla at comcast.net
Mon Dec 26 23:37:29 MST 2005


Can someone please send me your iptables rules for forwarding SIP/RTP 
udp to your * server?

I tried this but I think I need more rules like DNAT or something...

iptables -A FORWARD -i $EXT_IF -o $INT_IF -p udp -m udp --sport 5060 -d 
$ASTERISK_IP --dport 5060 -j ACCEPT
iptables -A FORWARD -i $EXT_IF -o $INT_IF -p udp -m udp --sport 
10000:20000 -d $ASTERISK_IP --dport 10000:20000 -j ACCEPT




More information about the asterisk-users mailing list