/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 服务器配置中有两种类型的接口:

  • 静态接口是在需要引用为特定用户创建的特定接口名称(在防火墙规则或其他位置)时由管理员添加的。
  • 当用户连接且其用户名不匹配任何现有静态条目时(或者该条目已处于活动状态时,因为不能有两个单独的隧道接口使用同一名称引用),动态接口会自动添加到此列表。

动态接口在用户连接时出现,在用户断开后消失,因此无法在路由器配置(例如防火墙)中引用为该用户创建的隧道。如果需要为该用户使用持久规则,请为其创建静态条目。否则,使用动态配置是安全的。

标志名称描述
Xdisabled项目是否已禁用。
Ddynamic服务器接口是否动态创建。
Rrunning接口是否正在运行。
参数类型描述
namestring接口名称。
user *string用于身份验证的用户名。
只读参数类型描述
mtunum连接的当前 MTU。
mrunum连接的当前 MRU。
client-addressstring已连接客户端的 IP 地址。
uptimetime连接运行时间。
encodingstring使用的加密编码。