mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix
This commit is contained in:
parent
06a4f10a4d
commit
1020d095bc
44 changed files with 3520 additions and 31 deletions
|
|
@ -110,4 +110,4 @@ stop_service() {
|
|||
reload_service() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,8 @@ uci -q batch <<-EOF >/dev/null
|
|||
add ucitrack zerotier
|
||||
set ucitrack.@zerotier[-1].init=zerotier
|
||||
commit ucitrack
|
||||
delete firewall.zerotier
|
||||
|
||||
delete firewall.zerotier
|
||||
set firewall.zerotier=include
|
||||
set firewall.zerotier.type=script
|
||||
set firewall.zerotier.path=/etc/zerotier.start
|
||||
|
|
|
|||
|
|
@ -12,4 +12,4 @@ do
|
|||
ip_segment="$(ip route | grep "dev $i proto" | awk '{print $1}')"
|
||||
iptables -t nat -D POSTROUTING -s "${ip_segment}" -j MASQUERADE 2>/dev/null
|
||||
echo "zt interface $i is stopped!"
|
||||
done
|
||||
done
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"luci-app-zerotier": {
|
||||
"description": "Grant UCI access for luci-app-zerotier",
|
||||
"read": {
|
||||
"uci": [ "zerotier" ]
|
||||
},
|
||||
"write": {
|
||||
"uci": [ "zerotier" ]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue