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.
<ArgTableRow arg="X" typ="disabled">Whether an item is disabled.</ArgTableRow> <ArgTableRow arg="D" typ="dynamic">Whether the server interface was created dynamically.</ArgTableRow> <ArgTableRow arg="R" typ="running">Whether the interface is running.</ArgTableRow>
<ArgTableRow arg="name" typ="string">Interface name.</ArgTableRow> <ArgTableRow arg="user" typ="string" mandatory="1">User name used for authentication.</ArgTableRow>
<ArgTableRow arg="mtu" typ="num">Current MTU of the connection.</ArgTableRow> <ArgTableRow arg="mru" typ="num">Current MRU of the connection.</ArgTableRow> <ArgTableRow arg="client-address" typ="string">IP address of the connected client.</ArgTableRow> <ArgTableRow arg="uptime" typ="time">Connection uptime.</ArgTableRow> <ArgTableRow arg="encoding" typ="string">Encryption encoding used.</ArgTableRow>