mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2026-02-02 23:57:45 +05:00
route_allowed_ips check added
This commit is contained in:
@@ -92,6 +92,14 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check WG route_allowed_ips
|
||||||
|
if uci show network | grep -q ".route_allowed_ips='1'"; then
|
||||||
|
checkpoint_false "Wireguard route_allowed_ips"
|
||||||
|
echo "All traffic goes into the tunnel. Read more at: https://cli.co/SaxBzH7"
|
||||||
|
else
|
||||||
|
checkpoint_true "Wireguard route_allowed_ips"
|
||||||
|
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 scope link" )
|
||||||
if [ $ROUTE_TABLE -eq 1 ]; then
|
if [ $ROUTE_TABLE -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user