Skip to content

Commit

Permalink
Try to fix uPnP (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 authored Sep 24, 2024
2 parents 511231c + 414ccbc commit 3c0ec8a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openmptcprouter/files/etc/firewall.upnp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

/etc/init.d/miniupnpd restart >/dev/null 2>&1
9 changes: 9 additions & 0 deletions openmptcprouter/files/etc/uci-defaults/1980-omr-firewall
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ if [ "$(uci -q get firewall.ttl)" = "" ]; then
commit firewall
EOF
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
uci -q batch <<-EOF >/dev/null
set firewall.zone_lan.auto_helper='0'
Expand Down

0 comments on commit 3c0ec8a

Please sign in to comment.