mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-13 02:51:50 +00:00
Try to fix uPnP
This commit is contained in:
parent
698c94bf1d
commit
414ccbc4d2
2 changed files with 12 additions and 0 deletions
3
openmptcprouter/files/etc/firewall.upnp
Normal file
3
openmptcprouter/files/etc/firewall.upnp
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
/etc/init.d/miniupnpd restart >/dev/null 2>&1
|
|
@ -158,6 +158,15 @@ if [ "$(uci -q get firewall.ttl)" = "" ]; then
|
||||||
commit firewall
|
commit firewall
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
if [ "$(uci -q get firewall.upnp)" = "" ]; then
|
||||||
|
uci -q batch <<-EOF >/dev/null
|
||||||
|
set firewall.upnp=include
|
||||||
|
set firewall.upnp.path='/etc/firewall.ttl'
|
||||||
|
set firewall.upnp.type='script'
|
||||||
|
set firewall.upnp.fw4_compatible='1'
|
||||||
|
commit firewall
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
if [ "$(uci -q get firewall.fwlantovpn)" = "" ]; then
|
if [ "$(uci -q get firewall.fwlantovpn)" = "" ]; then
|
||||||
uci -q batch <<-EOF >/dev/null
|
uci -q batch <<-EOF >/dev/null
|
||||||
set firewall.zone_lan.auto_helper='0'
|
set firewall.zone_lan.auto_helper='0'
|
||||||
|
|
Loading…
Reference in a new issue