電訊茶室's Archiver

角色 發表於 2013-10-14 18:13

【RouterOS】——port forwarding for Asterisk server

In order to make the Asterisk box work, we need to carry out port forwarding task on RouterOS

SIP UDP port: 5060
RTP UDP port: 10000-20000

Reference:

[url]http://telecom-cafe.com/forum/viewthread.php?tid=4330&extra=page%3D1[/url]

角色 發表於 2013-10-14 18:30

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]

角色 發表於 2013-10-15 22:25

因为要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]

角色 發表於 2016-9-8 13:06

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]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.