Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Restart OpenVPN client
« previous
next »
Print
Pages: [
1
]
Author
Topic: Restart OpenVPN client (Read 2035 times)
sco01
Newbie
Posts: 5
Karma: 1
Restart OpenVPN client
«
on:
November 18, 2020, 09:46:47 pm »
I have a problem that I've been fighting with for quite some time.
I have two OPNsense instances connected via a site-2-site OpenVPN tunnel. Node1 is acting as a client to Node2. About once every month (sometimes more) I wake up to a monit alarm telling me that Node2 is down. This means that the OpenVPN client on Node1 has crashed and I have to start it again. Troubleshooting this has been hard as all I can see in the log on Node1 is "openvpn[78610]: Exiting due to fatal error". I figured there must be some way to monitor the service and try to start it automatically if it is down as a workaround and so I went down the monit path. All went well until I had to configure a start script for the service. Is there a way to stop/start the OpenVPN client command line? Alternatively: How can i troubleshoot the root cause to prevent it from happening in the first place?
«
Last Edit: November 18, 2020, 09:48:42 pm by sco01
»
Logged
amichel
Jr. Member
Posts: 87
Karma: 8
Re: Restart OpenVPN client
«
Reply #1 on:
November 19, 2020, 01:08:54 pm »
Hi,
take a look here :
https://forum.opnsense.org/index.php?topic=6979.0
hth
amichel
Logged
sco01
Newbie
Posts: 5
Karma: 1
Re: Restart OpenVPN client
«
Reply #2 on:
November 19, 2020, 04:55:58 pm »
Thanks. I had in fact tried the suggestion in that post but without success. The problem is that:
Code:
[Select]
/usr/local/etc/rc.d/client2 onestatus
responds with
Code:
[Select]
client2 is not running
when the client is up and running. The same applies for start and stop.
That thread is from 2018. Maybe something has changed since then?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
Restart OpenVPN client