openvpn3-systemd(8)

openvpn3-systemd8

Openvpn 3 linux - systemd service integration

Usage

openvpn3-systemd [OPTIONS] CONFIG_PROFILE

openvpn3-systemd {-h | --help}

Overview

This is a helper script used by the [email protected] unit file, which is responsible for running a single VPN session and retrieve log events and related signals to the session. These signals are also used to update systemd with the appropriate status.

Using the [email protected] requires the VPN configuration profile to be imported in advance, using openvpn3 config-import, preferably as a persistent configuration to allow starting VPN sessions during boot.

Options

-h, --help

Print usage and help details to the terminal

--start

Start a new VPN session with the given configuration profile name.

--restart

Restarts a currently running VPN session with the given configuration profile name.

--stop

Stops a currently running VPN session with the given configuration profile name.

--log-level LEVEL

Sets the log verbosity for the log events. Valid values are 0 to 6. The higher value, the more verbose the log events will be. Log level 6 will include all debug events. Default is 5.

Examples

First a configuration profile is imported as a persistent profile:

# openvpn3 config-import --persistent --name example --config client.ovpn

Start a VPN session via systemctl(1):

# systemctl start openvpn3-session@example

Check the logs for this session:

# journalctl --since today --unit openvpn3-session@example

Known issues

Currently the openvpn3-systemd helper does not support configuration profiles requiring any type of user authentication outside of X.509 certificates.

From openvpn3-client 24.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.