What's new

VPNMON VPNMON-R2 v2.0 -Jul 10, 2022- Monitor your VPN connection's Health (Thread locked/closed)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

@dave14305 steven reported that the last text seen is from this check

# Show that we're testing the WAN connection
if [ $1 == "Loop" ]
then
printf "${CGreen}\r[Checking WAN Connectivity]..."
elif [ $1 = "Reset" ]
then
printf "${CGreen}\rChecking WAN Connectivity..."
fi
 
I was thinking what if we never made it to
while [ $Connectivity == "1" ]; do

, would the script just stop here and sit?
I actually already got rid of that in the next beta... I'm about to release this pending another successful test.
 
I have a REALLY good feeling about this release guys... ;)

Interim v1.5 Beta5 is out there if anyone wants to test any of this new functionality... Here's some of the additions since v1.5b4:
  • SIGNIFICANT testing has been done on the WAN up/down functionality... I don't think I've brought my internet down this much in the last 10 years total. My family thanks you and is praying this is the gold version! LOL. Sincere thanks to everyone involved on helping troubleshoot this and jumping in to pull apart this code! You guys absolutely rock! @SomeWhereOverTheRainBow, @dave14305, @iTyPsIDg, @Stephen Harrington ... thank you so much!
  • This is now testing for 2 distinct events -- (1) where the modem is physically off/disconnected, and (2) where the modem is on, but the ISP is down/disconnected. I never knew that the router/NVRAM couldn't tell the difference until @Stephen Harrington and @iTyPsIDg made this observation. But the end results after testing this is that it seems to be able to get past both hurdles now.
Beta5
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.5b5.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"

Stable:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.4.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"
 
I have a REALLY good feeling about this release guys... ;)

Interim v1.5 Beta5 is out there if anyone wants to test any of this new functionality... Here's some of the additions since v1.5b4:
  • SIGNIFICANT testing has been done on the WAN up/down functionality... I don't think I've brought my internet down this much in the last 10 years total. My family thanks you and is praying this is the gold version! LOL. Sincere thanks to everyone involved on helping troubleshoot this and jumping in to pull apart this code! You guys absolutely rock! @SomeWhereOverTheRainBow, @dave14305, @iTyPsIDg, @Stephen Harrington ... thank you so much!
  • This is now testing for 2 distinct events -- (1) where the modem is physically off/disconnected, and (2) where the modem is on, but the ISP is down/disconnected. I never knew that the router/NVRAM couldn't tell the difference until @Stephen Harrington and @iTyPsIDg made this observation. But the end results after testing this is that it seems to be able to get past both hurdles now.
Beta5
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.5b5.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"

Stable:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.4.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"
I am glad you chose to go with
while true
.

Let us just say, so much more flexibility. Good work.
 
Interim v1.5 Beta5 is out there if anyone wants to test any of this new functionality...

By George I think you've got it!
I just did 2 cycles of WAN Down/WAN Up by powering off/waiting/powering on my cable modem and it performed as advertised!
Well done @Viktor Jaep

I don't think I've brought my internet down this much in the last 10 years total.

You haven't experienced the joys of living in a country with "worst of breed" broadband like Australia - overpriced and underperforming.

:)
 
By George I think you've got it!
I just did 2 cycles of WAN Down/WAN Up by powering off/waiting/powering on my cable modem and it performed as advertised!
Well done @Viktor Jaep



You haven't experienced the joys of living in a country with "worst of breed" broadband like Australia - overpriced and underperforming.

:)
and @dave14305 , it appears to also work very well with switching wans as well ;).
 
@Viktor Jaep if you continue to run into issues with those nvram variables, you have a few physical tools at your disposal such as ping for one.
Yeah, that's one of the reasons I'm also leaning on NC to help with an alternate way of verifying WAN connectivity... the Ping command is used quickly to check the tunnel and escalates from there. This has certainly been a fun puzzle. ;)
 
By George I think you've got it!
I just did 2 cycles of WAN Down/WAN Up by powering off/waiting/powering on my cable modem and it performed as advertised!
Well done @Viktor Jaep
Thanks for checking in, @Stephen Harrington, and giving us this great news from across the pond! :) You made my night!

You haven't experienced the joys of living in a country with "worst of breed" broadband like Australia - overpriced and underperforming.

:)
LOL! Apparently I have not experienced that! Well, I hope that this will help alleviate and automate things a bit more... :)
 
Thanks for checking in, @Stephen Harrington, and giving us this great news from across the pond! :) You made my night!

Worked out fortuitously - didn't think I'd be able to do any testing today due to partner's WFH demands, but she got called into the office at the last minute so the "Testing WAN Down" opportunity opened up unexpectedly.

:)
 
Worked out fortuitously - didn't think I'd be able to do any testing today due to partner's WFH demands, but she got called into the office at the last minute so the "Testing WAN Down" opportunity opened up unexpectedly.

:)
:D Thanks Steve! Yeah, you should have heard the groans from my family on this end after saying "this SHOULD be the last time it goes down" multiple times... Bunch of addicts! Lol
 
A quick note for members (especially reading this thread), I have added @Viktor Jaep to the Addons Donation Thread/Sticky. Well deserved :)
 
A quick note for members (especially reading this thread), I have added @Viktor Jaep to the Addons Donation Thread/Sticky. Well deserved :)
Thanks again, John. I'm really honored to be included. In fact, it gives me great joy knowing there's others out there (other than me!) getting some good use out of VPNMON-R2/VPNON... making life easier, more automated, hopefully a more stable VPN connection... randomized, of course... that's what counts. Huge thanks to everyone on this forum participating in this project! ;)
 
Rhetorical question... WAN0 and WAN1 always correlate to eth0 and eth1 on our routers, right?
 
I would guess no. Not always.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top