Changes between Version 11 and Version 12 of OpenVPN-systemd-use


Ignore:
Timestamp:
01/18/22 00:23:32 (2 years ago)
Author:
tct
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OpenVPN-systemd-use

    v11 v12  
    33This is only a ''brief'' summary of OpenVPN `systemd` usage.
    44
    5 **Source**: https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd
     5**Source** https://github.com/OpenVPN/openvpn/blob/master/distro/systemd/README.systemd
    66
    77
     
    1010 Use the correct OpenVPN supported `systemd` `.service` files.
    1111
    12 === Build OpenVPN with `systemd` support:
     12=== Build OpenVPN with `systemd` support
    1313
    14 When you build the openvpn binary use the configure option `--enable-systemd` like so:
     14When you build the openvpn binary use the configure option `--enable-systemd`
    1515
    1616{{{
     
    1818}}}
    1919
    20 === Verify OpenVPN `systemd` support has been enabled:
     20=== Verify OpenVPN `systemd` support
    2121
    2222{{{
     
    2525  Look for `enable-systemd=yes` in the output.
    2626
    27 === Using OpenVPN with `systemd` support:
     27=== Using OpenVPN with `systemd` support
    2828
    2929In order to use OpenVPN with `systemd` please use the correct `systemd` `.service` file.
    3030
    31 **Server**:
     31**Server**
    3232
    3333  * Place your server configuration file in `/etc/openvpn/server`
    34   * Use the `openvpn-server@.service` like so:
     34  * Use the `openvpn-server@.service`
    3535{{{
    3636$ sudo systemctl start openvpn-server@{Server-config}
    3737}}}
    3838  Replace `{Server-config}` with the `name` of your config file without the `.conf`
    39 **Client**:
     39**Client**
    4040
    4141  * Place your client configuration file in `/etc/openvpn/client`
    42   * Use the `openvpn-client@.service` like so:
     42  * Use the `openvpn-client@.service`
    4343{{{
    4444$ sudo systemctl start openvpn-client@{Client-config}
     
    4646  Replace `{Client-config}` with the `name` of your config file without the `.conf`
    4747
    48 === Start at boot:
     48=== Start at boot
    4949 
    5050  Replace `systemctl start ...` with `systemctl enable ...`
     
    5656  Other `systemd` questions are probably best answered by reading `man systemd`
    5757
    58 === Note:
     58=== Note
    5959
    6060  * `openvpn@.service` is **deprecated**.
    6161  * `openvpn.service` is **obsoleted**. (This is only used for backward compatibility)
    6262
    63 === Known issues:
     63=== Known issues
    6464
    6565 https://community.openvpn.net/openvpn/ticket/945 [[br]]