mux 为 true 的设置下,无法通过代理访问http
1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
客户端:V2Ray v3.24
服务端:V2Ray v2.51
2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
Chrome+SwitchySharp 浏览Google.com
3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
访问超时
4) 你期待看到的正确表现是怎样的?
正常访问Google
5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
// 在这里附上服务器端配置文件
{
"log" : {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": {
"port": 31012,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxx",
"level": 1,
"alterId": 64
}
]
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
},
"outboundDetour": [
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"strategy": "rules",
"settings": {
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked"
}
]
}
}
}
客户端配置:
// 在这里附上客户端配置
{
"log": {
"loglevel": "warning"
},
"inbound": {
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false,
"ip": "127.0.0.1"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "xxx.xxx.xx.xx",
"port": 31012,
"users": [
{
"id": "xxx",
"alterId": 64,
"security": "auto"
}
]
}
]
},
"mux": {
"enabled": true
}
},
"outboundDetour": [
{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}
],
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4",
"localhost"
]
},
"routing": {
"strategy": "rules",
"settings": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"port": "1-52",
"outboundTag": "direct"
},
{
"type": "field",
"port": "54-79",
"outboundTag": "direct"
},
{
"type": "field",
"port": "81-442",
"outboundTag": "direct"
},
{
"type": "field",
"port": "444-65535",
"outboundTag": "direct"
},
{
"type": "field",
"domain": ["geosite:cn"],
"outboundTag": "direct"
},
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10",
"geoip:cn"
],
"outboundTag": "direct"
}
]
}
}
}
6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。
服务器端错误日志:
// 在这里附上服务器端日志
cat /var/log/v2ray/error.log
2017/12/28 21:29:29 [Warning]Core: V2Ray started
2017/12/29 01:16:59 [Warning]Core: V2Ray started
2017/12/29 01:26:58 [Warning]Core: V2Ray started
客户端错误日志:
// 在这里附上客户端日志
直接解压执行,并未开启日志
./v2ray
V2Ray v3.24 (die Commanderin) 20180529
A unified platform for anti-censorship.
2018/06/01 02:00:37 [Warning] Core: V2Ray v3.24 started
2018/06/01 02:01:32 tcp:127.0.0.1:15966 accepted tcp:www.google.com:443
2018/06/01 02:01:35 tcp:127.0.0.1:15978 accepted tcp:www.googleapis.com:443
7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。
// 在这里附上服务器端日志
cat /var/log/v2ray/access.log | tail -n 10
2018/05/31 22:26:32 xxx.xxx.xx.xx:46297 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 22:26:41 xxx.xxx.xx.xx:46308 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 22:30:30 xxx.xxx.xx.xx:46574 accepted tcp:v1.mux.cool:9527
2018/05/31 22:30:33 xxx.xxx.xx.xx:46579 accepted tcp:v1.mux.cool:9527
2018/05/31 23:08:08 xxx.xxx.xx.xx:46758 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 23:08:09 xxx.xxx.xx.xx:46759 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 23:08:10 xxx.xxx.xx.xx:46762 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 23:08:16 xxx.xxx.xx.xx:46765 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 23:08:17 xxx.xxx.xx.xx:46767 rejected Proxy|VMess|Encoding: invalid auth
2018/05/31 23:08:17 xxx.xxx.xx.xx:46767 rejected Proxy|VMess|Encoding: invalid auth
7) 操作系统:
Ubuntu18.04LTS Desktop
8) 解决办法
将客户端的config.json中的
"mux": {
"enabled": true
}
改为
"mux": {
"enabled": false
}
9) 问题:
请教,如何在Linux中开启 “多路复用”(mux)?
请把服务器升级到最新版。
@DarienRaymond 好的,谢谢!
刚刚在看以前的issue,也发现了解决办法。
https://github.com/v2ray/v2ray-core/issues/868
Most helpful comment
请把服务器升级到最新版。