mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-01 06:17:07 +08:00
Revert "Update zerotier.stop (#3670)"
This reverts commit 8ed70658e20f3c94ba125ebe6c832c5834cb2810.
This commit is contained in:
parent
8ed70658e2
commit
c8573a6a53
@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
zts=$(ifconfig | grep zt | awk '{print $1}')
|
zt0=$(ifconfig | grep zt | awk '{print $1}')
|
||||||
for zt0 in $zts
|
|
||||||
do
|
|
||||||
if [ "$zt0" = "" ]; then
|
if [ "$zt0" = "" ]; then
|
||||||
zt0=$(cat /tmp/cat /tmp/zt.nif)
|
zt0=$(cat /tmp/cat /tmp/zt.nif)
|
||||||
fi
|
fi
|
||||||
@ -12,4 +10,3 @@ iptables -D FORWARD -o $zt0 -j ACCEPT 2>/dev/null
|
|||||||
iptables -t nat -D POSTROUTING -o $zt0 -j MASQUERADE 2>/dev/null
|
iptables -t nat -D POSTROUTING -o $zt0 -j MASQUERADE 2>/dev/null
|
||||||
ip_segment=$(ip route | grep "dev $zt0 proto" | awk '{print $1}')
|
ip_segment=$(ip route | grep "dev $zt0 proto" | awk '{print $1}')
|
||||||
iptables -t nat -D POSTROUTING -s $ip_segment -j MASQUERADE 2>/dev/null
|
iptables -t nat -D POSTROUTING -s $ip_segment -j MASQUERADE 2>/dev/null
|
||||||
done
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user