Update mm-scripts.sh

This commit is contained in:
2022-06-03 18:24:13 -05:00
parent e557d23436
commit 88906b27c4

View File

@@ -259,6 +259,16 @@ MMSTATUS(){
else
echo -e "${idsCL[Red]}Does not match 0.0.0.0 route${idsCL[Default]}"
fi
echo -en " |- Verifying routing to VPN --> : "
scip=$(dig +short sc1.scity.us @ns1.scity.us)
mmip=$(dig +short myip.opendns.com @resolver1.opendns.com)
if [ "${scip}" != "${mmip}" ]; then
echo -e "${idsCL[Green]}Good${idsCL[Default]}"
else
echo -e "${idsCL[Red]}Not routing through VPN${idsCL[Default]}"
fi
echo
fi
fi