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!

Do you have the screen utility installed?
Yes i do and it works fine , when i run in ssh

but when i try to run it as sh services-start

1656619633961.png



gets this error , i can see in the logs that services start is being triggered .
 
Yes i do and it works fine , when i run in ssh

but when i try to run it as sh services-start

View attachment 42325


gets this error , i can see in the logs that services start is being triggered .
You're not supposed to execute the services start file. The contents of this file will automatically run after the router is rebooted and services are started. So if you include The command that I sent you before, it will execute VPNMON-R2 using the screen utility
 
You're not supposed to execute services start file. The contents of this file will automatically run after the router is rebooted and services are started. So if you include The command that I sent you before, it will execute VPNMON-R2 using the screen utility
sadly no, its not running ,something else is wrong , i can see multiple active vpn clients . Once i manually run the script it works fine

Logs don't even show it running the script now
 
sadly no, its not running ,something else is wrong , i can see multiple active vpn clients . Once i manually run the script it works fine

Logs don't even show it running the script now
Perhaps make sure that both the vpnmon-r2 script and the services start file are both marked as executable?
 
Perhaps make sure that both the vpnmon-r2 script and the services start file are both marked as executable?
Finally after 3 hours figured it out .


Code:
#!/bin/sh

sleep 60 && sh /jffs/scripts/vpnmon-r2.sh -screen # vpnmonitor


needed to give it some time to mount
 
@Viktor Jaep

This is what i meant by the script taking some time to get a stable tunnel running , it happens rarely . In this case it took around 20 mins , dont know why it kept going back to VPN 4 and 5 after VPN 1 showed auth error , instead of trying 2 / 3

Code:
Fri Jul  1 01:53:45 GMT 2022 - VPNMON-R2 - API call made to update WAN city to Mumbai
Fri Jul  1 01:53:45 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Singapore
Fri Jul  1 01:54:00 GMT 2022 - VPNMON-R2 ----------> ERROR: Multiple VPN Client Connections detected - Executing VPN Reset
Fri Jul  1 01:54:00 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:54:07 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - Randomly selected VPN2 Client ON
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:54:28 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 - Randomly selected VPN1 Client ON
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:57:01 GMT 2022 - VPNMON-R2 - API call made to update WAN city to Mumbai
Fri Jul  1 01:57:02 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Singapore
Fri Jul  1 01:57:16 GMT 2022 - VPNMON-R2 ----------> ERROR: Multiple VPN Client Connections detected - Executing VPN Reset
Fri Jul  1 01:57:16 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:57:21 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:57:40 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 - Randomly selected VPN3 Client ON
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:59:10 GMT 2022 - VPNMON-R2 ----------> ERROR: Connection failed - Executing VPN Reset
Fri Jul  1 01:59:10 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:59:15 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 - Randomly selected VPN5 Client ON
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:00:32 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Amsterdam
Fri Jul  1 02:00:46 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:00:46 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:00:50 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:02:09 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Bangkok
Fri Jul  1 02:02:23 GMT 2022 - VPNMON-R2 ----------> WARNING: NordVPN Server Load is higher than 70% - Executing VPN Reset
Fri Jul  1 02:02:23 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:02:27 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - Randomly selected VPN5 Client ON
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:02:46 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:04:03 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Bangkok
Fri Jul  1 02:04:17 GMT 2022 - VPNMON-R2 ----------> WARNING: NordVPN Server Load is higher than 70% - Executing VPN Reset
Fri Jul  1 02:04:17 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:04:23 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - Randomly selected VPN5 Client ON
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:04:42 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:05:59 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Bangkok
Fri Jul  1 02:06:13 GMT 2022 - VPNMON-R2 ----------> WARNING: NordVPN Server Load is higher than 70% - Executing VPN Reset
Fri Jul  1 02:06:13 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:06:17 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - Randomly selected VPN1 Client ON
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:06:36 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 - Randomly selected VPN3 Client ON
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:07:53 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Singapore
 
@Viktor Jaep

This is what i meant by the script taking some time to get a stable tunnel running , it happens rarely . In this case it took around 20 mins , dont know why it kept going back to VPN 4 and 5 after VPN 1 showed auth error , instead of trying 2 / 3

Code:
Fri Jul  1 01:53:45 GMT 2022 - VPNMON-R2 - API call made to update WAN city to Mumbai
Fri Jul  1 01:53:45 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Singapore
Fri Jul  1 01:54:00 GMT 2022 - VPNMON-R2 ----------> ERROR: Multiple VPN Client Connections detected - Executing VPN Reset
Fri Jul  1 01:54:00 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:54:07 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - Randomly selected VPN2 Client ON
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 01:54:21 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:54:28 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 - Randomly selected VPN1 Client ON
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:54:42 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:57:01 GMT 2022 - VPNMON-R2 - API call made to update WAN city to Mumbai
Fri Jul  1 01:57:02 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Singapore
Fri Jul  1 01:57:16 GMT 2022 - VPNMON-R2 ----------> ERROR: Multiple VPN Client Connections detected - Executing VPN Reset
Fri Jul  1 01:57:16 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:57:21 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 01:57:35 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:57:40 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 - Randomly selected VPN3 Client ON
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:57:54 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 01:59:10 GMT 2022 - VPNMON-R2 ----------> ERROR: Connection failed - Executing VPN Reset
Fri Jul  1 01:59:10 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 01:59:15 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 - Randomly selected VPN5 Client ON
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 01:59:28 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:00:32 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Amsterdam
Fri Jul  1 02:00:46 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:00:46 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:00:50 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:01:06 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:02:09 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Bangkok
Fri Jul  1 02:02:23 GMT 2022 - VPNMON-R2 ----------> WARNING: NordVPN Server Load is higher than 70% - Executing VPN Reset
Fri Jul  1 02:02:23 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:02:27 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - Randomly selected VPN5 Client ON
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:02:41 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:02:46 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:03:00 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:04:03 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Bangkok
Fri Jul  1 02:04:17 GMT 2022 - VPNMON-R2 ----------> WARNING: NordVPN Server Load is higher than 70% - Executing VPN Reset
Fri Jul  1 02:04:17 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:04:23 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - Randomly selected VPN5 Client ON
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:04:37 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:04:42 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 - Randomly selected VPN4 Client ON
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:04:56 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:05:59 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Bangkok
Fri Jul  1 02:06:13 GMT 2022 - VPNMON-R2 ----------> WARNING: NordVPN Server Load is higher than 70% - Executing VPN Reset
Fri Jul  1 02:06:13 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:06:17 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - Randomly selected VPN1 Client ON
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 ----------> WARNING: Average PING across VPN tunnel is higher than 100 ms - Executing VPN Reset
Fri Jul  1 02:06:31 GMT 2022 - VPNMON-R2 - Executing VPN Reset
Fri Jul  1 02:06:36 GMT 2022 - VPNMON-R2 - Killed all VPN Client Connections
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 - Randomly selected VPN3 Client ON
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 - VPN Reset Finished
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 - Resuming normal operations
Fri Jul  1 02:07:53 GMT 2022 - VPNMON-R2 - API call made to update VPN city to Singapore
It seems that the VPN servers you're trying to connect to are all hitting the rules that you have configured, which is why it is constantly resetting. Perhaps setting your load to 80, and your ping to 120?
 
It seems that the VPN servers you're trying to connect to are all hitting the rules that you have configured, which is why it is constantly resetting. Perhaps setting your load to 80, and your ping to 120?
that would get the job done , but the problem is VPN 1,2,3 are my primary ones based out of SNG . Their pings are always around 60-65 ms . I kept the other 2 as backup just incase if the whole SNG goes down , then it switches to either TH or NL servers, who's pings are always above 100 .

So how do i get the best possible experience ,keeping in mind the possibility of a backup incase of a site going down.


I know its just net picking , this script is already amazing , but the logic , if possible ,could be refined would be great

Thanks alot @Viktor Jaep again , for all the help
 
I know its just net picking , this script is already amazing , but the logic , if possible ,could be refined would be great

Thanks alot @Viktor Jaep again , for all the help
Not to worry! I will try to come up with some working solution for you soon. I'll put some thought to it, but I will do my darndest to make sure that you get to have the best VPN experience possible
 
Not to worry! I will try to come up with some working solution for you soon. I'll put some thought to it, but I will do my darndest to make sure that you get to have the best VPN experience possible

o_O:D:D:D
 
Alrighty @iTyPsIDg ... and a beta for you! I've implemented your request above to the best of my ability. When you start the -config, it will ask you if you want to start from (1) default values, or (2) custom values based on an existing config file. From there, you can pretty much hit enter all the way down to keep all your custom values. Please let me know if I missed anything, OK? Would love to hear your thoughts!

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.9b2.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"

What's new since v1.9b1?
* Totally revamped the -config process to either let you start from scratch with default values, or use already existing values that you have modified in your current config file. Great suggestion by @iTyPsIDg to prevent you from having to continually modify the same entries over and over when a new version comes out. ;)
That was beautiful. Thank you!

I have one question regarding the new ping feature. Is that roundtrip or one-way? I'm always out of the US and connecting to US VPNs, so I typically need higher values. For good VoIP calls, I need my max one-way delay to be 150ms and my max roundtrip delay to be 300ms. I'm trying to figure out if I should enter 150 or 300 in your prompt.
 
That was beautiful. Thank you!

I have one question regarding the new ping feature. Is that roundtrip or one-way? I'm always out of the US and connecting to US VPNs, so I typically need higher values. For good VoIP calls, I need my max one-way delay to be 150ms and my max roundtrip delay to be 300ms. I'm trying to figure out if I should enter 150 or 300 in your prompt.
I'm pretty sure it's roundtrip? From your router to your VPN exit server across the tunnel.

Also, use the ping value you see in the interface as your guide, as it's based off that.
 
Last edited:
@Viktor Jaep your current branch is running very well :D. (i can say that for sure because the wife and kids have not complained about anything, in a loooonnngg time.)
Bahaha. Can't recall when my wife and kids have complained about internet being down for a long time now as well. VPNMON-R2 is an essential part of a happy marriage. Lol.
 
Also, @JAX1337 ... I see a lot of these in your logs:

Code:
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!

Please make sure that your NordVPN country name is spelled correctly? If it is, would you mind please sharing your /jffs/addons/vpnmon-r2.d/vpnmon-r2.cfg so I can understand why you're getting this error on a constant basis?
 
Also, @JAX1337 ... I see a lot of these in your logs:

Code:
Fri Jul  1 02:06:50 GMT 2022 - VPNMON-R2 ----------> ERROR: NordVPN.txt list is blank!

Please make sure that your NordVPN country name is spelled correctly? If it is, would you mind please sharing your /jffs/addons/vpnmon-r2.d/vpnmon-r2.cfg so I can understand why you're getting this error on a constant basis?

Nord had an Indian server, now they don't,
My country is turning into an authoritarian nightmare to live in. Looks like i will have to set it to SNG
 
Nord had an Indian server, now they don't,
My country is turning into an authoritarian nightmare to live in. Looks like i will have to set it to SNG
Ahhh @JAX1337 that makes sense. Yeah, I read they and ExpressVPN pulled out of India. :( To give you some hope, I've been working hard on this today... I have a little more testing to do, but I should be able to send this beta out for you to try! :) It basically gives you the ability to let it reset based on lowest pings to your configured VPN slots... I've been playing around quite a bit with it today, and if I didn't build some controls into it, it would be flipping back and forth every 60 seconds due to the servers competing with each other for lower pings. So I built a counter into it to prevent it from flipping around so much, and gives it 5 chances (configurable) before it actually makes a new connection to the fastest server.

vpnmon-r2-19b3.jpg
 
OK @JAX1337 ... please give this Beta 3 a try? Would love your feedback! If anyone else out there wants to send feedback - I'm all ears. Would love to hear from our Surfshark and Perfect Privacy friends as well! :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.9b3.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"

Please make sure you step through the "-config" to address the 2 questions that affect your situation...

1656815671689.png


What's new since v1.9b2?
* ADDED:
new functionality thanks to a suggestion from @JAX1337... this will let you be able to use VPNMON-R2 reset connections based on best speed/ping to your pre-configured VPN client slots. Going through the "-config", new question 5 will let you choose whether you want it to randomly pick, or use the lowest ping when choosing your VPN servers. In the process, the UI now shows average ping going to each of your configured slots, and will notify you on the bottom of the UI if it has found a better server to connect to. You have the option in question 5a to specify how many chances you would like your current VPN connection to deal with other servers that might have a lower ping, giving your current connection a chance to recover. I have found that if you have other servers configured in your vicinity, there's a chance they will compete with each other, which would be causing your connection to drop and reconnect to the "now" fastest server repeatedly. This configurable counter will help alleviate this behavior. ;)
* CHANGED: reduced the amount of clutter that a reset produces on the screen, and is much less verbose, and looks much cleaner. Using on-screen indicators to show what's currently happening in the script. Will continue to refine these.
 
Last edited:
OK @JAX1337 ... please give this Beta 3 a try? Would love your feedback! If anyone else out there wants to send feedback - I'm all ears. Would love to hear from our Surfshark and Perfect Privacy friends as well! :)

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R2/master/vpnmon-r2-1.9b3.sh" -o "/jffs/scripts/vpnmon-r2.sh" && chmod a+rx "/jffs/scripts/vpnmon-r2.sh"

Please make sure you step through the "-config" to address the 2 questions that affect your situation...

View attachment 42404

What's new since v1.9b2?
* ADDED:
new functionality thanks to a suggestion from @JAX1337... this will let you be able to use VPNMON-R2 reset connections based on best speed/ping to your pre-configured VPN client slots. Going through the "-config", new question 5 will let you choose whether you want it to randomly pick, or use the lowest ping when choosing your VPN servers. In the process, the UI now shows average ping going to each of your configured slots, and will notify you on the bottom of the UI if it has found a better server to connect to. You have the option in question 5a to specify how many chances you would like your current VPN connection to deal with other servers that might have a lower ping, giving your current connection a chance to recover. I have found that if you have other servers configured in your vicinity, there's a chance they will compete with each other, which would be causing your connection to drop and reconnect to the "now" fastest server repeatedly. This configurable counter will help alleviate this behavior. ;)
* CHANGED: reduced the amount of clutter that a reset produces on the screen, and is much less verbose, and looks much cleaner. Using on-screen indicators to show what's currently happening in the script. Will continue to refine these.
On it , testing
 

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