返回列表 發帖

【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:

http://telecom-cafe.com/forum/vi ... &extra=page%3D1

Based on Qnewbie's script shown in the above post, we have
  1. /ip firewall nat add chain=dstnat protocol=udp dst-port=5060 action=dst-nat to-addresses=192.168.88.100 to-ports=5060

  2. /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

  3. /ip firewall nat add chain=dstnat protocol=tcp dst-port=8088 action=dst-nat to-addresses=192.168.88.100 to-ports=8088
複製代碼
Using the URL path to enter the Asterisk-GUI setup
  1. http://<RouterBoard_ip_address:8088>
複製代碼

TOP

因为要remote admin我的IP Phone,我再 forward 9999 TCP port to 192.168.88.10
  1. /ip firewall nat add chain=dstnat protocol=tcp dst-port=9999 action=dst-nat to-addresses=192.168.88.10 to-ports=9999
複製代碼

TOP

There are other examples of setting up port forwarding task as follows:

http://captain-slow.dk/2011/02/19/nat-port-in-mikrotik/

TOP

返回列表