#https://www.haiyun.me
ip upnp set enabled=yes
ip upnp interfaces add interface=pppoe-out1 type=external disabled=no
ip upnp interfaces add interface=bridge-local type=internal disabled=no
启动支持UPNP的软件进行测试,如迅雷:
ip firewall nat print all
chain=srcnat action=masquerade out-interface=pppoe-out1
chain=dstnat action=dst-nat to-addresses=192.168.1.250 to-ports=41019 protocol=tcp\
dst-address=8.8.8.8 dst-port=41019
chain=dstnat action=dst-nat to-addresses=192.168.1.250 to-ports=64677 protocol=udp\
dst-address=8.8.8.8 dst-port=41019
可见UPNP已为迅雷添加端口DNAT。
标签:ros, upnp, ros开启upnp, ros下upnp配置