全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1564|回复: 6

[lighttpd] SS-Rust配合V2-plugin用QUIC协议的时候该怎么设置两个config文件

[复制链接]
发表于 2021-8-17 10:52:26 | 显示全部楼层 |阅读模式
本帖最后由 嫖啊嫖 于 2021-8-17 11:07 编辑

网上能搜到服务端的配置说明,还比较详细,但是客户端(Linux)怎么配置就完全找不到有用的说明。我搞了半天,两边都启动后看不到互相连接信息,大佬们请帮我看一下哪里有问题

服务端的config.json:

  1. {
  2.     "server": "0.0.0.0",
  3.     "server_port": 443,
  4.     "timeout":300,
  5.     "method":"none",
  6.     "password":"xxxxxxx",
  7.     "fast_open":false,
  8.     "nameserver":"1.1.1.1",
  9.     "mode":"tcp_only",
  10.     "plugin":"/etc/v2plugin/v2plugin",
  11.     "plugin_opts":"server;mode=quic;host=xyzzz.tk;cert=/root/.acme.sh/xyzzz.tk/fullchain.cer;key=/root/.acme.sh/xyzzz.tk/xyzzz.tk.key;loglevel=none"
  12. }
复制代码


运行结果是这样的:

  1. # ./ssserver -c config.json
  2. 2021-08-16T22:35:08.249808136-04:00 INFO  shadowsocks 1.11.2
  3. 2021-08-16T22:35:08.252657927-04:00 INFO  shadowsocks tcp server listening on 127.0.0.1:37589, inbound address 0.0.0.0:443
  4. 2021/08/16 22:35:08 V2Ray 4.23.2 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.3 linux/amd64)
  5. 2021/08/16 22:35:08 A unified platform for anti-**ship.
复制代码



Linux客户端的json:
  1. {
  2.   "timeout" : 60,
  3.   "server" : "xxx.xxx.xxx.xxx",
  4.   "server_port" : 443,
  5.   "password" : "xxxxxxxx",
  6.   "local_address" : "0.0.0.0",
  7.   "method" : "none",
  8.   "local_port" : 646400,
  9.   "plugin" : "/app/ssrust/v2plugin",
  10.   "plugin_opts" : "quic;host=xyzzz.tk"
  11. }
复制代码



运行起来的时候是这样的:
  1. $ ./sslocal -c config.json
  2. 2021-08-17T10:32:36.790309616+08:00 INFO  shadowsocks 1.11.2
  3. 2021-08-17T10:32:36.795800117+08:00 INFO  shadowsocks socks TCP listening on 0.0.0.0:65535
  4. 2021/08/17 10:32:36 V2Ray 4.23.2 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.3 linux/amd64)
  5. 2021/08/17 10:32:36 A unified platform for anti-**ship.
  6. 2021/08/17 10:32:36 [Warning] v2ray.com/core: V2Ray 4.23.2 started
复制代码


CF那边开启了HTTP3,SSL/TLS选的FULL,网上能找到的注意点都检查了,然后就是连不通,请问我的配置哪里有问题呢?


PS:奇怪了,把SSL/TLS选项从FULL改到Full (strict),我连接sslocal的本地端口变成了直接本地访问...这是什么鬼???
发表于 2021-8-17 10:54:19 来自手机 | 显示全部楼层
绑定 现在论坛开放了啊
 楼主| 发表于 2021-8-17 11:06:40 | 显示全部楼层
是我 发表于 2021-8-17 10:54
绑定 现在论坛开放了啊

绑定什么?不开放是什么意思?难道不可以讨论SS相关的东西吗?
发表于 2021-8-17 11:09:25 | 显示全部楼层
On your client

ss-local -c config.json -p 443 --plugin v2ray-plugin --plugin-opts "mode=quic;host=mydomain.me"

* 我的终点,与幸福同在。
 楼主| 发表于 2021-8-17 11:18:08 | 显示全部楼层
gick 发表于 2021-8-17 11:09
On your client

ss-local -c config.json -p 443 --plugin v2ray-plugin --plugin-opts "mode=quic;host=m ...

谢谢大佬指点,按照您的意思是不是config.json里面最后的两行 "plugin" 和 "plugin_opts"就不用写在文件里,运行的时候通过命令行来实现?

我还发现一个问题:客户端需要指定证书文件吗?安卓手机上V2ray-plugin的设置界面里面有个certificate for TLS verification需要填空,手机端需要的话电脑端是不是也需要?
发表于 2021-8-17 11:21:29 | 显示全部楼层
嫖啊嫖 发表于 2021-8-17 11:06
绑定什么?不开放是什么意思?难道不可以讨论SS相关的东西吗?

好像是的
发表于 2021-8-17 11:48:33 | 显示全部楼层
嫖啊嫖 发表于 2021-8-17 11:18
谢谢大佬指点,按照您的意思是不是config.json里面最后的两行 "plugin" 和 "plugin_opts"就不用写在文件 ...

不需要的吧,
要是指定了也没问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-5 17:46 , Processed in 0.060374 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表