跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求助sing-box分流问题
未分類
30 1 月 2023

求助sing-box分流问题

cai 大佬有话说 : 2023-1-17 16:06:58

求助sing-box分流问题

如下用sing-box配置naive节点,有多个用户
{
      "type": "naive",
      "tag": "naive-in",
      "network": "tcp",
      "listen": "::",
      "listen_port": 443,
      "tcp_fast_open": true,
      "sniff": true,
      "sniff_override_destination": false,
      "domain_strategy": "prefer_ipv4",
      "udp_timeout": 300,
      "proxy_protocol": false,
      "users": [
      {
          "username": "user1",
          "password": ""
      },
      {
          "username": "user2",
          "password": ""
      },
      {
          "username": "user3",
          "password": ""
      }
      ],
      "tls": {
      "enabled": true,
      "min_version": "1.2",
      "max_version": "1.3",
      "alpn": ["h2",
               "http/1.1"],
      "certificate_path": "/usr/local/etc/sing-box/cert.pem",
      "key_path": "/usr/local/etc/sing-box/key.pem"
      }
      },

然后我有几个不同的outbound,分别是out1,out2…..
在分流规则中,我希望不同的用户走不同的outbound,所以这么配置
      {
      "network": "tcp",
      "auth_user": "user1",
      "outbound": "out1"
      },
      {
      "network": "tcp",
      "auth_user": "user2",
      "outbound": "out2"
      },

但是失败,似乎并没有检测到不同用户。
+0800 2023-01-17 14:23:38 INFO inbound/naive: inbound connection from xxxxxx:51511
+0800 2023-01-17 14:23:38 INFO inbound/naive: inbound connection to xxxxxx:443
+0800 2023-01-17 14:23:38 INFO inbound/naive: inbound connection from xxxxx:51511
+0800 2023-01-17 14:23:38 INFO inbound/naive: inbound connection to xxxxxx:443

请问大佬们,naive到底支不支持这样分流,支持的话要怎么配置才可以呢?

cai 大佬有话说 : 2023-1-17 16:22:33

顶一下

cai 大佬有话说 : 2023-1-17 19:18:50

晚上大佬多,再顶一下

在7楼 大佬有话说 :

本来想去GitHub搜下有没有方案,结果搜到了你提的issue哈哈哈哈

cai 大佬有话说 :

在7楼 大佬有话说 : 2023-1-30 20:21
本来想去GitHub搜下有没有方案,结果搜到了你提的issue哈哈哈哈

还是提issue靠谱,是个bug,已经解决了

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具