-
你正在使用哪个版本的 V2Ray?4.31.0 linux-x86_64 (服务器端OS Debian 10.4,客户端OS alpine 3.14 in pve lxc) 你的使用场景是什么?mac 系统设置需要验证的 socks5 代理,具体步骤为 Microsoft Excel想要使用您存储在钥匙串的"192.168.1.100"中的机密信息 此时查看 v2ray 的错误日志会有一大堆 no matching auth method 的警告 使用 curl 是正常的 curl -x "socks5://123:123@192.168.1.100:1080" httpbin.org/ip 尝试过将 Debian 端(服务端) v2ray 的 inbound 设置为 socks auth, outbound 设为 freedom,也是一样的情况 你看到的异常现象是什么?error 日志里有一堆的错误且无法联网
你期待看到的正常表现是怎样的?和不需要验证的 socks5 代理一致 请附上你的配置服务端配置: {
"inbounds": [{
"port": 12345,
"listen": "0.0.0.0",
"protocol": "vmess",
"settings": {
"clients": [{
"id": "27848739-7e62-4138-9fd3-098a63964b6b",
"alterId": 4
}],
"disableInsecureEncryption": true
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
"streamSettings": {
"network": "kcp",
"kcpSettings": {
"mtu": 1350,
"tti": 30,
"uplinkCapacity": 60,
"downlinkCapacity": 200,
"congestion": true,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "utp"
}
}
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {},
"tag": "direct"
}]
} 客户端配置: {
"inbounds": [{
"port": 1080,
"protocol": "socks",
"settings": {
"auth": "password",
"accounts": [{
"user": "123",
"pass": "123"
}]
},
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
}
}],
"outbounds": [{
"protocol": "vmess",
"settings": {
"vnext": [{
"address": "123.123.123.123",
"port": 12345,
"users": [{
"id": "27848739-7e62-4138-9fd3-098a63964b6b",
"alterId": 4,
"security": "auto"
}]
}]
},
"streamSettings": {
"network": "kcp",
"kcpSettings": {
"mtu": 1350,
"tti": 30,
"uplinkCapacity": 60,
"downlinkCapacity": 200,
"congestion": true,
"readBufferSize": 2,
"writeBufferSize": 2,
"header": {
"type": "utp"
}
}
}
}]
} 请附上出错时软件输出的错误日志服务器端错误日志: // 服务器端没有错误 客户端错误日志: 2021/11/06 08:44:30 [Debug] v2ray.com/core/app/log: Logger started
2021/11/06 08:44:30 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:1080
2021/11/06 08:44:30 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 0.0.0.0:1080
2021/11/06 08:44:30 [Warning] v2ray.com/core: V2Ray 4.31.0 started
2021/11/06 08:44:37 [Info] [373638169] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: invalid username or password
2021/11/06 08:44:45 [Info] [654490844] v2ray.com/core/proxy/socks: TCP Connect request to tcp:34.192.79.103:80
2021/11/06 08:44:45 [Info] [654490844] v2ray.com/core/app/dispatcher: sniffed domain: httpbin.org
2021/11/06 08:44:45 [Info] [654490844] v2ray.com/core/app/dispatcher: default route for tcp:httpbin.org:80
2021/11/06 08:44:45 [Info] v2ray.com/core/transport/internet/kcp: dialing mKCP to udp:123.123.123.123:12345
2021/11/06 08:44:45 [Info] v2ray.com/core/transport/internet/kcp: #22531 creating connection to 123.123.123.123:12345
2021/11/06 08:44:45 [Info] [654490844] v2ray.com/core/proxy/vmess/outbound: tunneling request to tcp:httpbin.org:80 via tcp:123.123.123.123:12345
2021/11/06 08:44:46 [Debug] v2ray.com/core/transport/internet/kcp: #22531 entering state 1 at 1493
2021/11/06 08:44:46 [Info] v2ray.com/core/transport/internet/kcp: #22531 closing connection to 123.123.123.123:12345
2021/11/06 08:44:46 [Info] [654490844] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > context canceled
2021/11/06 08:44:46 [Info] [654490844] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > v2ray.com/core/proxy/socks: failed to transport all TCP response > io: read/write on closed pipe
2021/11/06 08:44:46 [Debug] v2ray.com/core/transport/internet/kcp: #22531 entering state 3 at 1581
2021/11/06 08:44:50 [Debug] v2ray.com/core/transport/internet/kcp: #22531 sending terminating cmd.
2021/11/06 08:44:50 [Debug] v2ray.com/core/transport/internet/kcp: #22531 entering state 5 at 5041
2021/11/06 08:44:50 [Info] v2ray.com/core/transport/internet/kcp: #22531 terminating connection to 123.123.123.123:12345
2021/11/06 08:45:20 [Info] [1952657646] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: no matching auth method
2021/11/06 08:45:20 [Info] [2178837965] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: failed to read request > v2ray.com/core/proxy/socks: no matching auth method |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
这个取决于客户端是否支持 Socks 密码认证。 在 macOS 网络设置里配置 socks 代理后,APP 会读取代理信息,然后发送请求,所以如果客户端(APP)不支持密码认证,那 V2ray 就会报错。 比较知名的,比如 Firefox、Chrome 本身都不支持 socks 密码认证。 |
Beta Was this translation helpful? Give feedback.
这个取决于客户端是否支持 Socks 密码认证。
在 macOS 网络设置里配置 socks 代理后,APP 会读取代理信息,然后发送请求,所以如果客户端(APP)不支持密码认证,那 V2ray 就会报错。
比较知名的,比如 Firefox、Chrome 本身都不支持 socks 密码认证。