1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
suyuan168 2022-06-09 11:23:58 +08:00
parent 06a4f10a4d
commit 1020d095bc
44 changed files with 3520 additions and 31 deletions

View file

@ -110,4 +110,4 @@ stop_service() {
reload_service() {
stop
start
}
}

View file

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

View file

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

View file

@ -1,11 +0,0 @@
{
"luci-app-zerotier": {
"description": "Grant UCI access for luci-app-zerotier",
"read": {
"uci": [ "zerotier" ]
},
"write": {
"uci": [ "zerotier" ]
}
}
}