OPNsense Forum

English Forums => High availability => Topic started by: effin_dead_again on May 14, 2021, 05:07:24 PM

Title: Prevent OpenVPN from being restarted on 'backup' node
Post by: effin_dead_again on May 14, 2021, 05:07:24 PM
Hi all

I would like to see if it is possible to prevent the OpenVPN Server from being restarted on the backup node when a configuration sync occurs. I am only using the configuration sync to copy users and certificates from primary to secondary, so that I may have a multi-server OpenVPN 'farm'. I am not using any of the CARP or active/passive features, I just want to sync users and certificates from the primary opnsense server to the secondary opensense server.

I started going down the code rabbit hole and I ended up here (https://github.com/opnsense/core/blob/714ad52b3a0c6e33f860321741a17a6dd1d69af4/src/opnsense/scripts/filter/update_tables.py) as the final stop on my journey, but I can't see where the command to restart OpenVPN is occurring.

I also followed the advice here (https://forum.opnsense.org/index.php?topic=22845.0) and that did not affect the restarting of the service.

Any ideas or thoughts are appreciated. Thanks!
Title: Re: Prevent OpenVPN from being restarted on 'backup' node
Post by: effin_dead_again on May 17, 2021, 08:11:17 PM
Even if it's just pointing me at the file/line of code that sends the restart command to openVPN when a sync occurs, I can take it from there, I'm pretty handy when it comes to hacking on scripts.