mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-11-02 20:53:56 +08:00
update 2026-09-25 06:56:42
This commit is contained in:
1 parent
45632307c8
commit
6ef6eec405
218 files changed
+45422
-299
No files matched your search
@@ -55,6 +55,7 @@ gen_include() {
|
||||
iptables-restore -n <<-EOT
|
||||
$(extract_rules filter)
|
||||
EOT
|
||||
exit 0
|
||||
EOF
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -5,9 +5,16 @@ uci -q batch <<-EOF >/dev/null
|
||||
set firewall.luci_app_softethervpn=include
|
||||
set firewall.luci_app_softethervpn.type=script
|
||||
set firewall.luci_app_softethervpn.path=/var/etc/luci-app-softethervpn.include
|
||||
set firewall.luci_app_softethervpn.reload=1
|
||||
EOF
|
||||
|
||||
if [ -x "/sbin/fw3" ] && [ ! -L "/sbin/fw3" ]; then
|
||||
uci -q set firewall.luci_app_softethervpn.reload='1'
|
||||
else
|
||||
uci -q delete firewall.luci_app_softethervpn.reload
|
||||
uci -q delete firewall.luci_app_softethervpn.fw4_compatible
|
||||
fi
|
||||
uci commit firewall
|
||||
|
||||
/etc/init.d/softethervpnserver stop 2>/dev/null
|
||||
/etc/init.d/softethervpnserver disable 2>/dev/null
|
||||
|
||||
|
||||
Reference in new issue
Block a user