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!)

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".
 

Similar 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!
Back
Top