Closed 1nj0k closed 4 years ago
提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。 除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。 如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用Discussion进行讨论。
1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) 4.22.1 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 使用chrome访问google 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 无法与服务器中v2ray连接 4) 你期待看到的正确表现是怎样的? 可以访问Google 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
{ "log": { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", "loglevel": "warning" }, "inbounds": [ { "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "port": 765, "listen": "127.0.0.1", "protocol": "vmess", "allocate": { "strategy": "always" }, "settings": { "clients": [ { "id": "xxx", "level": 1, "alterId": 64 } ] }, "tag": "in-0", "streamSettings": { "network": "ws", "security": "none", "wsSettings": { "path": "/ceshi" } } } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "tag": "blocked", "protocol": "blackhole", "settings": {} } ], "routing": { "domainStrategy": "AsIs", "rules": [ { "type": "field", "ip": [ "geoip:private" ], "outboundTag": "blocked" }, { "type": "field", "outboundTag": "blocked", "protocol": [ "bittorrent" ] } ] } }
客户端配置:
{ "policy": { "system": { "statsInboundUplink": true, "statsInboundDownlink": true } }, "log": { "access": "", "error": "", "loglevel": "debug" }, "inbounds": [ { "tag": "proxy", "port": 1080, "listen": "0.0.0.0", "protocol": "socks", "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] }, "settings": { "auth": "noauth", "udp": true, "ip": null, "address": null, "clients": null }, "streamSettings": null }, { "tag": "api", "port": 55496, "listen": "127.0.0.1", "protocol": "dokodemo-door", "sniffing": null, "settings": { "auth": null, "udp": false, "ip": null, "address": "127.0.0.1", "clients": null }, "streamSettings": null } ], "outbounds": [ { "tag": "proxy", "protocol": "vmess", "settings": { "vnext": [ { "address": "www.xxx.com", "port": 443, "users": [ { "id": "xxx", "alterId": 64, "email": "t@t.tt", "security": "chacha20-poly1305" } ] } ], "servers": null, "response": null }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "allowInsecure": true, "serverName": null }, "tcpSettings": null, "kcpSettings": null, "wsSettings": { "connectionReuse": true, "path": "/ceshi", "headers": null }, "httpSettings": null, "quicSettings": null }, "mux": { "enabled": true } }, { "tag": "direct", "protocol": "freedom", "settings": { "vnext": null, "servers": null, "response": null }, "streamSettings": null, "mux": null }, { "tag": "block", "protocol": "blackhole", "settings": { "vnext": null, "servers": null, "response": { "type": "http" } }, "streamSettings": null, "mux": null } ], "stats": {}, "api": { "tag": "api", "services": [ "StatsService" ] }, "dns": { "servers": [ "119.29.29.29", "8.8.8.8", "8.8.4.4" ] }, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "port": null, "inboundTag": [ "api" ], "outboundTag": "api", "ip": null, "domain": null } ] } }
6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在 /var/log/v2ray/error.log 文件中。
/var/log/v2ray/error.log
客户端错误日志:
A unified platform for anti-censorship. 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/log: Logger started 2020/01/27 22:22:14 tcp:127.0.0.1:55915 accepted tcp:www.google.com:443 [proxy] 2020/01/27 22:22:14 [Info] v2ray.com/core/app/dns: DNS: created udp client inited for 119.29.29.29:53 2020/01/27 22:22:14 [Info] v2ray.com/core/app/dns: DNS: created udp client inited for 8.8.8.8:53 2020/01/27 22:22:14 [Info] v2ray.com/core/app/dns: DNS: created udp client inited for 8.8.4.4:53 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/stats: create new counter inbound>>>proxy>>>traffic>>>uplink 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/stats: create new counter inbound>>>proxy>>>traffic>>>downlink 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 0.0.0.0:1080 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/stats: create new counter inbound>>>api>>>traffic>>>uplink 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/stats: create new counter inbound>>>api>>>traffic>>>downlink 2020/01/27 22:22:14 [Debug] v2ray.com/core/app/proxyman/inbound: creating stream worker on 127.0.0.1:55496 2020/01/27 22:22:14 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 0.0.0.0:1080 2020/01/27 22:22:14 [Info] v2ray.com/core/transport/internet/udp: listening UDP on 0.0.0.0:1080 2020/01/27 22:22:14 [Info] v2ray.com/core/transport/internet/tcp: listening TCP on 127.0.0.1:55496 2020/01/27 22:22:14 [Warning] v2ray.com/core: V2Ray 4.22.1 started 2020/01/27 22:22:14 [Info] [1074174700] v2ray.com/core/proxy/socks: TCP Connect request to tcp:www.google.com:443 2020/01/27 22:22:14 [Info] [1074174700] v2ray.com/core/app/dispatcher: sniffed domain: www.google.com 2020/01/27 22:22:14 [Info] [1074174700] v2ray.com/core/app/dispatcher: default route for tcp:www.google.com:443 2020/01/27 22:22:14 [Debug] [1325621944] v2ray.com/core/proxy/dokodemo: processing connection from: 127.0.0.1:55908 2020/01/27 22:22:14 [Info] [1325621944] v2ray.com/core/app/dispatcher: taking detour [api] for [tcp:127.0.0.1:0] 2020/01/27 22:22:14 [Info] [1469171318] v2ray.com/core/proxy/socks: TCP Connect request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:14 [Info] [1469171318] v2ray.com/core/app/dispatcher: sniffed domain: watson.telemetry.microsoft.com 2020/01/27 22:22:14 [Info] [1469171318] v2ray.com/core/app/dispatcher: default route for tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:14 [Info] [1469171318] v2ray.com/core/common/mux: dispatching request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:14 tcp:127.0.0.1:55911 accepted tcp:watson.telemetry.microsoft.com:443 [proxy] 2020/01/27 22:22:16 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:18 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:21 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:24 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:29 [Info] [2575523877] v2ray.com/core/proxy/socks: TCP Connect request to tcp:safebrowsing.googleapis.com:443 2020/01/27 22:22:29 tcp:127.0.0.1:55942 accepted tcp:safebrowsing.googleapis.com:443 [proxy] 2020/01/27 22:22:29 [Info] [2575523877] v2ray.com/core/app/dispatcher: sniffed domain: safebrowsing.googleapis.com 2020/01/27 22:22:29 [Info] [2575523877] v2ray.com/core/app/dispatcher: default route for tcp:safebrowsing.googleapis.com:443 2020/01/27 22:22:29 [Info] [2575523877] v2ray.com/core/common/mux: dispatching request to tcp:safebrowsing.googleapis.com:443 2020/01/27 22:22:30 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.xxx.com/ceshi): 404 Not Found > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 2020/01/27 22:22:30 [Info] v2ray.com/core/common/mux: failed to read metadata > io: read/write on closed pipe 2020/01/27 22:22:30 [Info] [3169174790] v2ray.com/core/proxy/socks: TCP Connect request to tcp:substrate.office.com:443 2020/01/27 22:22:30 [Info] [3169174790] v2ray.com/core/app/dispatcher: sniffed domain: substrate.office.com 2020/01/27 22:22:30 [Info] [3169174790] v2ray.com/core/app/dispatcher: default route for tcp:substrate.office.com:443 2020/01/27 22:22:30 tcp:127.0.0.1:55950 accepted tcp:substrate.office.com:443 [proxy] 2020/01/27 22:22:30 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:30 [Info] [3169174790] v2ray.com/core/common/mux: dispatching request to tcp:substrate.office.com:443 2020/01/27 22:22:31 [Info] [1469171318] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:31 [Info] [1469171318] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:31 [Info] [2575523877] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:31 [Info] [2575523877] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:31 [Info] [1074174700] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:31 [Info] [1074174700] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:31 [Info] [1390495355] v2ray.com/core/proxy/socks: TCP Connect request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:31 [Info] [1390495355] v2ray.com/core/app/dispatcher: sniffed domain: watson.telemetry.microsoft.com 2020/01/27 22:22:31 tcp:127.0.0.1:55953 accepted tcp:watson.telemetry.microsoft.com:443 [proxy] 2020/01/27 22:22:31 [Info] [1390495355] v2ray.com/core/app/dispatcher: default route for tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:31 [Info] [1390495355] v2ray.com/core/common/mux: dispatching request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:31 [Info] [3774051036] v2ray.com/core/proxy/socks: TCP Connect request to tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:31 [Info] [3774051036] v2ray.com/core/app/dispatcher: sniffed domain: mobile.pipe.aria.microsoft.com 2020/01/27 22:22:31 tcp:127.0.0.1:55956 accepted tcp:mobile.pipe.aria.microsoft.com:443 [proxy] 2020/01/27 22:22:31 [Info] [3774051036] v2ray.com/core/app/dispatcher: default route for tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:31 [Info] [3774051036] v2ray.com/core/common/mux: dispatching request to tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:33 [Info] [2895476823] v2ray.com/core/proxy/socks: TCP Connect request to tcp:www.google.com:443 2020/01/27 22:22:33 [Info] [2895476823] v2ray.com/core/app/dispatcher: sniffed domain: www.google.com 2020/01/27 22:22:33 tcp:127.0.0.1:55960 accepted tcp:www.google.com:443 [proxy] 2020/01/27 22:22:33 [Info] [2895476823] v2ray.com/core/app/dispatcher: default route for tcp:www.google.com:443 2020/01/27 22:22:33 [Info] [2895476823] v2ray.com/core/common/mux: dispatching request to tcp:www.google.com:443 2020/01/27 22:22:33 [Info] [2304456534] v2ray.com/core/proxy/socks: TCP Connect request to tcp:www.google.com:443 2020/01/27 22:22:33 [Info] [2304456534] v2ray.com/core/app/dispatcher: sniffed domain: www.google.com 2020/01/27 22:22:33 tcp:127.0.0.1:55962 accepted tcp:www.google.com:443 [proxy] 2020/01/27 22:22:33 [Info] [2304456534] v2ray.com/core/app/dispatcher: default route for tcp:www.google.com:443 2020/01/27 22:22:33 [Info] [2304456534] v2ray.com/core/common/mux: dispatching request to tcp:www.google.com:443 2020/01/27 22:22:35 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:36 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:38 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:39 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:43 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.xxx.com/ceshi): 404 Not Found > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 2020/01/27 22:22:43 [Info] v2ray.com/core/common/mux: failed to read metadata > io: read/write on closed pipe 2020/01/27 22:22:44 [Info] [2895476823] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:44 [Info] [1390495355] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:44 [Info] [2304456534] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:44 [Info] [2895476823] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:44 [Info] [1390495355] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:44 [Info] [3774051036] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:44 [Info] [2304456534] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:44 [Info] [3774051036] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:44 [Info] [3169174790] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:44 [Info] [3169174790] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:44 [Info] [4059568892] v2ray.com/core/proxy/socks: TCP Connect request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:44 [Info] [607026987] v2ray.com/core/proxy/socks: TCP Connect request to tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:44 [Info] [312238517] v2ray.com/core/proxy/socks: TCP Connect request to tcp:substrate.office.com:443 2020/01/27 22:22:44 [Info] [4059568892] v2ray.com/core/app/dispatcher: sniffed domain: watson.telemetry.microsoft.com 2020/01/27 22:22:44 [Info] [4059568892] v2ray.com/core/app/dispatcher: default route for tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:44 [Info] [4059568892] v2ray.com/core/common/mux: dispatching request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:44 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:44 tcp:127.0.0.1:55982 accepted tcp:watson.telemetry.microsoft.com:443 [proxy] 2020/01/27 22:22:44 [Info] [607026987] v2ray.com/core/app/dispatcher: sniffed domain: mobile.pipe.aria.microsoft.com 2020/01/27 22:22:44 [Info] [607026987] v2ray.com/core/app/dispatcher: default route for tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:44 tcp:127.0.0.1:55983 accepted tcp:mobile.pipe.aria.microsoft.com:443 [proxy] 2020/01/27 22:22:44 [Info] [607026987] v2ray.com/core/common/mux: dispatching request to tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:44 [Info] [312238517] v2ray.com/core/app/dispatcher: sniffed domain: substrate.office.com 2020/01/27 22:22:44 [Info] [312238517] v2ray.com/core/app/dispatcher: default route for tcp:substrate.office.com:443 2020/01/27 22:22:44 tcp:127.0.0.1:55984 accepted tcp:substrate.office.com:443 [proxy] 2020/01/27 22:22:44 [Info] [312238517] v2ray.com/core/common/mux: dispatching request to tcp:substrate.office.com:443 2020/01/27 22:22:45 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:46 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:47 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:49 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:51 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.xxx.com/ceshi): 404 Not Found > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 2020/01/27 22:22:51 [Info] v2ray.com/core/common/mux: failed to read metadata > io: read/write on closed pipe 2020/01/27 22:22:52 [Info] [312238517] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:52 [Info] [607026987] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:52 [Info] [4059568892] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:22:52 [Info] [4059568892] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:52 [Info] [312238517] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:52 [Info] [607026987] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe 2020/01/27 22:22:52 [Info] [3599318288] v2ray.com/core/proxy/socks: TCP Connect request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:52 [Info] [4242127250] v2ray.com/core/proxy/socks: TCP Connect request to tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:52 [Info] [2550422201] v2ray.com/core/proxy/socks: TCP Connect request to tcp:substrate.office.com:443 2020/01/27 22:22:52 tcp:127.0.0.1:56005 accepted tcp:mobile.pipe.aria.microsoft.com:443 [proxy] 2020/01/27 22:22:52 [Info] [4242127250] v2ray.com/core/app/dispatcher: default route for tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:52 [Info] [4242127250] v2ray.com/core/common/mux: dispatching request to tcp:mobile.pipe.aria.microsoft.com:443 2020/01/27 22:22:52 [Info] [2550422201] v2ray.com/core/app/dispatcher: default route for tcp:substrate.office.com:443 2020/01/27 22:22:52 tcp:127.0.0.1:56006 accepted tcp:substrate.office.com:443 [proxy] 2020/01/27 22:22:52 [Info] [4242127250] v2ray.com/core/common/mux: failed to write first payload > EOF 2020/01/27 22:22:52 [Info] [2550422201] v2ray.com/core/common/mux: dispatching request to tcp:substrate.office.com:443 2020/01/27 22:22:52 [Info] [2550422201] v2ray.com/core/common/mux: failed to write first payload > EOF 2020/01/27 22:22:52 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:52 tcp:127.0.0.1:56004 accepted tcp:watson.telemetry.microsoft.com:443 [proxy] 2020/01/27 22:22:52 [Info] [3599318288] v2ray.com/core/app/dispatcher: default route for tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:52 [Info] [3599318288] v2ray.com/core/common/mux: dispatching request to tcp:watson.telemetry.microsoft.com:443 2020/01/27 22:22:56 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:56 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:22:58 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:23:03 [Info] v2ray.com/core/transport/internet/websocket: creating connection to tcp:www.xxx.com:443 2020/01/27 22:23:06 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://www.xxx.com/ceshi): 404 Not Found > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed 2020/01/27 22:23:06 [Info] v2ray.com/core/common/mux: failed to read metadata > io: read/write on closed pipe 2020/01/27 22:23:07 [Info] [3599318288] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/socks: connection ends > context canceled 2020/01/27 22:23:07 [Info] [3599318288] v2ray.com/core/common/mux: failed to fetch all input > io: read/write on closed pipe
7) 请附上访问日志。在 Linux 中,日志通常在 /var/log/v2ray/access.log 文件中。
/var/log/v2ray/access.log
8) 其它相关的配置文件(如 Nginx)和相关日志。
server { root /usr/share/nginx/typecho; index index.html index.htm index.php; error_log /var/log/default1.error.log; server_name www.xxx.com; location ~ ..php(\/.)$ { include snippets/fastcgi-php.conf; set $path_info ""; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param PATH_INFO $path_info; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; include fastcgi_params; } location /ceshi { proxy_redirect off; proxy_pass http://127.0.0.1:765; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_read_timeout 300s; } if (!-e $request_filename) { rewrite ^(.)$ /index.php$1 last; }
listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/www.xxx.com/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/www.xxx.com/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
} server { if ($host = www.xxx.com) { return 301 https://$host$request_uri; } # managed by Certbot
if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } listen 80; server_name www.xxx.com; return 404; # managed by Certbot
} 9)因为博客设置了伪静态,nginx中添加
if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; }
这串代码后v2ray就无法正常识别path路径了,请问有什么办法吗
看起来你使用的是Typecho博客。我今天也遇到了相同的问题。 添加了这个规则后,"域名/伪装路径”会被重写为“域名/index.php/伪装路径”,所以V2Ray无法正确识别。 如果想要让伪装路径被伪静态规则豁免的话,只需要让-e filename的返回值为True就可以了。 所以只需要在网站根目录下,创建一个子目录,名称与伪装路径相同,即可解决问题。
提交 Issue 之前请先阅读 Issue 指引,然后回答下面的问题,谢谢。 除非特殊情况,请完整填写所有问题。不按模板发的 issue 将直接被关闭。 如果你遇到的问题不是 V2Ray 的 bug,比如你不清楚要如何配置,请使用Discussion进行讨论。
1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明) 4.22.1 2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。 使用chrome访问google 3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等) 无法与服务器中v2ray连接 4) 你期待看到的正确表现是怎样的? 可以访问Google 5) 请附上你的配置(提交 Issue 前请隐藏服务器端IP地址)。
服务器端配置:
客户端配置:
6) 请附上出错时软件输出的错误日志。在 Linux 中,日志通常在
/var/log/v2ray/error.log
文件中。客户端错误日志:
7) 请附上访问日志。在 Linux 中,日志通常在
/var/log/v2ray/access.log
文件中。8) 其它相关的配置文件(如 Nginx)和相关日志。
server { root /usr/share/nginx/typecho; index index.html index.htm index.php; error_log /var/log/default1.error.log; server_name www.xxx.com; location ~ ..php(\/.)$ { include snippets/fastcgi-php.conf; set $path_info ""; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } fastcgi_param SCRIPT_FILENAME $document_root$real_script_name; fastcgi_param SCRIPT_NAME $real_script_name; fastcgi_param PATH_INFO $path_info; fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; include fastcgi_params; } location /ceshi { proxy_redirect off; proxy_pass http://127.0.0.1:765; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_set_header Host $http_host; proxy_read_timeout 300s; } if (!-e $request_filename) { rewrite ^(.)$ /index.php$1 last; }
} server { if ($host = www.xxx.com) { return 301 https://$host$request_uri; } # managed by Certbot
if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } listen 80; server_name www.xxx.com; return 404; # managed by Certbot
} 9)因为博客设置了伪静态,nginx中添加
这串代码后v2ray就无法正常识别path路径了,请问有什么办法吗