This commit is contained in:
2024-08-05 19:57:49 -05:00
parent 5c0cf69d68
commit 348fc2c16c
2 changed files with 11 additions and 8 deletions

View File

@@ -26,14 +26,14 @@ fi
OFFSITE_STATICROUTE_FIX(){
if [ -f ${NM_TMPFOLDER}/vpn-tunnel.down.sent ]; then
[ "$(CHECK_HOST 10.5.0.1)" != "true" ] && exit
[ "$(CHECK_HOST_NM 10.5.0.1)" != "true" ] && exit
fi
if [ "$(CHECK_HOST 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST_NM 10.10.0.1)" != "true" ]; then
if [ "$(CHECK_HOST ${NM_OFFSITE_GW_IP})" != "false" ]; then
if [ "$(CHECK_HOST 10.5.0.1)" != "false" ]; then
if [ "$(CHECK_HOST_NM 10.5.0.1)" != "false" ]; then
if [ -f ${NM_TMPFOLDER}/vpn-tunnel.down ]; then
SENDNOTICE "VPN to Homesite is Back Up" "VPN Tunnel is up"
fi