Ros资源网

ROS端口映射脚本

示例:

/ip firewall nat add chain=dstnat dst-address=120.42.115.6 protocol=tcp dst-port=80 action=dst-nat to-addresses=192.168.0.1 to-ports=80 comment=”http”

*将公网IP120.42.115.6的80口数据映射到内网192.168.0.1的80端口上。

Winbox操作:

操作路径:/ip – firewall – NAT
以下操作将PPPOE-OUT1外网进来的TCP协议8292端口,映射到内网IP11.11.11.2的8291端口上:

如果您的接入是固定IP,直接在“Dst.Address”中填入您的公网IP,将In.Interface,取消定义就行了。