You could try:<br><br>iptables -t nat -A PREROUTING -i eth0 -p udp --dport 5091 -j REDIRECT --to-ports 5060<br><br>Regards.<br><br><div><span class="gmail_quote">On 12/15/06, <b class="gmail_sendername">Mail list</b> <<a href="mailto:asteriskmaillist@gmail.com">
asteriskmaillist@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello my isp has blocked outgoing and incoming connection for port 5060 . I have ssh access to server so i want to send all traffic from port 5091 to port 5060 of asterisk .so i tried
<br><br>iptables -t nat -A PREROUTING -i eth0 -p udp --dport 5091 -j DNAT --to
<a href="http://127.0.0.1:5060" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">127.0.0.1:5060</a><br><br>Now my softphone is able to register with asterisk but it isnt able to make any calls . <br>
<br>bindport = 5091 in my sip.conf under extensions is not working .. asterisk doesnt listen to port 5091 .. but if i put in general section of
sip.conf then it works but then asterisk wont listen on 5060 . How can i use iptables in this situation ? <br>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-biz mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-biz" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-biz
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man." - George Bernard Shaw