/interface/l2tp-server
l2tp-server
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...
interface/l2tp-server
Type: Directory
对于建立到给定服务器的每个隧道,都会创建一个接口。L2TP 服务器配置中有两种类型的接口:
- 静态接口是在需要引用为特定用户创建的特定接口名称(在防火墙规则或其他位置)时由管理员添加的。
- 当用户连接且其用户名不匹配任何现有静态条目时(或者该条目已处于活动状态时,因为不能有两个单独的隧道接口使用同一名称引用),动态接口会自动添加到此列表。
动态接口在用户连接时出现,在用户断开后消失,因此无法在路由器配置(例如防火墙)中引用为该用户创建的隧道。如果需要为该用户使用持久规则,请为其创建静态条目。否则,使用动态配置是安全的。
| 标志 | 名称 | 描述 |
|---|---|---|
X | disabled | 项目是否已禁用。 |
D | dynamic | 服务器接口是否动态创建。 |
R | running | 接口是否正在运行。 |
| 参数 | 类型 | 描述 |
|---|---|---|
name | string | 接口名称。 |
user * | string | 用于身份验证的用户名。 |
| 只读参数 | 类型 | 描述 |
|---|---|---|
mtu | num | 连接的当前 MTU。 |
mru | num | 连接的当前 MRU。 |
client-address | string | 已连接客户端的 IP 地址。 |
uptime | time | 连接运行时间。 |
encoding | string | 使用的加密编码。 |