全球主机交流论坛

标题: Sing-Box配置文件请教 [打印本页]

作者: summer365    时间: 2023-12-5 11:49
标题: Sing-Box配置文件请教
鉴于小猫咪已经完全删库跑路,想换到Sing-Box,奈何水平太菜,改了配置文件运行不了,不知道哪里有问题,有没有懂的MJJ可以指导一下

这是机场A的clash配置
  1. - name: HK1
  2. type: ss
  3. server: 1.2.3.4
  4. port:  "12345"
  5. cipher: chacha20-ietf
  6. password: 12345678910abcdef
  7. udp: true
  8. plugin: obfs
  9. plugin-opts:
  10.   mode: http
  11.   host: 1234abcdef.apple.com
复制代码


这是我改的Sing-Box代码
  1. {
  2.     "inbounds": [
  3.         {
  4.             "type": "mixed",
  5.             "listen": "::",
  6.             "listen_port": 10005
  7.         }
  8.     ],
  9.     "outbounds": [
  10.         {
  11.             "type": "shadowsocks",
  12.             "server": "1.2.3.4",
  13.             "server_port": 12345,
  14.             "method": "chacha20-ietf",
  15.             "plugin": "obfs-local",
  16.             "password": "12345678910abcdef",
  17.             "plugin_opts":"mode=http;host=1234abcdef.apple.com",
  18.             "tag": "proxyss"            

  19.         }
  20.     ]
  21. }
复制代码


这是机场B的clash配置
  1. - {
  2. name: HK1,
  3. type: vmess,
  4. server: 1.2.3.4,
  5. port:  12345,
  6. uuid: 1234-5678-abcdef,
  7. alterId: 0,
  8. cipher: auto,
  9. udp: true,
  10. network: ws
  11. }
复制代码


这是我改的Sing-Box配置
  1. {
  2.     "inbounds": [
  3.         {
  4.             "type": "mixed",
  5.             "listen": "::",
  6.             "listen_port": 10005
  7.         }
  8.     ],
  9.     "outbounds": [
  10.         {
  11.             "type": "vmess",
  12.             "server": "1.2.3.4",
  13.             "server_port": 12345,
  14.             "uuid": "1234-5678-abcdef",
  15.             "security": "auto",
  16.             "alter_id": 0,           
  17.             "tag": "proxyvmess"

  18.         }
  19.     ]
  20. }
复制代码


改完之后客户端可以启动,但是打不开Google,看命令行里提示的是:Get "https://google.com"  EOF
作者: 不知道    时间: 2023-12-5 11:51
检查网络设置。
作者: summer365    时间: 2023-12-5 11:54
不知道 发表于 2023-12-5 11:51
检查网络设置。

本机网络没问题,我的小猫咪同时在正常用,这些用法就是我用小猫咪在官方github仓库查到的
作者: 阿赖耶识    时间: 2023-12-5 11:55
协议没写全吧,少东西。
作者: summer365    时间: 2023-12-5 12:01
阿赖耶识 发表于 2023-12-5 11:55
协议没写全吧,少东西。

Vmess那个确实是没写全,但我看github官方配置文件里,没有“network: ws”这个对应的字段
SS那个应该是写全了的
不太懂为什么都不行
作者: 阿赖耶识    时间: 2023-12-5 12:11
协议肯定要写全的。
作者: wulixi8    时间: 2023-12-5 14:40
mixed加个"sniff": true试试
作者: summer365    时间: 2023-12-5 15:18
wulixi8 发表于 2023-12-5 14:40
mixed加个"sniff": true试试

大佬牛逼!
作者: hcyme    时间: 2023-12-5 15:21
op上面是一直在用,桌面的没用过,学习一下试试看
作者: 在7楼    时间: 2023-12-10 13:24
路由系统不错,可以实现clash相同的效果,就是订阅还不太行,不能将外部的订阅链接插入到自己的配置中,等大佬们把订阅实现了,就可以完全替代clash了。

(, 下载次数: 0)




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4