ROS端口映射命令
多端口Udp映射
/ip firewall nat add action=dst-nat chain=dstnat dst-address-type=local dst-port=5000-6000 protocol=udp to-addresses=192.168.0.2
#外部端口范围5000-6000,映射至内网192.168.0.2对应端口,请改为您所需的配置,适用于单条或多条外线
单端口Udp映射
/ip firewall nat add action=dst-nat chain=dstnat dst-address-type=local dst-port=13389 protocol=udp to-addresses=192.168.0.2 to-ports=3389
#外部端口13389,映射至内网192.168.0.2的3389端口,请改为您所需的配置,适用于单条或多条外线
多端口Tcp映射
/ip firewall nat add action=dst-nat chain=dstnat dst-address-type=local dst-port=5000-6000 protocol=tcp to-addresses=192.168.0.2
#外部端口范围5000-6000,映射至内网192.168.0.2对应端口,请改为您所需的配置,适用于单条或多条外线
单端口Tcp映射
/ip firewall nat add action=dst-nat chain=dstnat dst-address-type=local dst-port=13389 protocol=tcp to-addresses=192.168.0.2 to-ports=3389
#外部端口13389,映射至内网192.168.0.2的3389端口,请改为您所需的配置,适用于单条或多条外线

