From 88906b27c407d1a5488b890a5a2dc1ef5bb548c1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 3 Jun 2022 18:24:13 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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