0) 补充信息若干:
我参考的教程:https://www.ivyseeds.cf/wssheader/
我尝试过的解决方式:
修改nginx中下面几行的配置,从
if ($http_host = "www.ivyseeds.com" ) {
proxy_pass http://127.0.0.1:419;
}
改为
if ($http_host = "www.ivyseeds.com" ) {
proxy_pass https://127.0.0.1:419;
}
1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
V2Ray v3.13
2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
使用 proxifier 强制本机所有流量通过 Socks/VMess 代理,并通过 proxifier 自带的测试工具测试到 www.google.com:80 的连接是否畅通。
Vmess协议设定为websocket连接,并开启tls传输层加密。
3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
v2ray程序窗口中显示大量警告信息如下:
2018/03/11 17:34:28 [Warning] [2698769773] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
4) 你期待看到的正确表现是怎样的?
期望看到程序显示这样的信息:
tcp:{IP地址:端口} accepted tcp:{IP地址:端口}
5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"dns": {
"servers": [
"208.67.222.222",
"169.239.202.202",
"localhost"
]
},
"inbound": {
"port": 非443端口,监听被nginx转发过来的流量
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "被隐去的UUID",
"level": 1,
"alterId": 256
}
],
"disableInsecureEncryption": true
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "服务器域名",
"certificates": [
{
"certificateFile": "/etc/letsencrypt/live/服务器域名/fullchain.pem",
"keyFile": "/etc/letsencrypt/live/服务器域名/privkey.pem"
}
]
}
}
},
"outbound": {
"protocol": "freedom",
"settings": {},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "服务器域名",
"certificates": [
{
"certificateFile": "/etc/letsencrypt/live/服务器域名/fullchain.pem",
"keyFile": "/etc/letsencrypt/live/服务器域名/privkey.pem"
}
]
}
}
},
"transport": {
"wsSettings": {
"connectionReuse": true
}
}
}
客户端配置:
{
"log": {
"loglevel": "warning"
},
"inbound": {
"listen": "127.0.0.1",
"port": 本地监听端口,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "服务器域名",
"port": 443,
"users": [
{
"id": "被隐去的UUID",
"security": "aes-128-gcm",
"level": 1,
"alterId": 256
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "服务器域名",
"allowInsecure": false
}
}
},
"transport": {
"wsSettings": {
"connectionReuse": true,
"path": "/pv/",
"headers": {
"Host": "pv.服务器域名"
}
}
}
}
6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。
服务器端错误日志:
1 2018/03/11 04:13:58 [Warning] Core: V2Ray v3.13 started
2 2018/03/11 04:37:15 [Warning] Transport|Internet|WebSocket: failed to serve http for WebSocket > accept tcp [::]:443: use of closed network connection
3 2018/03/11 04:53:54 [Warning] Core: V2Ray v3.13 started
4 2018/03/11 05:01:16 [Warning] Transport|Internet|WebSocket: failed to serve http for WebSocket > accept tcp [::]:8443: use of closed network connection
5 2018/03/11 05:01:16 [Warning] Core: V2Ray v3.13 started
6 2018/03/11 16:12:59 [Warning] Core: V2Ray v3.13 started
7 2018/03/11 17:15:36 [Warning] Core: V2Ray v3.13 started
8 2018/03/11 17:28:51 [Warning] Transport|Internet|WebSocket: failed to serve http for WebSocket > accept tcp [::]:8443: use of closed network connection
9 2018/03/11 17:28:51 [Warning] Core: V2Ray v3.13 started
10 2018/03/11 17:31:34 [Warning] Transport|Internet|WebSocket: failed to serve http for WebSocket > accept tcp [::]:8443: use of closed network connection
11 2018/03/11 17:31:34 [Warning] Core: V2Ray v3.13 started
12 2018/03/11 17:34:05 [Warning] Transport|Internet|WebSocket: failed to serve http for WebSocket > accept tcp [::]:8443: use of closed network connection
13 2018/03/11 17:34:06 [Warning] Core: V2Ray v3.13 started
客户端错误日志:
V2Ray v3.13 (die Commanderin) 20180308
An unified platform for anti-censorship.
2018/03/11 17:34:14 [Warning] Core: V2Ray v3.13 started
2018/03/11 17:34:23 tcp:127.0.0.1:61930 accepted tcp:185.53.178.9:2710
2018/03/11 17:34:23 tcp:127.0.0.1:61934 accepted tcp:185.53.178.9:2710
2018/03/11 17:34:23 tcp:127.0.0.1:61937 accepted tcp:185.53.178.9:2710
2018/03/11 17:34:23 tcp:127.0.0.1:61941 accepted tcp:185.53.178.9:2710
2018/03/11 17:34:24 tcp:127.0.0.1:61967 accepted tcp:www.google.com:80
2018/03/11 17:34:25 tcp:127.0.0.1:62097 accepted tcp:[2600:3c00::f03c:91ff:fee4:7fe4]:80
2018/03/11 17:34:25 tcp:127.0.0.1:62100 accepted tcp:[2600:3c00::f03c:91ff:fee4:7fe4]:80
2018/03/11 17:34:25 tcp:127.0.0.1:62103 accepted tcp:[2600:3c00::f03c:91ff:fee4:7fe4]:80
2018/03/11 17:34:25 tcp:127.0.0.1:62107 accepted tcp:[2600:3c00::f03c:91ff:fee4:7fe4]:80
2018/03/11 17:34:26 tcp:127.0.0.1:62154 accepted tcp:124.79.46.119:13108
2018/03/11 17:34:27 tcp:127.0.0.1:62228 accepted tcp:144.255.46.227:19517
2018/03/11 17:34:28 [Warning] [296361464] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:28 [Warning] [2698769773] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:28 tcp:127.0.0.1:62283 accepted tcp:37.139.0.58:6544
2018/03/11 17:34:28 tcp:127.0.0.1:62286 accepted tcp:37.139.0.58:6544
2018/03/11 17:34:28 tcp:127.0.0.1:62289 accepted tcp:37.139.0.58:6544
2018/03/11 17:34:28 tcp:127.0.0.1:62293 accepted tcp:37.139.0.58:6544
2018/03/11 17:34:29 [Warning] [4001413559] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:29 [Warning] [2483939143] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:29 [Warning] [454183267] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:29 [Warning] [698323970] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:29 [Warning] [930211296] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:29 [Warning] [190206509] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:30 [Warning] [3834540478] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:30 [Warning] [1775904763] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:30 tcp:127.0.0.1:62406 accepted tcp:124.114.148.34:16295
2018/03/11 17:34:30 tcp:127.0.0.1:62409 accepted tcp:173.254.204.71:1096
2018/03/11 17:34:30 tcp:127.0.0.1:62413 accepted tcp:173.254.204.71:1096
2018/03/11 17:34:30 tcp:127.0.0.1:62416 accepted tcp:58.153.59.108:30147
2018/03/11 17:34:30 [Warning] [3211658140] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:31 [Warning] [1812906540] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:31 [Warning] [1049785871] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:31 [Warning] [3909825409] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:31 [Warning] [3047002309] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:31 [Warning] [3528146205] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [2487114842] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [3034845446] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [1709719793] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [2985422128] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [1595126851] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [3886502342] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 [Warning] [761718872] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:32 tcp:127.0.0.1:62551 accepted tcp:121.51.8.105:443
2018/03/11 17:34:32 [Warning] [2722533951] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:33 [Warning] [451757026] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:33 [Warning] [1911526549] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:33 [Warning] [3852951800] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:33 [Warning] [915882091] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:33 tcp:127.0.0.1:62605 accepted tcp:124.79.46.119:13108
2018/03/11 17:34:33 tcp:127.0.0.1:62609 accepted tcp:[2001:da8:208:12c:a54d:143e:5de9:5bac]:5228
2018/03/11 17:34:34 [Warning] [1872406676] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:34 [Warning] [1237248357] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:34 [Warning] [3481163607] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:34 [Warning] [660384570] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:34 tcp:127.0.0.1:62640 accepted tcp:[2001:cc0:2020:3020:89b0:55ef:2315:758f]:13170
2018/03/11 17:34:36 [Warning] [3105986325] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:36 tcp:127.0.0.1:62722 accepted tcp:[2001:0:ca64:dc36:34bd:15c5:3f57:ff8d]:56843
2018/03/11 17:34:36 tcp:127.0.0.1:62725 accepted tcp:142.4.212.15:41312
2018/03/11 17:34:37 [Warning] [3396626085] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:37 [Warning] [3588771002] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:37 [Warning] [1488823030] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:38 [Warning] [2085603276] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:38 [Warning] [1566255904] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:38 [Warning] [422103822] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:38 [Warning] [915022188] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:38 tcp:127.0.0.1:62795 accepted tcp:182.254.18.178:80
2018/03/11 17:34:38 tcp:127.0.0.1:62800 accepted tcp:121.51.140.147:80
2018/03/11 17:34:38 tcp:127.0.0.1:62802 accepted tcp:121.51.140.147:80
2018/03/11 17:34:38 [Warning] [203675504] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [3240334858] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [328243242] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [532246260] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [3118783699] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [1458410875] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [3716992767] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 [Warning] [1192511218] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:39 tcp:127.0.0.1:62856 accepted tcp:94.228.192.98:80
2018/03/11 17:34:39 tcp:127.0.0.1:62860 accepted tcp:94.228.192.98:80
2018/03/11 17:34:39 tcp:127.0.0.1:62866 accepted tcp:94.228.192.98:80
2018/03/11 17:34:39 tcp:127.0.0.1:62863 accepted tcp:94.228.192.98:80
2018/03/11 17:34:40 [Warning] [3788118387] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [1421569449] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [2029259416] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [610055498] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [2936272407] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [4242075800] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [4089087531] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [1193949153] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 [Warning] [4226252770] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:40 tcp:127.0.0.1:62929 accepted tcp:185.206.27.15:443
2018/03/11 17:34:40 tcp:127.0.0.1:62932 accepted tcp:185.206.27.15:443
2018/03/11 17:34:40 tcp:127.0.0.1:62935 accepted tcp:185.206.27.15:443
2018/03/11 17:34:40 tcp:127.0.0.1:62946 accepted tcp:[2400:cb00:2048:1::6819:1b1f]:80
2018/03/11 17:34:40 tcp:127.0.0.1:62949 accepted tcp:[2400:cb00:2048:1::6819:1b1f]:80
2018/03/11 17:34:40 tcp:127.0.0.1:62952 accepted tcp:[2400:cb00:2048:1::6819:1b1f]:80
2018/03/11 17:34:40 tcp:127.0.0.1:62957 accepted tcp:[2400:cb00:2048:1::6819:1a1f]:80
2018/03/11 17:34:41 [Warning] [1476079804] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:41 [Warning] [2093044653] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:41 [Warning] [2562697399] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:41 tcp:127.0.0.1:63014 accepted tcp:[2001:470:1c:2a0::dead]:80
2018/03/11 17:34:42 tcp:127.0.0.1:63110 accepted tcp:[2001:da8:215:4078:250:56ff:fe97:654d]:443
2018/03/11 17:34:42 tcp:127.0.0.1:63114 accepted tcp:[2400:cb00:2048:1::6812:3bef]:443
2018/03/11 17:34:42 tcp:127.0.0.1:63112 accepted tcp:[2400:cb00:2048:1::6812:3bef]:443
2018/03/11 17:34:43 [Warning] [2787632730] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:43 [Warning] [1618927776] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:45 [Warning] [327637795] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:45 [Warning] [3306948569] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:45 [Warning] [1145146971] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:45 [Warning] [1206821856] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:47 [Warning] [2777199799] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:47 [Warning] [438307438] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:47 [Warning] [806312165] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:47 [Warning] [1558934955] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:47 [Warning] [4150305535] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:47 [Warning] [2103147432] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:48 [Warning] [795747622] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:48 [Warning] [3501251488] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:48 [Warning] [1124761587] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [215340318] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [2922705777] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [2171638735] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [2281783567] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [178121765] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [474150669] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [3788506704] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [652420152] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [2893889649] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [2068988918] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
2018/03/11 17:34:49 [Warning] [3608393130] App|Proxyman|Outbound: failed to process outbound traffic > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://服务器域名/pv/): > malformed HTTP response "\x15\x03\x01\x00\x02\x02"] > Retry: all retry attempts failed
7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。
访问日志为空
8) 其它相关的配置文件(如 Nginx)和相关日志。
{
listen 80;
listen [::]:80;
server_name www.服务器域名 服务器域名;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.服务器域名;
include wordpress.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location /pv/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
if ($http_host = "pv.服务器域名" ) {
proxy_pass http://127.0.0.1:【v2ray服务器端监听的端口】;
}
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/www.服务器域名.log;
}
server
{
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.服务器域名 服务器域名;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.服务器域名;
ssl on;
ssl_certificate /etc/letsencrypt/live/www.服务器域名/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.服务器域名/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5";
ssl_session_cache builtin:1000 shared:SSL:10m;
# openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 2048
ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
include wordpress.conf;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location /pv/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
if ($http_host = "pv.服务器域名" ) {
proxy_pass http://127.0.0.1:【v2ray服务器端监听的端口】;
}
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/www.服务器域名.log;
}
等了好久啊,真的没有人能帮我吗?
@IceCodeNew 你是前台安装的网盘吗
@man2018 我没安装网盘啊……您这句话我怎么一点也对不上。
transport 是对所有的 inbound,outbound 以及 detour 生效的,所以会连接不上,请仔细查看文档修正错误部分。
感谢 @stickh 的解答,我再去对照下文档检查错误。
streamSettings中的security设为none,tlsSettings完全删去——作为服务器的v2ray和nginx之间是明文(ws),而非SSL/TLS(wss)if ($http_host = "pv.服务器域名" ) {
proxy_pass http://127.0.0.1:【v2ray服务器端监听的端口】;
}
改成proxy_pass http://127.0.0.1:{v2ray_port}/pv/;
4.服务器wsSettings里面加上"path": "/pv/"
这是目前我发现了的问题。
此外,服务器端的websocket path与nginx里proxy_pass中的要一致
客户端的websocket path与nginx的location后面的要一致
贴个测试过能用的配置吧:
v2ray服务器端:
{
"log" : {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
},
"inbound": {
"port": {v2ray服务器端口},
"listen": "127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "{你自己的UUID}",
"level": 1,
"alterId": 64,
"security": "none"
}
]
},
"streamSettings": {
"network": "ws",
"security": "auto",
"wsSettings": {
"path": "/"
}
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
}
}
nginx:
location /{Websocket路径}/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:{v2ray服务器端口}/;
proxy_http_version 1.1;
proxy_set_header Host "{服务器的域名}";
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade "WebSocket";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_intercept_errors on;
}
v2ray客户端:
{
"log": {
"loglevel": "info",
"access": "C:\\v2ray\\access.log",
"error": "C:\\v2ray\\error.log"
},
"dns": {
"servers": [
"8.8.8.8",
"8.8.4.4"
]
},
"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": "direct"
}
]
}
},
"inbound": {
"port": 1080,
"listen": "127.0.0.1",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": false,
"timeout": 5
}
},
"outbound": {
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "{服务器的域名}",
"port": 443,
"users": [
{
"id": "{你自己的UUID}",
"level": 1,
"alterId": 64,
"security": "none"
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"wsSettings": {
"path": "/{Websocket路径}/",
"headers": {
}
},
"tlsSettings":{
"serverName": "{SNI,同服务器的域名即可}",
"allowInsecure": false
}
}
}
}
nginx仅为反代部分,请保留配置文件中server{}块中其他内容,以免你的网站出问题。
客户端的socks5代理监听在127.0.0.1:1080
你的nginx上配置了https,并且转发的时候使用了http,在v2ray服务器端就不能开启tls了。
修复的方式是要么在nginx上配置https转发,要么在v2ray服务器端停用tls。
谢谢两位的耐心解答,看完发现自己对nginx反代理解的还不够透彻,学到了!
location /{Websocket路径}/ {
proxy_redirect off;
proxy_pass http://127.0.0.1:{v2ray服务器端口}/;
proxy_http_version 1.1;
proxy_set_header Host "{服务器的域名}";
proxy_set_header Connection "Upgrade";
proxy_set_header Upgrade "WebSocket";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_intercept_errors on;
}
你这些配置照样一堆fail啊大佬
@Hardrain980
v2ray客户端:
{ "log": { "loglevel": "info", "access": "C:\\v2ray\\access.log", "error": "C:\\v2ray\\error.log" }, "dns": { "servers": [ "8.8.8.8", "8.8.4.4" ] }, "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": "direct" } ] } }, "inbound": { "port": 1080, "listen": "127.0.0.1", "protocol": "socks", "settings": { "auth": "noauth", "udp": false, "timeout": 5 } }, "outbound": { "protocol": "vmess", "settings": { "vnext": [ { "address": "{服务器的域名}", "port": 443, "users": [ { "id": "{你自己的UUID}", "level": 1, "alterId": 64, "security": "none" } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "wsSettings": { "path": "/{Websocket路径}/", "headers": { } }, "tlsSettings":{ "serverName": "{SNI,同服务器的域名即可}", "allowInsecure": false } } } }
按照这个配置,客户端闪退。不知道是怎么回事,用 json 语法检查都没错
"serverName": "{SNI,同服务器的域名即可}", 这一行,SNI 是什么意思?
Most helpful comment
贴个测试过能用的配置吧:
v2ray服务器端:
nginx:
v2ray客户端:
别忘了把这里面所有带中文的地方,根据你的实际情况替换。
nginx仅为反代部分,请保留配置文件中
server{}块中其他内容,以免你的网站出问题。客户端的socks5代理监听在127.0.0.1:1080