mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Limit external ports for upnpd
This commit is contained in:
parent
543a11a229
commit
2093055c7f
1 changed files with 7 additions and 0 deletions
|
@ -7,4 +7,11 @@ if [ "$(uci -q get upnpd.config.external_ifac)" != "omrvpn" ]; then
|
|||
EOF
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get upnpd.@perm_rule[0].ext_ports)" = "1024-65535" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set upnpd.@perm_rule[0].ext_ports='1024-64999'
|
||||
commit upnpd
|
||||
EOF
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue