mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-14 02:54:29 +05:00
Fixed route check
This commit is contained in:
@@ -130,7 +130,7 @@ if [ "$WG" == true ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check route table
|
# Check route table
|
||||||
ROUTE_TABLE=$(ip route show table vpn | grep -c "default dev wg0 scope link" )
|
ROUTE_TABLE=$(ip route show table vpn | grep -c "default dev wg0" )
|
||||||
if [ $ROUTE_TABLE -eq 1 ]; then
|
if [ $ROUTE_TABLE -eq 1 ]; then
|
||||||
checkpoint_true "Route table WG"
|
checkpoint_true "Route table WG"
|
||||||
else
|
else
|
||||||
@@ -166,7 +166,7 @@ if [ "$OVPN" == true ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check route table
|
# Check route table
|
||||||
if ip route show table vpn | grep -q "default dev tun0 scope link"; then
|
if ip route show table vpn | grep -q "default dev tun0"; then
|
||||||
checkpoint_true "Route table OpenVPN"
|
checkpoint_true "Route table OpenVPN"
|
||||||
else
|
else
|
||||||
checkpoint_false "Route table OpenVPN"
|
checkpoint_false "Route table OpenVPN"
|
||||||
@@ -178,7 +178,7 @@ if opkg list-installed | grep -q sing-box; then
|
|||||||
checkpoint_true "Sing-box package"
|
checkpoint_true "Sing-box package"
|
||||||
|
|
||||||
# Check route table
|
# Check route table
|
||||||
if ip route show table vpn | grep -q "default dev tun0 scope link"; then
|
if ip route show table vpn | grep -q "default dev tun0"; then
|
||||||
checkpoint_true "Route table Sing-box"
|
checkpoint_true "Route table Sing-box"
|
||||||
else
|
else
|
||||||
checkpoint_false "Route table Sing-box. Try service network restart. Details: https://cli.co/n7xAbc1"
|
checkpoint_false "Route table Sing-box. Try service network restart. Details: https://cli.co/n7xAbc1"
|
||||||
@@ -208,7 +208,7 @@ if which tun2socks | grep -q tun2socks; then
|
|||||||
checkpoint_true "tun2socks package"
|
checkpoint_true "tun2socks package"
|
||||||
|
|
||||||
# Check route table
|
# Check route table
|
||||||
if ip route show table vpn | grep -q "default dev tun0 scope link"; then
|
if ip route show table vpn | grep -q "default dev tun0"; then
|
||||||
checkpoint_true "Route table tun2socks"
|
checkpoint_true "Route table tun2socks"
|
||||||
else
|
else
|
||||||
checkpoint_false "Route table tun2socks. Try service network restart. Details: https://cli.co/n7xAbc1"
|
checkpoint_false "Route table tun2socks. Try service network restart. Details: https://cli.co/n7xAbc1"
|
||||||
|
|||||||
Reference in New Issue
Block a user