What's new
  • 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!

VPNMON VPNMON-R3 v1.8.2 -Nov 23, 2025- Monitor OpenVPN/Wireguard WAN/Dual-WAN Health & Random Reset Multiple Connections (Available in AMTM!) - v1.8.3Beta1

If I understand correctly to change the ssl connection host I would have to edit vpnmon script.

##-------------------------------------##
## Added by Martinski W. [2024-Oct-05] ##
##-------------------------------------##
readonly PING_HOST_Deflt="8.8.8.8"

From checkwan function()

# Using Google's DNS server as default to test for WAN connectivity over verified SSL Handshake
wandownbreakertrip=0
testssl="$PING_HOST_Deflt"

Maybe a good candidate to make configurable.
It's already configurable, under the settings. 😋
 
I guess I did not think it would also work for wan check.
( 2) : Custom PING host to determine VPN health : 1.1.1.1
 
I guess I did not think it would also work for wan check.
( 2) : Custom PING host to determine VPN health : 1.1.1.1
Probably should tweak that wording. Thanks! But yeah, it's used for both.
 
On the subject of Asus router date/time/daylight saving time, I wrote a sanity checker script which attempts to display your router's settings in an easier to understand format
Code:
echo "========================================================"
asus_timezone=$(nvram get time_zone)
echo "Daylight Saving Time Zone (Asus): ${asus_timezone}"
dst_enabled=$(nvram get time_zone_dst)
echo "Daylight Saving Time enabled: ${dst_enabled}"
dst_all=$(nvram get time_zone_dstoff)
echo "Daylight Saving Time Change Asus: ${dst_all}"
dst_iana=$(strings /etc/localtime | tail -1)
echo "Daylight Saving Time Change IANA: ${dst_iana}"
echo "========================================================"
dst_Spring=$(echo ${dst_all} | cut -d "," -f 1)
echo "Spring forward: ${dst_Spring}"
dst_Spring_month=$(echo ${dst_Spring} | cut -d "M" -f 2 | cut -d "." -f 1)
echo "Spring forward month: ${dst_Spring_month}"
dst_Spring_weekofmonth=$(echo ${dst_Spring} | cut -d "." -f 2)
echo "Spring forward week of month: ${dst_Spring_weekofmonth}"
dst_Spring_dayofweek=$(echo ${dst_Spring} | cut -d "." -f 3 | cut -d "/" -f 1)
echo "Spring forward day of week: ${dst_Spring_dayofweek} (0=Sunday)"
dst_Spring_hourofday=$(echo ${dst_Spring} | cut -d "/" -f 2)
echo "Spring forward hour of day: ${dst_Spring_hourofday}"
echo "========================================================"
dst_Fall=$(echo ${dst_all} | cut -d "," -f 2)
echo "Fall backward: ${dst_Fall}"
dst_Fall_month=$(echo ${dst_Fall} | cut -d "M" -f 2 | cut -d "." -f 1)
echo "Fall backward month: ${dst_Fall_month}"
dst_Fall_weekofmonth=$(echo ${dst_Fall} | cut -d "." -f 2)
echo "Fall backward week of month: ${dst_Fall_weekofmonth}"
dst_Fall_dayofweek=$(echo ${dst_Fall} | cut -d "." -f 3 | cut -d "/" -f 1)
echo "Fall backward day of week: ${dst_Fall_dayofweek} (0=Sunday)"
dst_Fall_hourofday=$(echo ${dst_Fall} | cut -d "/" -f 2)
echo "Fall backward hour of day: ${dst_Fall_hourofday}"
echo "========================================================"
echo "Current month: $(date +"%m (%B)")"
current_week_of_month=$(( $(date +%U) - $(date +%U -d "$(date +%Y-%m-01)") + 1 ))
echo "Current week of month: ${current_week_of_month}"
echo "Current day of week: $(date +"%w (%A)")"
echo "Current hour of day: $(date +"%H")"
echo "========================================================"
date +"Local week of year: %U %nLocal day of year: %j %nLocal date: %A, %B %e, %Y %nLocal 12: %r %Z %z "
echo "========================================================"
echo "Local 24: $(date -R)"
echo "UTC 24: $(date -u)"
echo "========================================================"
 
On the subject of Asus router date/time/daylight saving time, I wrote a sanity checker script which attempts to display your router's settings in an easier to understand format
Great one! I Just gave it a try and it displayed everything as intended.
The only error I got this time was:
strings: /etc/localtime: No such file or directory
I searched all my router's files and directories and wasn't able to find a file or directory named localtime
In a previous post in this thread while trying another code by you, I got the error:
strings: /rom/usr/share/zoneinfo/Asia/Kuwait: No such file or directory
But I was able to find a folder named zoneinfo under /opt/share/ and it eventually worked.
I'm just wondering is it just my old router that has old/deprecated paths?
 
Great one! I Just gave it a try and it displayed everything as intended.
The only error I got this time was:

I searched all my router's files and directories and wasn't able to find a file or directory named localtime
In a previous post in this thread while trying another code by you, I got the error:

But I was able to find a folder named zoneinfo under /opt/share/ and it eventually worked.
I'm just wondering is it just my old router that has old/deprecated paths?
It appears that Asus adopted the Linux standard sometime after your router. There would be a symbolic link from /etc/localtime to the corresponding file in the IANA timezone directory structure. This is what Linux uses if TZ is not defined.
On my system, /etc/localtime points to /rom/usr/share/zoneinfo/US/Eastern. The last text string in the timezone data file is "EST5EDT,M3.2.0,M11.1.0".
If your system supported this, /etc/localtime would point to a Kuwait or Riyadh file. The last text string in the file would be "AST-3".
You do not have the /rom/usr/share/zoneinfo IANA directory tree but you and I appear to have downloaded one in our Entware tree. In the Entware version of Kuwait and Riyadh, the string at the end is "<+03>-3".
 
We've got a BOGO deal going on today! VPNMON-R3 1.8.3 Beta 1 is also out today to test some of these experimental waters as well. This one has some significant changes, so please read the release notes, and keep an eye its behavior. Should be all good from the limited testing I've done, but value your feedback immensely!

What's new!?
v1.8.3b1 - (Release Date TBA)
- PATCH:
The Recovery Timeout should be defaulting to 1x, but it was inadvertently set to 3x. Thank you to @Tarek Yag for reporting this. Fixed!
- PATCH: Changed the wording for the custom PING host to "Custom PING host for connectivity checks" to bring more clarity that it wasn't just for VPN checks, but WAN and WG as well. Thanks to @scootertramp for reporting.
- PATCH: Changed the date/time to include the offset alongside the timezone. This is to give more visibility for those who aren't assigned a standard timezone name, and in some cases would fall back to using "GMT". Thanks to @Tarek Yag for reporting this, and for @EmeraldDeer providing a deep dive into the date command options.
- PATCH: Fixed some hardcoded instances where the recovery timeouts were set to 3, instead of using user-selected values.
- PATCH: Fixed some instances where the PINGHOST variable was hardcoded to 8.8.8.8, instead of using user-selected values.
- PATCH: Implemented recovery timeouts (if configured) and will apply to the WAN as well. Should the WAN have issues establishing an SSL connection with the user-selected PINGHOST, it will attempt to try the number of times that is user-specified.
- PATCH: Cut down all VPN/WG connection and reset times by half. Will continue to monitor closely for misbehavior. Done in response to @scootertramp noting the long time it takes to reconnect all VPN/WG connections after a WAN DOWN event.
- PATCH: Removed the functionality that would reset the Rx/Tx indicators to [UNKN] each time you went into a different menu item. It will now just show live stats no matter what. For consistent and more accurate results, wait your full 60 seconds (or whatever you've set your timer value to).

Download link:
Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/develop/vpnmon-r3.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"

Significant Screenshots:

TZ Offset now being displayed... and many more enhancements in the background. :)

1764994599289.png
 
Last edited:

Similar threads

Latest threads

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!

Members online

Back
Top