diff --git a/mm-scripts.sh b/mm-scripts.sh index c9756b2..a15ea42 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -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