Skip to main content
Version: current

ovpn-server


interface/ovpn-server

Type: Directory

An interface is created for each tunnel established to the specified server. There are two types of interfaces in the OVPN server configuration:

  • Static interfaces are added administratively when you need to reference a specific interface name (for example, in firewall rules or elsewhere) created for a particular user.
  • Dynamic interfaces are added to this list automatically when a user connects and their username does not match any existing static entry, or if the matching static entry is already active, since two separate tunnel interfaces cannot use the same name.

Dynamic interfaces appear when a user connects and disappear when the user disconnects. Therefore, it is not possible to reference the tunnel created for that user in router configuration (for example, in firewall rules). If persistent rules are required for a user, create a static entry. Otherwise, dynamic configuration is sufficient.

FlagNameDescription
XdisabledWhether an item is disabled.
DdynamicWhether the server interface was created dynamically.
RrunningWhether the interface is running.
Hhw-cryptoWhether hardware encryption is active.
ArgumentTypeDescription
namestringInterface name.
user ( mandatory )stringUser name used for authentication.
Read-only ArgumentTypeDescription
mtunumCurrent MTU of the connection.
client-addressstringIP address of the connected client.
uptimetimeConnection uptime.
encodingstringEncryption encoding used.