Closed HXHGTS closed 10 months ago
仅在outbound里面配置wireguard时创建了wg0虚拟网卡且有流量在跑的截图:
仅在outbound里面配置wireguard时的状态:
此时可以正常上网:
Setting kernelmode to false
means that the software will not use the operating system's kernel-mode features for its operations but rather will fall back to a userspace implementation.
The log message "Failed to create server > proxy/wireguard: TODO: support promiscuous mode" suggests that the xray service is attempting to use features related to WireGuard that are not yet implemented
("TODO") in the version of xray they're running, specifically the promiscuous mode for networking.
Promiscuous mode is a network configuration where a network device intercepts and reads each network packet that arrives in its entirety. This mode is used in various applications involving packet sniffing or bridge network configurations.
{
"inbounds": [
{
"tag": "wgserver",
"port": 8888,
"protocol": "wireguard",
"settings": {
"secretKey": "yIw6sjOIp94Ni4mdlPm3GMJ4PvowqGVDZ1Ouw+f7Ukc=",
"peers": [
{
"publicKey": "VvME/dCl8xvuWXljnNqRJFBeekk32SfjGqf/vKbXB2M=",
"allowedIPs": [
"192.168.1.0/24"
]
}
],
"kernelMode": false,
"mtu": 1412
}
}
]
}
Inbound 目前不支持 "kernelMode":true
系统Debian12,root权限下运行xray 1.8.6,使用下面的配置会导致无法启动:
报错截图: vps是kvm虚拟化,也不存在权限不足,就没明白为什么会用不了
有意思的是,如果仅在outbound里面配置wireguard,且
kernelmode
设置为true
,xay会创建一个wg0的网卡,能看到有流量在跑,此时网络访问完全正常,但仍然会报TODO: support promiscuous mode
错误