2dust / v2rayN

A GUI client for Windows, support Xray core and v2fly core and others
https://1.2345345.xyz
GNU General Public License v3.0
67.79k stars 11.29k forks source link

[求助] 请教一下如何添加自定义naive服务器 #3547

Closed withuan closed 1 year ago

withuan commented 1 year ago

address里的json文件是什么?

是类似这种 { "listen": "socks://127.0.0.1:40981", "proxy": "https://xx23:9203fd07-e593-468b-b720-f8d5cea73e42@xyz.top:41685", }
还是含有inbounds,outbounds的json文件?

另外,这个socks端口是指什么,在主界面中我的端口显示0

image

Log如下: Xray 1.8.0 (Xray, Penetrates Everything.) Custom (go1.20.2 windows/amd64) A unified platform for anti-censorship. 2023/03/24 11:22:20 [Info] infra/conf/serial: Reading config: stdin: 2023/03/24 11:22:20 [Warning] core: Xray 1.8.0 started 2023/3/24 11:22:22 系统代理设置改变 2023/3/24 11:22:41 系统代理设置改变 2023/03/24 11:22:44 127.0.0.1:1121 accepted //suggestion.baidu.com:443 [http -> direct] 2023/03/24 11:22:44 127.0.0.1:1123 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:22:44 127.0.0.1:1124 accepted //www.gstatic.com:443 [http -> direct] 2023/03/24 11:22:46 127.0.0.1:1130 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:46 127.0.0.1:1131 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:47 127.0.0.1:1132 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:22:48 127.0.0.1:1136 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:48 127.0.0.1:1137 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:50 127.0.0.1:1139 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:50 127.0.0.1:1140 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:50 127.0.0.1:1141 accepted //play.google.com:443 [http -> proxy] 2023/03/24 11:22:50 127.0.0.1:1142 accepted //play.google.com:443 [http -> proxy] 2023/03/24 11:22:51 127.0.0.1:1149 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:22:52 127.0.0.1:1153 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:52 127.0.0.1:1154 accepted //collector-hpn.ghostery.net:443 [http -> block] 2023/03/24 11:22:53 127.0.0.1:1155 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:22:53 127.0.0.1:1158 accepted //play.google.com:443 [http -> proxy] 2023/03/24 11:22:53 127.0.0.1:1159 accepted //play.google.com:443 [http -> proxy] 2023/03/24 11:22:54 127.0.0.1:1165 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:22:55 127.0.0.1:1168 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:23:01 127.0.0.1:1173 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:23:04 127.0.0.1:1179 accepted //baidu.com:443 [http -> direct] 2023/03/24 11:23:04 127.0.0.1:1181 accepted //www.baidu.com:443 [http -> direct] 2023/03/24 11:23:04 127.0.0.1:1183 accepted //suggestion.baidu.com:443 [http -> direct] 2023/03/24 11:23:04 127.0.0.1:1185 accepted //www.google.com:443 [http -> proxy] 2023/03/24 11:23:04 127.0.0.1:1187 accepted //baidu.com:443 [http -> direct] 2023/03/24 11:23:04 127.0.0.1:1188 accepted //dss0.bdstatic.com:443 [http -> direct] 2023/03/24 11:23:04 127.0.0.1:1189 accepted //pss.bdstatic.com:443 [http -> direct] 2023/03/24 11:23:04 127.0.0.1:1192 accepted //hectorstatic.baidu.com:443 [http -> direct] 2023/03/24 11:23:05 127.0.0.1:1197 accepted //clients2.google.com:443 [http -> proxy] 2023/03/24 11:23:05 127.0.0.1:1200 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:05 127.0.0.1:1204 accepted //www.baidu.com:443 [http -> direct] 2023/03/24 11:23:05 127.0.0.1:1206 accepted //passport.baidu.com:443 [http -> direct] 2023/03/24 11:23:06 127.0.0.1:1209 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:08 127.0.0.1:1212 accepted //clients2.google.com:443 [http -> proxy] 2023/03/24 11:23:08 127.0.0.1:1217 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:08 127.0.0.1:1221 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:11 127.0.0.1:1225 accepted //clients2.google.com:443 [http -> proxy] 2023/03/24 11:23:12 127.0.0.1:1229 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:13 127.0.0.1:1233 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:14 127.0.0.1:1237 accepted //clients2.google.com:443 [http -> proxy] 2023/03/24 11:23:15 127.0.0.1:1242 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:15 127.0.0.1:1245 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/03/24 11:23:19 127.0.0.1:1249 accepted //clients2.google.com:443 [http -> proxy] 2023/03/24 11:23:19 127.0.0.1:1253 accepted //content-autofill.googleapis.com:443 [http -> proxy] 2023/3/24 11:23:19 系统代理设置改变

Google无法正常打开

2dust commented 1 year ago

自定义配置中的内容只放入对应core的配置文件,此时和v2ray的配置无关,所以不需要in out 自定义配置中的socks端口,在配置界面说明。

withuan commented 1 year ago

自定义配置中的内容只放入对应core的配置文件,此时和v2ray的配置无关,所以不需要in out 自定义配置中的socks端口,在配置界面说明。

谢谢大佬回复 ~

---- 自定义配置中的内容只放入对应core的配置文件

也就是我的服务器配置,像这样的格式吗? { "listen": "socks://127.0.0.1:40981", "proxy": "https://xx23:9203fd07-e593-468b-b720-f8d5cea73e42@xyz.top:41685/", }

用其他客户端连接上面的参数,能正常访问Google。

所以不清楚是哪里的设置有问题,此时socks为默认(不设置),出现一个警告: [Warning] [2662366372] proxy/http: failed to read response from google.com > io: read/write on closed pipe

无法访问Google

2dust commented 1 year ago

先抛开v2rayN,手工使用你的配置启动navie,是否可以? 自定义配置中的socks端口填写40981时,N会启动一个v2ray服务用来分流,出口还是navie 注意关闭log

withuan commented 1 year ago

先抛开v2rayN,手工使用你的配置启动navie,是否可以? 自定义配置中的socks端口填写40981时,N会启动一个v2ray服务用来分流,出口还是navie 注意关闭log

填写端口并关闭log后,可以正常访问了,谢谢指导 ~

blueveryday commented 10 months ago

先抛开v2rayN,手工使用你的配置启动navie,是否可以? 自定义配置中的socks端口填写40981时,N会启动一个v2ray服务用来分流,出口还是navie 注意关闭log

请问只能是40981端口才可以通过v2ray分流吗? 其实对于我们菜鸟来说,如果可以自定义协议以后,自动通过v2rayn的10809端口分流就方便了。