Changes between Version 11 and Version 12 of OpenVPN-systemd-use
- Timestamp:
- 01/18/22 00:23:32 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenVPN-systemd-use
v11 v12 3 3 This is only a ''brief'' summary of OpenVPN `systemd` usage. 4 4 5 **Source** :https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd5 **Source** https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd 6 6 7 7 … … 10 10 Use the correct OpenVPN supported `systemd` `.service` files. 11 11 12 === Build OpenVPN with `systemd` support :12 === Build OpenVPN with `systemd` support 13 13 14 When you build the openvpn binary use the configure option `--enable-systemd` like so:14 When you build the openvpn binary use the configure option `--enable-systemd` 15 15 16 16 {{{ … … 18 18 }}} 19 19 20 === Verify OpenVPN `systemd` support has been enabled:20 === Verify OpenVPN `systemd` support 21 21 22 22 {{{ … … 25 25 Look for `enable-systemd=yes` in the output. 26 26 27 === Using OpenVPN with `systemd` support :27 === Using OpenVPN with `systemd` support 28 28 29 29 In order to use OpenVPN with `systemd` please use the correct `systemd` `.service` file. 30 30 31 **Server** :31 **Server** 32 32 33 33 * Place your server configuration file in `/etc/openvpn/server` 34 * Use the `openvpn-server@.service` like so:34 * Use the `openvpn-server@.service` 35 35 {{{ 36 36 $ sudo systemctl start openvpn-server@{Server-config} 37 37 }}} 38 38 Replace `{Server-config}` with the `name` of your config file without the `.conf` 39 **Client** :39 **Client** 40 40 41 41 * Place your client configuration file in `/etc/openvpn/client` 42 * Use the `openvpn-client@.service` like so:42 * Use the `openvpn-client@.service` 43 43 {{{ 44 44 $ sudo systemctl start openvpn-client@{Client-config} … … 46 46 Replace `{Client-config}` with the `name` of your config file without the `.conf` 47 47 48 === Start at boot :48 === Start at boot 49 49 50 50 Replace `systemctl start ...` with `systemctl enable ...` … … 56 56 Other `systemd` questions are probably best answered by reading `man systemd` 57 57 58 === Note :58 === Note 59 59 60 60 * `openvpn@.service` is **deprecated**. 61 61 * `openvpn.service` is **obsoleted**. (This is only used for backward compatibility) 62 62 63 === Known issues :63 === Known issues 64 64 65 65 https://community.openvpn.net/openvpn/ticket/945 [[br]]