Skip to main content
Version: current

l2tp-server


interface/l2tp-server

Type: Directory

An interface is created for each tunnel that is established to the given server. There are two types of interfaces in the L2TP server's configuration:

  • Static interfaces are added administratively if there is a need to reference the particular interface name (in firewall rules or elsewhere) created for the particular user.
  • Dynamic interfaces are added to this list automatically whenever a user is connected and its username does not match any existing static entry (or in case the entry is active already, as there cannot be two separate tunnel interfaces referenced by the same name).

Dynamic interfaces appear when a user connects and disappear once the user disconnects, so it is impossible to reference the tunnel created for that user in the router configuration (for example, in the firewall), so if you need persistent rules for that user, create a static entry for him/her. Otherwise, it is safe to use a dynamic configuration.

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