-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Silly typo correction:
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Monday, 7 June 2021 21:34, tincantech via Openvpn-users <openvpn-users@lists.sourceforge.net> wrote: > Hi, > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > On Monday, 7 June 2021 20:54, Bo Berglund bo.bergl...@gmail.com wrote: > > > On Mon, 7 Jun 2021 11:46:02 +0200, David Sommerseth > > open...@sf.lists.topphemmelig.net wrote: > > Thanks for your reply and information! > > I am still confused, see below > > > > > > I have seen different ways of accomplishing this: > > > > > > > > 1. Via the openvpn defaults > > > > > > > > In this case the client.ovpn file is renamed to client.conf and placed > > > > in > > > > /etc/openvpn. > > > > Then the defaults file is edited: > > > > sudo nano /etc/default/openvpn > > > > And the AUTOSTART line is set like this: > > > > AUTOSTART="client" > > > > Then: > > > > sudo systemctl daemon-reload > > > > sudo systemctl restart openvpn > > > > > > This is not recommended at all. This approach is Debian's way to > > > simulate the behaviour of the pre-systemd days. Over the years, this > > > has caused many unexpected behaviours. > > > > How can I invalidate my use of this method so I get a clean system again? > > Is it enough to comment out the AUTOSTART line and then run the commands: > > sudo systemctl daemon-reload > > sudo systemctl stop openvpn > > Do not use the service named 'openvpn' > > - systemctl disable openvpn > > That will stop your system using this out-dated and unsupported method. > > Use the Openvpn supported systemd unit files: > > - For servers: openvpn-server@.service > - For clients: openvpn-client@.service > > Place your server openvpn config files in: /etc/openvpn/server > Place your client openvpn config files is: /etc/openvpn/client > > Enable the instances which you wish to use: > > - systemctl enable openvpn-server@YOUR-SERVER > - systemctl enable openvpn-server@YOUR-CLIENT * systemctl enable openvpn-client@YOUR-CLIENT > > Above, 'YOUR-SERVER' and 'YOUR-CLIENT' would be the names > of the openvpn config files, put into the correct directory, > without the .conf extension. Not necessarily all CAPS. > > Start the instances which you wish to start: > > - systemctl start openvpn-server@YOUR-SERVER > - systemctl start openvpn-server@YOUR-CLIENT * systemctl start openvpn-client@YOUR-CLIENT > > Above, 'YOUR-SERVER' and 'YOUR-CLIENT' would be the names > of the openvpn config files, put into the correct directory, > without the .conf extension. Not necessarily all CAPS. > > Regards > R > -----BEGIN PGP SIGNATURE----- Version: ProtonMail wsBzBAEBCAAGBQJgvoQLACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ0yaQgArWDGoXkBF4ty6L2/NYiJMqPW63nyzOqaDqMBcM/jPUNMO4kG hpQiX4Nzkgu9HVrAMB8BSFNzpEMBkL7tJXCb4LBvu/NrVqs0FgAUk9D6LbJN 938h5PEppGJi+AGPEmBga4TkmiPQuhCWGU4vKcbecAi4/uJ4al3OTk2mtpa1 bd0qqM0ex7vQGHdXHr0N3+tzjL3wTSBvk5qoE1Ps0Pc3+lobFhf2vaW02NN0 ybL+zU9E/WD4NKIac84OMVM9aKJWgGLwFfGd+dt1/C25kkBybOsyayncR9uC 3e7bIqjUK+gDVk6aeNDqnfhxCLDJNPY6dqXYMwtZNuNSKFDYzfNH9w== =qJkH -----END PGP SIGNATURE-----
publickey - tincantech@protonmail.com - 0x09BC3D44.asc
Description: application/pgp-keys
publickey - tincantech@protonmail.com - 0x09BC3D44.asc.sig
Description: PGP signature
_______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users