Viktor Jaep
Part of the Furniture
I'm thinking Santa is going to have VPNMON-R3 ready for everyone who has been good this year, and not on the naughty list... ready to download on Christmas Eve as an early stocking-stuffer.
For a future release, please consider updating the VPN server lists via an external switch, similar toRight now it's a manual process. You would go into the VPN Client Slot Server List Automation screen, and execute the query you want (using keys e1 - e5) in order to update the list. I have some plans in the works to automate this update through the means of a -switch and cron job. Luckily these server IPs don't change too often, so you are probably safe for a while, but definitely need to be refreshed every so often.
vpnmon-r3 -reset
For a future release, please consider updating the VPN server lists via an external switch, similar toCode:vpnmon-r3 -reset
I am using external switches to control over some behaviour of the R2 script like reseting the VPN, currently automated server list update is missing feature to switch from R2 to R3 for me.
For a future release, please consider updating the VPN server lists via an external switch, similar toCode:vpnmon-r3 -reset
I am using external switches to control over some behaviour of the R2 script like reseting the VPN, currently automated server list update is missing feature to switch from R2 to R3 for me.
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/main/vpnmon-r3-0.6b.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/main/vpnmon-r3-0.6b.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"
Hey @pchtz... You are very welcome! I appreciate your nice comments!Hi @Viktor Jaep !
I'd like to thank you for your enormous contribution to the community with your VPNMON-R2 and R3 monitor utility. I really enjoy configuring VPN stuff in my Asus RT-AX68U.
Is this new R3 version compatible with Wireguard VPNs? Do you think it will be compatible any time soon? I'm using NordVPN and I finally managed to obtain a Wireguard conf file. I tested it with my Asus router and the wireguard config with NordVPN works just fine. The issue that I have now is the very same issue that motivated you to create this monitor tool...every time in a while it just disconnects.
Anyway, I'm actually using the R2 with the openvpn conf and i'd like to upgrade to R3. if I'm just using NordVPN would you recommend upgrading from R2 to R3?
best
Thank you for answering so fastHey @pchtz... You are very welcome! I appreciate your nice comments!
I'm sorry, but R2 and R3 are only meant for OpenVPN at this point. I have not dabbled in the world of Wireguard yet. At the moment, I don't have any plans to bring this functionality over into R3, as it may just need to be a separate script made for this function. I'm hoping someone will eventually step up to the plate and create WIREMON! LOL.
But if you're using R2, you can certainly make the move to R3. It is a more open script that isn't reliant on VPN Vendors or their API capabilities. More of a true "keep the trains running" kind of script. Just make sure R2 has been stopped/uninstalled before running R3 so you don't have competing scripts monitoring your connections.
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/main/vpnmon-r3-0.7b.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"
Please do!!Thank you for answering so fast
Maybe one day I'll start scripting and come up with a WIREMON
I stopped R2 and I'm testing R3 now. I successfully configured my first VPN slot with NordVPN and Chilean servers using the R(U)n server list automation (I'm from there )
I'm pretty sure 10 is between 1 and 999 LOL
I tried with different numbers. Always get the invalid entry error. Any ideas?
I'm pretty sure 10 is between 1 and 999 LOL
I tried with different numbers. Always get the invalid entry error. Any ideas?
Confirmed! I downloaded latest version and it's workingOK... the newest v0.7b addresses this issue. All good! Let me know if that works better for you.
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/main/vpnmon-r3-1.01.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"
Upgraded, and it is working has it should...Thank you!Merry Christmas! And we're live!
What's new?
v1.01 - December 24, 2023
- FINAL RELEASE - Throughout the development of VPNMON-R2, I had many requests from those who were running multiple VPN connections. R2 was designed to support a single VPN connection, and would have been tough to integrate the ability to manage multiple VPN connections within it. I decided it was just better to start from the ground up with R3. Also, I wanted R3 to be a more open platform, that gives you the freedom and ability to use whatever VPN provider you want, without being tied to certain BIG-NAME VPN providers out there. Ultimately, R3 just needs a single column list of VPN Server IPs that it can randomly choose from should a connection need to be reset. And if you don't have a list? That's fine too... and it will just try to reconnect with whatever server you currently have configured in your VPN Slot. Having created a completely different thread that covers examples how you can pull the necessary VPN Server IP data from various sources, this should give you enough to go on to support your own efforts! I brought a couple of features over from R2, the biggest one being the integration with Unbound. In this day and age of privacy, I believe this is a must-have feature which allows your DNS queries to remain private from your ISP or other monitoring agencies. All in all, R3 is a slimmed down, more efficient and more open version of R2. I hope it serves your purposes well!
UPGRADE NOTES: For those who want to upgrade from R2, to R3... If you want to keep both for now, simply stop R2, make it's no longer starting after a reboot, and install R3. You don't want R2 and R3 running at the same time, else they might be competing to reset your VPN connections. If you want to remove R2 completely, go under the setup/config menu in R2, and uninstall. You will lose all your settings. Then install R3.
Download link:
Code:curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/main/vpnmon-r3-1.01.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"
Significant screenshots:
FINAL RELEASE - v1.01
View attachment 55095
NOTE: To those who were on Beta v0.7 - there are no other changes between it and v1.01 other than a few cosmetic items!
Thank you for this feature, I can confirm that works just fine.v0.6b - ADDED: New menu item under the setup/configuration menu: "Refresh Custom Server Lists on -RESET Switch", with thanks to @salvo for the suggestion. This option will refresh any custom VPN Client Slot Server Lists you have defined, and will refresh these when running a VPNMON-R3 with a -reset command. This is typically done through a CRON job, but can be run manually at any time as well depending on your needs.
Nice catch, @salvo... I hadn't run across that issue yet, but it is certainly sounding plausible now that you experienced it. I'll work on getting a pause in there while an external -RESET is executed. Thanks!Thank you for this feature, I can confirm that works just fine.
The only thing to consider is stopping/pausing the monitoring slots while the RESET routine is running. It was a sort of "fight" between the VPN slot reset from the monitoring routine and the RESET switch routine. The monitor was resetting the VPNX slot at the same time the RESET switch was adding new IPs and resetting the client as well, so like 2 client resets with some offset. If I recall correctly behaviour of R2, when RESET was iniated, the monitor was paused or stopped.
VPNMON-R3 - v1.01 | (S)how/(H)ide Operations Menu Sat Jan 6 14:30:48 CET 2024
Slot | Mon | Svrs | Health | VPN State | Public VPN IP | Ping-->VPN | City Exit / Time
-------|-----|--------|--------|--------------|-----------------|------------|-----------------------
VPN1 | [X] | [0005] | [ OK ] | Connected | 193.142.203.178 | [0029.614] | Prague: 0d 00h:00m - NEW
awk: cmd. line:1: Unexpected token
VPN2 | [X] | [0005] | [ OK ] | Connected | 045.129.032.171 | | Prague: 0d 00h:50m - NEW
VPN3 | [X] | [0005] | [ OK ] | Connected | 193.142.203.001 | [0031.464] | Prague: 0d 00h:50m - NEW
-------|-----|--------|--------|--------------|-----------------|------------|-----------------------
10s / 16% [e=Exit] [Selection? ]
Not a problem... already working on getting a pause in there!The script managed to establish standard behaviour eventualy without any problems, although there was some struggle to reset the VPN slot (I tried to simulate this scenario 3 times).
Yes it does!Few more comments:
1. does the (R)eset VPN CRON Scheduler: 01:00 also execute Refresh Custom Server Lists ?
I've seen that error on a rare occasion as well. I'll see what I can do to catch it. It seems related to being unable to get a ping value of some sorts... but then on the next round, it goes away. Hard to catch these things when they misbehave so infrequently, ya know?2. I did observe some unstandard behaviour below after slot reset "Unexpected token":
- I tried to resett VPN1 slot "Reset/Reconnect VPN 11)" and get below output after reset "awk: cmd. line:1: Unexpected token"
- after second cycle "awk: cmd. line:1: Unexpected token" dissapear dissapeared
- I tried several times to reset again but no more "awk: cmd. line:1: Unexpected token"
Code:VPNMON-R3 - v1.01 | (S)how/(H)ide Operations Menu Sat Jan 6 14:30:48 CET 2024 Slot | Mon | Svrs | Health | VPN State | Public VPN IP | Ping-->VPN | City Exit / Time -------|-----|--------|--------|--------------|-----------------|------------|----------------------- VPN1 | [X] | [0005] | [ OK ] | Connected | 193.142.203.178 | [0029.614] | Prague: 0d 00h:00m - NEW awk: cmd. line:1: Unexpected token VPN2 | [X] | [0005] | [ OK ] | Connected | 045.129.032.171 | | Prague: 0d 00h:50m - NEW VPN3 | [X] | [0005] | [ OK ] | Connected | 193.142.203.001 | [0031.464] | Prague: 0d 00h:50m - NEW -------|-----|--------|--------|--------------|-----------------|------------|----------------------- 10s / 16% [e=Exit] [Selection? ]
Right, I tried many things but was not able to replicate this issue. I assume there will be very specific output from ping execution where awk utility is not able to handle correctly.I've seen that error on a rare occasion as well. I'll see what I can do to catch it. It seems related to being unable to get a ping value of some sorts... but then on the next round, it goes away. Hard to catch these things when they misbehave so infrequently, ya know?
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!