Something like this should work in your iptables:

iptables -A PREROUTING -t nat -p tcp --dport 1234 -i eth0 -j DNAT
--to-destination 127.0.0.1:4569
iptables -I FORWARD 1 -d 127.0.0.1 -p tcp --dport 4569 -j ACCEPT

This would forward port 1234 to port 4569.

bp

On 11/23/06, Zeeshan Zakaria <[EMAIL PROTECTED]> wrote:

Hi all,

All of a sudden all my IAX DIDs have gone down. I couldn't find any reason
other than that the ISP is blocking port 4569. DIDs register fine from my
home server, but not from office server, which is not behind any NAT. SIP
registers fine. I am trying to change IAX port but it apparantly IAX works
only on 4569. Changing it in iax.conf doesn't do anything. Changing it is
registration string also doesn't help. How can I make IAX work on some other
port?

--
Zeeshan A Zakaria
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com <http://easynews.com/>--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to