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.
| Flag | Name | Description |
|---|---|---|
| X | disabled | Whether an item is disabled. |
| D | dynamic | Whether the server interface was created dynamically. |
| R | running | Whether the interface is running. |
| Argument | Type | Description |
|---|---|---|
| name | string | Interface name. |
| user ( mandatory ) | string | User name used for authentication. |
| Read-only Argument | Type | Description |
|---|---|---|
| mtu | num | Current MTU of the connection. |
| mru | num | Current MRU of the connection. |
| client-address | string | IP address of the connected client. |
| uptime | time | Connection uptime. |
| encoding | string | Encryption encoding used. |