Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# VPNMON-R3 v1.8.1
# VPNMON-R3 v1.8.2
Asus-Merlin OpenVPN/Wireguard Monitor R3

Updated on 2025-Nov-16
Updated on 2025-Nov-23

---

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.8.2 - (November 23, 2025)
- PATCH: Thanks to @JTnola for sharing a "[: bad number" bug he was experiencing. This hard-to-find
bug only seemed to come up in certain scenarios when using the limited 2-OVPN slot configuration.
Variables weren't being assigned that the script was expecting, causing these errors. Fixed! :)

v1.8.1 - (November 16, 2025)
- PATCH: After dealing with several long periods of internet outages on my end, I decided to give a
bit more visibility to the WAN DOWN screens, showing it retrying every 60sec/300sec depending on
Expand Down
1 change: 1 addition & 0 deletions enhancements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
To-Do:
- If the WAN doesn't respond after X minutes, issue a router reboot?
- Find a way to remember past bandwidth stats so that it doesn't revert to [UNKN] as often.

Done:
- Find a way to reset all active VPN/WG counters, and set non-active ones to 0 - @CaptainSTX
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.8.1
1.8.2
8,055 changes: 8,055 additions & 0 deletions vpnmon-r3-1.8.1.sh

Large diffs are not rendered by default.

12 changes: 10 additions & 2 deletions vpnmon-r3.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

# VPNMON-R3 v1.8.1 (VPNMON-R3.SH) is an all-in-one script that is optimized to maintain multiple VPN connections and is
# VPNMON-R3 v1.8.2 (VPNMON-R3.SH) is an all-in-one script that is optimized to maintain multiple VPN connections and is
# able to provide for the capabilities to randomly reconnect using a specified server list containing the servers of your
# choice. Special care has been taken to ensure that only the VPN connections you want to have monitored are tended to.
# This script will check the health of up to 5 VPN connections on a regular interval to see if monitored VPN conenctions
Expand All @@ -14,7 +14,7 @@
export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"

#Static Variables - please do not change
version="1.8.1" # Version tracker
version="1.8.2" # Version tracker
beta=0 # Beta switch
screenshotmode=0 # Switch to present bogus info for screenshots
apppath="/jffs/scripts/vpnmon-r3.sh" # Static path to the app
Expand Down Expand Up @@ -6487,6 +6487,14 @@ getifacestats()
then
state1="$(_VPN_GetClientState_ 1)"
state2="$(_VPN_GetClientState_ 2)"
state3=0
state4=0
state5=0
wgstate1=0
wgstate2=0
wgstate3=0
wgstate4=0
wgstate5=0
elif [ "$availableslots" = "1 2 3 4 5" ]
then
state1="$(_VPN_GetClientState_ 1)"
Expand Down