From fce0701359638e298a04dbb6e56461df0a2c5d7e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 17 Mar 2023 22:29:11 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 9c7de14..32ee06e 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -76,7 +76,7 @@ MMSTART(){ PrivateKey = ${privkey} ListenPort = 55009 MTU = 1390 -DNS = 1.1.1.1 +DNS = 10.10.10.5 Address = ${vpnip} [Peer] @@ -198,7 +198,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf mmip="" cc=0 until [ "${scip}" != "" ] && [ "${mmip}" != "" ] && [ "${scip}" != ";; connection timed out; no servers could be reached" ] && [ "${mmip}" != ";; connection timed out; no servers could be reached" ]; do - scip=$(dig +short sc1.scity.us @9.9.9.9) + scip=$(dig +short sc1.scity.us @10.10.10.5 -p 5053) mmip=$(dig +short myip.opendns.com @resolver1.opendns.com) if ([ "${scip}" = "" ] || [ "${mmip}" = "" ]) && [ ${cc} -eq 10 ]; then echo -e "${idsCL[Red]}Cannot get an WAN address, restarting system!${idsCL[Default]}" @@ -434,7 +434,7 @@ MMSTATUS(){ fi echo -en " |- Verify routing through VPN : " - scip=$(dig +short sc1.scity.us @9.9.9.9) + scip=$(dig +short sc1.scity.us @10.10.10.5 -p 5053) mmip=$(dig +short myip.opendns.com @resolver1.opendns.com) if [ "${scip}" != "${mmip}" ]; then echo -e "${idsCL[Green]}Good${idsCL[Default]}"