欢迎光临散文网 会员登陆 & 注册

ROS端口映射命令

2022-12-30 13:44 作者:是喻先森  | 我要投稿

多端口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端口,请改为您所需的配置,适用于单条或多条外线


ROS端口映射命令的评论 (共 条)

分享到微博请遵守国家法律