mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-31 23:11:41 +03:00
Wireguard: KernelMode → noKernelTun
Still not quite right
This commit is contained in:
parent
e3408bfee1
commit
cd50a77983
@ -17,7 +17,6 @@ User-space Wireguard 协议实现。
|
||||
"allowedIPs":[""]
|
||||
}
|
||||
],
|
||||
"kernelMode": true, // optional, default true if it's supported and permission is sufficient
|
||||
"mtu": 1420, // optional, default 1420
|
||||
}
|
||||
```
|
||||
|
@ -23,7 +23,7 @@
|
||||
"publicKey": "PUBLIC_KEY"
|
||||
}
|
||||
],
|
||||
"kernelMode": true, // optional, default true if it's supported and permission is sufficient
|
||||
"noKernelTun": false,
|
||||
"mtu": 1420, // optional, default 1420
|
||||
"reserved": [1, 2, 3],
|
||||
"workers": 2, // optional, default runtime.NumCPU()
|
||||
@ -43,13 +43,13 @@
|
||||
|
||||
Wireguard 会在本地开启虚拟网卡 tun。使用一个或多个 IP 地址,支持 IPv6
|
||||
|
||||
> `kernelMode`: true | false
|
||||
> `noKernelTun`: true | false
|
||||
|
||||
是否使用 Linux 内核的虚拟网卡 TUN。<br>
|
||||
需要系统支持且有 root 权限才能使用 Linux 内核的虚拟网卡 TUN,使用后会占用 IPv6 的 1023 号路由表。<br>
|
||||
是否手动禁用 Linux 内核的虚拟网卡 TUN。(默认情况下会自动检测是否有所需权限决定是否启用)
|
||||
需要系统支持且有 root 权限才能使用 Linux 内核的虚拟网卡 TUN,使用后会占用 IPv6 的 1023 号路由表。
|
||||
|
||||
::: tip
|
||||
若 IPv6 的 1023 号路由表内已有路由条目,且 `kernelMode` 的值为 `true`,将无法正常使用。
|
||||
若 IPv6 的 1023 号路由表内已有路由条目,会导致该功能无法正常使用。
|
||||
:::
|
||||
|
||||
> `mtu`: int
|
||||
|
Loading…
x
Reference in New Issue
Block a user