openvpn3-service-netcfg
OpenVPN 3 Linux Network Configuration Service
- Provided by: openvpn3-client (Version: 27+dfsg-1)
- Report a bug
OpenVPN 3 Linux Network Configuration Service
openvpn3-service-netcfg [OPTIONS] openvpn3-service-netcfg -h | --help
The openvpn3-service-netcfg process is a backend service for OpenVPN 3 Linux, responsible for creating and managing virtual network interfaces, routing and DNS configuration provided by VPN connections. This service will be started automatically when the openvpn3-service-client starts and begins to configure a virtual network interface for its session.
Only one network configuration service can run on the system.
This service is normally started automatically when needed, via the net.openvpn.v3.netcfg.service auto-start configuration by the dbus-daemon(1), but can also be started manually on the command line. This service must start as root, but as soon as it has requested the needed privileges for its operations, it will drop the rest of the privileges and switch to the _openvpn user. Beware that changing this to another user account also requires updating the D-Bus policy as well.
The openvpn3-service-netcfg service is capable of configuring the DNS resolver based on what the running VPN sessions have been pushed from the OpenVPN servers. The OpenVPN 3 Network Configuration service supports multiple approaches, but only one of them can be enabled.
OpenVPN will keep a backup file when it has modified it and will automatically restore the content when no running OpenVPN sessions has received any DNS configurations.
The default location for the configuration file is under /var/lib/openvpn3. This is a plain JSON configuration file which only considers a few fields:
{
"log_level": LEVEL,
"log_file": FILENAME,
"idle_exit": MINUTES,
"resolv_conf_file": FILENAME,
"systemd_resolved": "",
"redirect_method": ["host-route" | "bind-device" | "none" ],
"set_somark": MARK
}
Only used settings need to be present. If not set, the command line options will be able to set these options.
This is the equivalent of the --log-level command line argument. Valid LEVEL values are 0 to 6.
This is the equivalent of the --log-file command line argument. Must be a filename where to write log files. It also supports stdout: to write log data to the console/tty. Logging will also be sent to the openvpn3-service-log(8) service regardless of this setting.
This is the equivalent of the --idle-exit command line argument. This overrides the default automatic exit logic. The argument it takes is a positive integer of how many minutes it will be allowed to run idle, not managing any OpenVPN network devices before it shuts down automatically.
This is used to enable the resolv.conf DNS resolver configuration integration. See --resolv-conf for details.
This is used to enable the systemd-resolved(8) DNS resolver configuration integration. See --systemd-resolved for details.
This is the equivalent of the --redirect-method option. See that option for details.
This is the equivalent of --set-somark. See that option for details.
dbus-daemon(1) openvpn3(1) openvpn3-service-client(8) openvpn3-service-log(8)