v2ray-core
v2ray-core copied to clipboard
时断时连
trafficstars
你正在使用哪个版本的 V2Ray?
客户端,服务端均使用 V2Ray 4.45.0
你的使用场景是什么?
Chrome 通过 Socks/VMess 代理观看 YouTube 视频
你看到的异常现象是什么?
无法访问谷歌,开启高级路由时,有时都无法访问百度。
你期待看到的正常表现是怎样的?
正常访问所有网站
请附上你的配置
服务端配置:
{
"log":{
// By default, V2Ray writes access log to stdout.
"access": "/usr/local/log/v2ray/access.log",
// By default, V2Ray write error log to stdout.
"error": "/usr/local/log/v2ray/error.log",
// Log level, one of "debug", "info", "warning", "error", "none"
"loglevel": "warning"
},
"inbounds": [{
"port": 33333,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxx",
"alterId":0
}
]
}
},
{
"port": 22222,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "xxxx",
"alterId":0
}
]
}
},
{
"protocol": "vmess",
"port": 12222,
"settings": {
"clients": [
{
"id": "xxxx"}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
},{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}]
}
客户端配置:
{
"log": {
"access": "",
"error": "",
"loglevel": "warning"
},
"inbounds": [
{
"tag": "socks",
"port": 10808,
"listen": "127.0.0.1",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
},
{
"tag": "http",
"port": 10809,
"listen": "127.0.0.1",
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"auth": "noauth",
"udp": true,
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "ip1",
"port": 33333,
"users": [
{
"id": "xxxx",
"alterId": 0,
"email": "[email protected]",
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "tcp"
},
"mux": {
"enabled": true,
"concurrency": 8
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "linear",
"rules": [
{
"type": "field",
"inboundTag": [
"api"
],
"outboundTag": "api",
"enabled": true
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"domain:example-example.com",
"domain:example-example2.com"
],
"enabled": true
},
{
"type": "field",
"outboundTag": "block",
"domain": [
"geosite:category-ads-all"
],
"enabled": true
},
{
"type": "field",
"outboundTag": "direct",
"domain": [
"geosite:cn"
],
"enabled": true
},
{
"type": "field",
"outboundTag": "direct",
"ip": [
"geoip:private",
"geoip:cn"
],
"enabled": true
},
{
"type": "field",
"port": "0-65535",
"outboundTag": "proxy",
"enabled": true
}
]
}
}
请附上出错时软件输出的错误日志
服务器端错误日志:
2022/05/26 10:45:57 [Warning] V2Ray 4.45.0 started
客户端错误日志:
2022/05/26 11:44:18 127.0.0.1:58612 accepted //self.events.data.microsoft.com:443 [http -> proxy]
2022/05/26 11:44:24 [Warning] [1132218810] proxy/http: failed to read response from 210.42.121.76:8530 > io: read/write on closed pipe
2022/05/26 11:44:24 [Warning] [1132218810] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:10809->127.0.0.1:58389: wsasend: An existing connection was forcibly closed by the remote host.
2022/05/26 11:44:24 [Warning] [1872452477] proxy/http: failed to read response from 210.42.121.76:8530 > io: read/write on closed pipe
2022/05/26 11:44:24 [Warning] [1872452477] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:10809->127.0.0.1:58392: wsasend: An existing connection was forcibly closed by the remote host.
2022/05/26 11:44:32 [Warning] [996642304] proxy/http: failed to read response from 210.42.121.76:8530 > io: read/write on closed pipe
2022/05/26 11:44:32 [Warning] [996642304] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:10809->127.0.0.1:58416: wsasend: An existing connection was forcibly closed by the remote host.
2022/05/26 11:44:41 127.0.0.1:58666 accepted //clients4.google.com:443 [http -> proxy]
2022/05/26 11:44:45 127.0.0.1:58686 accepted //report.url.cn:443 [http -> direct]
2022/05/26 11:44:47 127.0.0.1:58699 accepted http://210.42.121.76:8530/Content/AD/25AA34DFD49E0F9D827DF0357084C5B25E1B8CAD.cab [http -> direct]
2022/05/26 11:44:53 127.0.0.1:58714 accepted //www.google.com:443 [http -> proxy]
2022/05/26 11:45:04 [Warning] [2052081806] proxy/http: failed to read response from 210.42.121.76:8530 > io: read/write on closed pipe
2022/05/26 11:45:04 [Warning] [3648344769] proxy/http: failed to read response from 210.42.121.76:8530 > io: read/write on closed pipe
2022/05/26 11:45:04 [Warning] [2052081806] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:10809->127.0.0.1:58504: wsasend: An existing connection was forcibly closed by the remote host.
2022/05/26 11:45:04 [Warning] [3648344769] app/proxyman/inbound: connection ends > proxy/http: connection ends > proxy/http: failed to write response > write tcp 127.0.0.1:10809->127.0.0.1:58506: wsasend: An existing connection was forcibly closed by the remote host.
2022/05/26 11:45:10 127.0.0.1:58758 accepted http://210.42.121.76:8530/Content/02/7E2B3C8CC092A8202A9146848D86EACE5B6CD602.cab [http -> direct]
2022/05/26 11:45:27 127.0.0.1:58801 accepted http://210.42.121.76:8530/Content/B8/D1BFC3B05EA8DE6822BF4CF1A03802AC7ED10EB8.cab [http -> direct]
2022/05/26 11:45:27 127.0.0.1:58803 accepted http://210.42.121.76:8530/Content/D8/D7C33986497DCD3EBADDFCE5017313FE375824D8.cab [http -> direct]
2022/05/26 11:45:27 127.0.0.1:58806 accepted http://210.42.121.76:8530/Content/8E/98CA25E0C13AE997149D04A4E62191BDB24DD28E.cab [http -> direct]
2022/05/26 11:45:27 127.0.0.1:58808 accepted http://210.42.121.76:8530/Content/F9/BA96F2083E87996D699FF60ABA438AD2E4AEF7F9.cab [http -> direct]
2022/05/26 11:45:31 127.0.0.1:58817 accepted //github.com:443 [http -> proxy]
请附上访问日志
2022/05/26 11:38:50 tcp:210.44.10.6:12077 accepted tcp:d27xxe7juh1us6.cloudfront.net:443
2022/05/26 11:38:50 tcp:210.44.10.6:12077 accepted tcp:alive.github.com:443
2022/05/26 11:38:54 210.44.10.39:28136 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:38:55 210.44.10.39:28147 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:03 210.44.10.39:28232 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:09 210.44.10.39:28263 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:10 tcp:210.44.10.6:12171 accepted tcp:clients4.google.com:443
2022/05/26 11:39:21 210.44.10.39:28349 accepted tcp:autsqw.dm.files.1drv.com:443
2022/05/26 11:39:23 210.44.10.39:28359 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:24 210.44.10.39:28371 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:28 tcp:210.44.10.6:12264 accepted tcp:features-proxy.opensea.io:443
2022/05/26 11:39:33 210.44.10.39:28428 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:46 221.11.4.155:55250 rejected common/drain: common/drain: unable to drain connection > EOF > proxy/vmess/encoding: invalid user > replayed request
2022/05/26 11:39:49 tcp:210.44.10.6:12380 accepted tcp:array512.prod.do.dsp.mp.microsoft.com:443
2022/05/26 11:39:49 tcp:210.44.10.6:12380 accepted tcp:arb1.arbitrum.io:443
2022/05/26 11:39:49 210.44.10.39:28560 accepted tcp:skydrive.wns.windows.com:443
2022/05/26 11:39:59 210.44.10.39:28635 accepted tcp:gates.grammarly.com:443
2022/05/26 11:39:59 210.44.10.39:28634 accepted tcp:treatment.grammarly.com:443
2022/05/26 11:40:09 tcp:210.44.10.6:12497 accepted tcp:mtalk.google.com:5228
2022/05/26 11:40:31 tcp:210.44.10.6:12599 accepted tcp:stream.zotero.org:443
2022/05/26 11:40:31 tcp:210.44.10.6:12599 accepted tcp:features-proxy.opensea.io:443
2022/05/26 11:40:31 tcp:210.44.10.6:12599 accepted tcp:features-proxy.opensea.io:443
2022/05/26 11:40:51 tcp:210.44.10.6:12721 accepted tcp:github.githubassets.com:443
2022/05/26 11:40:51 tcp:210.44.10.6:12721 accepted tcp:github.com:443
2022/05/26 11:40:51 tcp:210.44.10.6:12721 accepted tcp:github.com:443
2022/05/26 11:40:52 111.85.200.254:49818 rejected common/drain: common/drain: drained connection > proxy/vmess/encoding: invalid user > replayed request
2022/05/26 11:41:11 tcp:210.44.10.6:12866 accepted tcp:arb1.arbitrum.io:443
2022/05/26 11:41:11 tcp:210.44.10.6:12866 accepted tcp:www.google.com.hk:443
2022/05/26 11:41:11 tcp:210.44.10.6:12866 accepted tcp:www.google.com:443
2022/05/26 11:41:21 210.44.10.39:29332 accepted tcp:d27xxe7juh1us6.cloudfront.net:443
ubuntu@ip-172-31-38-20:/usr/local/log/v2ray$ sudo tail -n 30 access.log
2022/05/26 11:38:50 tcp:210.44.10.6:12077 accepted tcp:alive.github.com:443
2022/05/26 11:38:54 210.44.10.39:28136 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:38:55 210.44.10.39:28147 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:03 210.44.10.39:28232 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:09 210.44.10.39:28263 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:10 tcp:210.44.10.6:12171 accepted tcp:clients4.google.com:443
2022/05/26 11:39:21 210.44.10.39:28349 accepted tcp:autsqw.dm.files.1drv.com:443
2022/05/26 11:39:23 210.44.10.39:28359 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:24 210.44.10.39:28371 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:28 tcp:210.44.10.6:12264 accepted tcp:features-proxy.opensea.io:443
2022/05/26 11:39:33 210.44.10.39:28428 accepted tcp:self.events.data.microsoft.com:443
2022/05/26 11:39:46 221.11.4.155:55250 rejected common/drain: common/drain: unable to drain connection > EOF > proxy/vmess/encoding: invalid user > replayed request
2022/05/26 11:39:49 tcp:210.44.10.6:12380 accepted tcp:array512.prod.do.dsp.mp.microsoft.com:443
2022/05/26 11:39:49 tcp:210.44.10.6:12380 accepted tcp:arb1.arbitrum.io:443
2022/05/26 11:39:49 210.44.10.39:28560 accepted tcp:skydrive.wns.windows.com:443
2022/05/26 11:39:59 210.44.10.39:28635 accepted tcp:gates.grammarly.com:443
2022/05/26 11:39:59 210.44.10.39:28634 accepted tcp:treatment.grammarly.com:443
2022/05/26 11:40:09 tcp:210.44.10.6:12497 accepted tcp:mtalk.google.com:5228
2022/05/26 11:40:31 tcp:210.44.10.6:12599 accepted tcp:stream.zotero.org:443
2022/05/26 11:40:31 tcp:210.44.10.6:12599 accepted tcp:features-proxy.opensea.io:443
2022/05/26 11:40:31 tcp:210.44.10.6:12599 accepted tcp:features-proxy.opensea.io:443
2022/05/26 11:40:51 tcp:210.44.10.6:12721 accepted tcp:github.githubassets.com:443
2022/05/26 11:40:51 tcp:210.44.10.6:12721 accepted tcp:github.com:443
2022/05/26 11:40:51 tcp:210.44.10.6:12721 accepted tcp:github.com:443
2022/05/26 11:40:52 111.85.200.254:49818 rejected common/drain: common/drain: drained connection > proxy/vmess/encoding: invalid user > replayed request
2022/05/26 11:41:11 tcp:210.44.10.6:12866 accepted tcp:arb1.arbitrum.io:443
2022/05/26 11:41:11 tcp:210.44.10.6:12866 accepted tcp:www.google.com.hk:443
2022/05/26 11:41:11 tcp:210.44.10.6:12866 accepted tcp:www.google.com:443
2022/05/26 11:41:21 210.44.10.39:29332 accepted tcp:d27xxe7juh1us6.cloudfront.net:443
2022/05/26 11:41:28 tcp:210.44.10.6:13004 accepted tcp:features-proxy.opensea.io:443
其它相关的配置文件(如 Nginx)和相关日志
如果 V2Ray 无法启动,请附上 --test 命令的输出
如果 V2Ray 服务运行异常,请附上 journal 日志
1 建议换有回程优化的VPS商家 2 如果不是VPS线路不好的问题,建议换协议组合。选带TLS的组合。
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days