v2科学插件重启后无法使用,查看错误日志后发现:
rejected common/drain: common/drain: drained connection > proxy/vmess/encoding: invalid user:
VMessAEAD is enforced and a non VMessAEAD connection is received. You can still disable this
security feature with environment variable v?ray.vmess.aead.forced = false . You will not be able
to enable legacy header workaround in the future.
网上搜索后发现原因是:
VMess MD5 认证信息 污染机制,VMess 的淘汰机制在搞鬼。
解决办法参考Solution,是:
1. 查看科学.service的systemd的详细路径和内容:
输入
systemctl cat v2ray
# /etc/systemd/system/v2ray.service
[Unit]
Description=********
Documentation=****************
After=network.target nss-lookup.target[Service]
User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/bin/v2ray -config /etc/v2ray/config.json
Restart=on-failure
RestartPreventExitStatus=23[Install]
WantedBy=multi-user.target
第一行,为文件路径,选中右键复制,或使用键盘Ctrl+Ins复制该路径
/etc/systemd/system/v2ray.service
2. 打开需要修改的文件
输入,编辑服务内容
vi /etc/systemd/system/v2ray.service
鼠标光标移动到 [service]
区域中,在ExecStart=...
上面,按 i 键,插入一行
Environment="V2RAY_VMESS_AEAD_FORCED=false"
插入完毕后,按 Esc 退出,输入
:wq
保存并退出。
3. 更新,重启服务
更新systemd服务:
systemctl daemon-reload
最后重启一下就好了。
systemctl restart v2ray