Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updp相关设置 #1

Open
yanxin152133 opened this issue Feb 17, 2023 · 1 comment
Open

updp相关设置 #1

yanxin152133 opened this issue Feb 17, 2023 · 1 comment

Comments

@yanxin152133
Copy link
Owner

yanxin152133 commented Feb 17, 2023

配置文件

编辑 /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
Copy link
Owner Author

UPnPTest.zip
相关测试工具

@yanxin152133 yanxin152133 changed the title updp不起作用 updp相关设置 Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant