Viktor Jaep
Part of the Furniture
Today mine is caught in a loop. Keeps killing everything then showing my local vpn's but will not turn any of them on in my router Rt-ac68u.![]()

Today mine is caught in a loop. Keeps killing everything then showing my local vpn's but will not turn any of them on in my router Rt-ac68u.![]()
How do you achieve 100% uptime when there is a vpn switch happening due to Load threshold?The idea behind VPNMON-R2 is to let it do what it needs to do in order to ensure a continuous connection... Mine has literally been running for months without interruption, and providing 100% VPN uptime.
I meant, it is providing for my VPN connectivity 100% of the time... sure there are momentary drops as it reconnects based on a schedule or due to unforeseen connectivity issues... but I'm trying to avoid running multiple connections at this point. It is an interesting observation to have the 2nd one start before the 1st one disconnects to make it a bit more seamless... I will certainly add this to my list to experiment with!How do you achieve 100% uptime when there is a vpn switch happening due to Load threshold?
I thought vpnmon would start the other vpn slot in such a case, switch over and disable the previous vpn, instead of going through the cycle with downtime and LAN clients disconnected.
Sounds like the OS was dealing with a major failure of some sort. Did you find anything interesting in the syslogs?
Keep up the good work and thanks.![]()
Hey @cofetym ... are you talking about the setup work to get your VPN slots configured (like importing the certificate and such)? Or are you manually configuring your slots with NordVPN servers? Because once you enable superrandom, or even if you set it to "use recommended servers" under option #6 in the setup, it will start picking UDP servers for you automatically and writing those to your VPN slots? Let me know... I'm intrigued on what I can do to help make things easier?Viktor I think you are absolutely right, it took me awhile to get back into that router. No logs unfortunately...
It would be nice if there was a quicker way to put all of the udp protocols in. Especially if you are already a Nord subscriber. I have saved some of the udp servers on my pc but sometimes they won't connect.
The vpnmon-r2 searches for servers, so it would be nice if it would search for servers to get you up and running again.
Hope some of what I'm saying makes some sense!
Ahh. Yeah, what I do is load just 1 slot with a downloaded Nordvpn config file, and get it working. Once everything works, I just duplicate the other 4 slots with the same exact config file and settings. VPNMON-R2 will then overwrite the server name next time it runs it's super random routine, and all will continue to work as it should.Authentication settings (user name and password). Then from scratch I thought you had to make sure that all udp's downloaded had to be able to connect to the internet.
When I uploaded udp it would kick out the user name and password. Then I'd have to input them again.
Thanks Victor I really should have thought about that!Ahh. Yeah, what I do is load just 1 slot with a downloaded Nordvpn config file, and get it working. Once everything works, I just duplicate the other 4 slots with the same exact config file and settings. VPNMON-R2 will then overwrite the server name next time it runs it's super random routine, and all will continue to work as it should.![]()
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-2.40.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"
How often are you resetting? Do you have any cron jobs performing any resets? When you hit the r key does it perform a reset? What kind of router are you running? What version of Merlin are you on? Sorry for all the questions but I just don't have a lot to go onAny idea why the reset isn't working?
Sounds like the batteries in your crystal ball are flat maybe?but I just don't have a lot to go on![]()
It's always a nice feeling when everything comes together and works as advertised!After I ran the 'fc disable' command to fix a problem with flex qos , also vpnmgr is visible again in the webUI , don't ask me why!!! However everything works
#!/bin/sh
########################
## call-monitors.sh
########################
LogCmd="/usr/bin/logger -sct "$0_$$""
_DoExit_() {
$LogCmd "EXIT $1"
exit $1
}
$LogCmd "START"
# Set Maximum Timeout value as you see fit #
MaxTimeout=600
SleepSecs=2
TimerSecs=0
OptBinFile="/opt/sbin/screen"
case "$1" in
DNS)
Command="sh"
ScriptFile="/jffs/scripts/merlin-dns-monitor.sh"
Options=""
ScreenName="dnsmon"
;;
VPN)
Command="sh"
ScriptFile="/jffs/scripts/vpnmon-r2.sh"
Options="-monitor"
ScreenName="vpnmon-r2"
;;
RTR)
Command="sh"
ScriptFile="/jffs/scripts/rtrmon.sh"
Options="-monitor"
ScreenName="rtrmon"
;;
*)
$LogCmd "ERROR: Incorrect argument passed. [$1]"
_DoExit_ 2
;;
esac
if [ ! -f $ScriptFile ]; then
$LogCmd "ERROR: [$ScriptFile] NOT found."
_DoExit_ 1
fi
ScriptCommand="${Command} ${ScriptFile} ${Options}"
until [ -f $OptBinFile ] || [ $TimerSecs -ge $MaxTimeout ]; do
sleep $SleepSecs
TimerSecs=$(($TimerSecs + $SleepSecs))
done
if [ ! -f $OptBinFile ]; then
$LogCmd "ERROR: [$OptBinFile] NOT found."
_DoExit_ 2
fi
$LogCmd "Launching $ScriptFile"
$OptBinFile -dmS $ScreenName $ScriptCommand
_DoExit_ 0
#EOF#
FYI - I updated my autostart script due to the addition of the -monitor command line options.
Bash:#!/bin/sh ######################## ## call-monitors.sh ######################## LogCmd="/usr/bin/logger -sct "$0_$$"" _DoExit_() { $LogCmd "EXIT $1" exit $1 } $LogCmd "START" # Set Maximum Timeout value as you see fit # MaxTimeout=600 SleepSecs=2 TimerSecs=0 OptBinFile="/opt/sbin/screen" case "$1" in DNS) Command="sh" ScriptFile="/jffs/scripts/merlin-dns-monitor.sh" Options="" ScreenName="dnsmon" ;; VPN) Command="sh" ScriptFile="/jffs/scripts/vpnmon-r2.sh" Options="-monitor" ScreenName="vpnmon-r2" ;; RTR) Command="sh" ScriptFile="/jffs/scripts/rtrmon.sh" Options="-monitor" ScreenName="rtrmon" ;; *) $LogCmd "ERROR: Incorrect argument passed. [$1]" _DoExit_ 2 ;; esac if [ ! -f $ScriptFile ]; then $LogCmd "ERROR: [$ScriptFile] NOT found." _DoExit_ 1 fi ScriptCommand="${Command} ${ScriptFile} ${Options}" until [ -f $OptBinFile ] || [ $TimerSecs -ge $MaxTimeout ]; do sleep $SleepSecs TimerSecs=$(($TimerSecs + $SleepSecs)) done if [ ! -f $OptBinFile ]; then $LogCmd "ERROR: [$OptBinFile] NOT found." _DoExit_ 2 fi $LogCmd "Launching $ScriptFile" $OptBinFile -dmS $ScreenName $ScriptCommand _DoExit_ 0 #EOF#
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-2.41.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"
@Viktor Jaep - Do you think it would be possible to add a feature for NordVPN users to select Yes/No if they use SmartDNS, and if they do and the WAN IP changes, the script would also submit a request to change the IP with Nord?
One issue I could see is what I run into from time to time: using the stated WAN IP rather than curling icanhazip.com. Some of my Airbnb's don't allow me to replace their router, so I have to plug mine into theirs which gives my WAN a private IP.Correct. I'm hoping that if you can catch it quickly enough, you'll have cached DNS results to initiate the reset before all DNS fails. Once that happens, VPNMON-R2 keeps resetting.
Also, I guess I was not paying close enough attention and put this in the wrong thread. I apologize.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!