服务器重启之后,V2无法使用,查看日志出现drained connection > proxy/vmess/encoding: invalid user:

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
  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值