【RouterOS】——port forwarding for Asterisk server
In order to make the Asterisk box work, we need to carry out port forwarding task on RouterOSSIP UDP port: 5060
RTP UDP port: 10000-20000
Reference:
[url]http://telecom-cafe.com/forum/viewthread.php?tid=4330&extra=page%3D1[/url] Based on Qnewbie's script shown in the above post, we have[code]
/ip firewall nat add chain=dstnat protocol=udp dst-port=5060 action=dst-nat to-addresses=192.168.88.100 to-ports=5060
/ip firewall nat add chain=dstnat protocol=udp dst-port=10000-20000 action=dst-nat to-addresses=192.168.88.100 to-ports=10000-20000
/ip firewall nat add chain=dstnat protocol=tcp dst-port=8088 action=dst-nat to-addresses=192.168.88.100 to-ports=8088
[/code]Using the URL path to enter the Asterisk-GUI setup[code]
http://<RouterBoard_ip_address:8088>
[/code] 因为要remote admin我的IP Phone,我再 forward 9999 TCP port to 192.168.88.10[code]
/ip firewall nat add chain=dstnat protocol=tcp dst-port=9999 action=dst-nat to-addresses=192.168.88.10 to-ports=9999
[/code] There are other examples of setting up port forwarding task as follows:
[url]http://captain-slow.dk/2011/02/19/nat-port-in-mikrotik/[/url]
頁:
[1]