mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 12:35:30 +08:00
11 lines
320 B
Bash
Executable File
11 lines
320 B
Bash
Executable File
#!/bin/sh
|
|
|
|
zt0=$(ifconfig | grep zt | awk '{print $1}')
|
|
if [ "$zt0" = "" ]; then
|
|
zt0=$(cat /tmp/cat /tmp/zt.nif)
|
|
fi
|
|
echo "zt interface $zt0 is stopped!"
|
|
iptables -D FORWARD -i $zt0 -j ACCEPT 2>/dev/null
|
|
iptables -D FORWARD -o $zt0 -j ACCEPT 2>/dev/null
|
|
iptables -t nat -D POSTROUTING -o $zt0 -j MASQUERADE 2>/dev/null
|