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!

OpenVPN keeps on turning itself off

Hmmm... I'll have to look into why it would have done that. Any chance you may have picked 2 VPN slots initially, and then changed it to 5 down the road?

I think the first thing to look at is to make sure that the /jffs/addons/vpnmon-r3.d/vr3timers.txt file looks correct. If you're missing any lines, just add using the example below:

Code:
VPNTIMER1=1714280868
VPNTIMER2=0
VPNTIMER3=0
VPNTIMER4=0
VPNTIMER5=0

After saving it, try stopping/starting vpn4/5 and see if the time comes back?
Thanks!

That worked however starting or stopping using the router's GUI to start and stop or using scMerlin didn't accomplish it the stop and restart had to be done in VPNMON and then have reenable monitoring the clients without timers.
 
I have been using VPMON-R3 and it has been doing what it is designed to do and keeps my OpenVPN Client 1 up and functioning.

When the client exceeds the 500ms time limit I set, I get an email that the client is down. Apparently VPMON does what it is supposed to do because when I eventually log into either VPMON or the router the VPN client is up and running and based on the time it has been up it in fact has been restarted. I only have a single server listed for my client 1. Even though I have set the email settings in VPMON to send emails both for success and failure I never get an email stating that the VPN client has been reestablished.

It would be useful to get an email stating that the VPN client was up and running after a restart to save me from having to do manually check. Am I not understanding what the purpose of what the success email is for or is there something wrong with my setup that I need to change so I get an email on a successful restart?

Thanks.
 
I have been using VPMON-R3 and it has been doing what it is designed to do and keeps my OpenVPN Client 1 up and functioning.
Happy to hear it's serving its purpose! ;)

When the client exceeds the 500ms time limit I set, I get an email that the client is down. Apparently VPMON does what it is supposed to do because when I eventually log into either VPMON or the router the VPN client is up and running and based on the time it has been up it in fact has been restarted. I only have a single server listed for my client 1. Even though I have set the email settings in VPMON to send emails both for success and failure I never get an email stating that the VPN client has been reestablished.

It would be useful to get an email stating that the VPN client was up and running after a restart to save me from having to do manually check. Am I not understanding what the purpose of what the success email is for or is there something wrong with my setup that I need to change so I get an email on a successful restart?

Thanks.
There's not really an email that goes out saying that the VPN was re-established after a restart. There is, however, a failure email that goes out saying that a slot was disconnected or non-responsive, and that it has been reset. You can assume when receiving an email like this, that the VPN client was reset. If it has trouble, you'd be seeing another failure email coming your way as it tries again.

Example:
Code:
printf "<b>FAILURE: VPNMON-R3</b> has detected that VPN Slot $3 is in an error state. VPN Slot $3 has been reset.\n"
printf "Please check your network environment and configuration if this error continues to persist."

The success emails only have been defined for: (1) a scheduled reset was completed, (2) a manual reset was completed, (3) manually stopped and unmonitored a VPN Slot.

Let me know if you think there's something I'm missing, OK?

Oh, and if you were testing the need for spdMerlin interfaces to catch up after a VPN client reset, I've got a test out here if you want to try it:

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/develop/vpnmon-r3.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"

Option #9 under the config menu is new to support spdMerlin.
 
Happy to hear it's serving its purpose! ;)


There's not really an email that goes out saying that the VPN was re-established after a restart. There is, however, a failure email that goes out saying that a slot was disconnected or non-responsive, and that it has been reset. You can assume when receiving an email like this, that the VPN client was reset. If it has trouble, you'd be seeing another failure email coming your way as it tries again.

Example:
Code:
printf "<b>FAILURE: VPNMON-R3</b> has detected that VPN Slot $3 is in an error state. VPN Slot $3 has been reset.\n"
printf "Please check your network environment and configuration if this error continues to persist."

The success emails only have been defined for: (1) a scheduled reset was completed, (2) a manual reset was completed, (3) manually stopped and unmonitored a VPN Slot.

Let me know if you think there's something I'm missing, OK?

Oh, and if you were testing the need for spdMerlin interfaces to catch up after a VPN client reset, I've got a test out here if you want to try it:

Code:
curl --retry 3 "https://raw.githubusercontent.com/ViktorJp/VPNMON-R3/develop/vpnmon-r3.sh" -o "/jffs/scripts/vpnmon-r3.sh" && chmod 755 "/jffs/scripts/vpnmon-r3.sh"

Option #9 under the config menu is new to support spdMerlin.
OK. Thanks for the clarification. When I get a chance I will try the development version even though I am not having any difficulties. spdmerlin currently works well testing WAN, OpenVPN1 and two WG clients. Even though neither of WG clients seem to ever need to be reset occasionally one of them when its download speed drops from around 85% of my WAN download speed to 25% I then select a different server. I know it has been discussed but someday it would be nice if WG clients were monitored in VPMON.

Again thanks for your work on many useful utilities.
 
I know it has been discussed but someday it would be nice if WG clients were monitored in VPMON.
Yep, that one's on my to-do list. I tried setting WG up alongside OVPN, and it wasn't functional, so I don't know what's up. Not sure if you can run OVPN and WG at the same time? But it sounds like you are... hum.

Again thanks for your work on many useful utilities.
Happy to help! 👍
 
Last edited:
Yep, that one's on my to-do list. I tried setting WG up alongside OVPN, and it wasn't functional, so I don't know what's up. Not sure if you can run OVPN and WG at the same time? But it sounds like you are... hum.


Happy to help! 👍
I have been running both type of clients on my AX86S previously and now on my AX88Pro with no problems. Can't remember if it also worked on my AC86. I don't remember when Merlin first added the ability of using WG clients to his firmware.

I use Strong as my VPN provider so perhaps that is the difference in our experiences. Also it also could be the number of instances of a VPN client you are running and if your VPN provider restricts the number of connections you can have simultaneously. At one point I remember that one of the VPN providers I have used restricted you to no more than five connections.
 
I have been running both type of clients on my AX86S previously and now on my AX88Pro with no problems. Can't remember if it also worked on my AC86. I don't remember when Merlin first added the ability of using WG clients to his firmware.

I use Strong as my VPN provider so perhaps that is the difference in our experiences. Also it also could be the number of instances of a VPN client you are running and if your VPN provider restricts the number of connections you can have simultaneously. At one point I remember that one of the VPN providers I have used restricted you to no more than five connections.
I was trying to run both connections through Nord... I had the same thought. Perhaps they don't allow concurrent connections. I need to test with just a singular connection over WG to see what happens.
 
I was trying to run both connections through Nord... I had the same thought. Perhaps they don't allow concurrent connections.
You can run up to 5 or 6 concurrent connections (forgot the exact amount), as long they are on different servers.
 

Latest 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