On Sun, 16 Jan 2022 22:47:29 +0000, tincantech via Openvpn-users
<openvpn-users@lists.sourceforge.net> wrote:

>>Now I would like to get rid of this and have the server run as is normal today
>>using the two dirs /etc/openvpn/client /etc/openvpn/server

>
>Some help found here:
>https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd
>https://community.openvpn.net/openvpn/wiki/OpenVPN-systemd-use
>
>To get started..
>

Thanks for the pointers, I have read them and checked that my system has enabled
use of systemd: 

openvpn --version | grep systemd
.....  enable_systemd=yes .....

I have two server instances running with and without Internet routing from conf
files server.conf and serverlocal.conf.
I want to change them to the new handling.

So to switch over I assume could do as follows:

1) sudo systemctl stop openvpn
2) Edit /etc/default/openvpn and comment out the AUTOSTART= line
3) sudo mkdir /etc/openvpn/client ; sudo mkdir /etc/openvpn/server
4) sudo mv /etc/openvpn/server*.conf /etc/openvpn/server/
5) sudo systemctl enable openvpn-server@server
6) sudo systemctl enable openvpn-server@serverlocal
7) sudo systemctl start openvpn-server@server
8) sudo systemctl start openvpn-server@serverlocal

Would this be all that is needed?

Or is there some other cleanup I need to perform in order to get it done
properly?
Some other service I need to stop?


-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to