1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2021-04-07 18:17:45 +02:00
parent 543a11a229
commit 2093055c7f

View file

@ -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