yanxin152133 / lede-x86_x64

lede x86_x64自动编译
MIT License
3 stars 0 forks source link

updp相关设置 #1

Open yanxin152133 opened 1 year ago

yanxin152133 commented 1 year ago

配置文件

编辑 /etc/config/upnpd 文件

config upnpd 'config'
        option external_iface 'wan'
        option internal_iface 'lan lan1'  # 多接口设置
        option port '5000'
        option upnp_lease_file '/var/upnp.leases'
        option enabled '1'
        option log_output '1'
        option download '1024000'
        option upload '1024000'
        option uuid '64c385b1-3a97-438b-a108-fb6866eca4ba'
        option presentation_url 'http://192.168.2.1'

config perm_rule
        option action 'allow'
        option ext_ports '1024-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '1024-65535'
        option comment 'Allow high ports'

config perm_rule
        option action 'deny'
        option ext_ports '0-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '0-65535'
        option comment 'Default deny'

重启:/etc/init.d/miniupnpd restart

windows

image

测试

root@OpenWrt:~# cat /var/etc/miniupnpd.conf 
ext_ifname=pppoe-wan
listening_ip=eth1
listening_ip=eth2
port=5000
enable_natpmp=yes
enable_upnp=yes
secure_mode=yes
pcp_allow_thirdparty=no
system_uptime=yes
lease_file=/var/upnp.leases
bitrate_down=8388608000
bitrate_up=8388608000
presentation_url=http://192.168.2.1
uuid=64c385b1-3a97-438b-a108-fb6866eca4ba
allow 1024-65535 0.0.0.0/0 1024-65535
deny 0-65535 0.0.0.0/0 0-65535
image
yanxin152133 commented 1 year ago

UPnPTest.zip 相关测试工具