-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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 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 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 wsBzBAEBCAAGBQJgvoLUACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ3i0Qf/SMny4XAjJW6xA9U84GuRukYfhQSPzyI9Tt/MXwGduE0IbapT RdACp1aoPmCoNhuobZmfMcYJtpMJeShHNde9MNVqhRWQ3i39aFVx7ggtN2oa WT/6es2+Us7fkkgHA3W3qIoBHQ/UTu+1XRhSptZW2L92GcdXmEpD+AClXoD1 HG+QJclFd50A/H9Sn8s8mSetiL79CpIvIfB5xeLsaIlqjCK1p2syOmKRcGYF KztM+PtxKFnxvHiCdFhtbczr5yhb4e9GHEquWv/EpkO48ANuC7mZwDFOEI54 wLmXVgnaNmvc/Swbiw+ux/K9sl53W1dzL5xWHnv06uzOw+GbRoF00g== =o6H5 -----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