Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成使用机场中继的配置 #19

Open
loveqianool opened this issue May 17, 2024 · 2 comments
Open

生成使用机场中继的配置 #19

loveqianool opened this issue May 17, 2024 · 2 comments

Comments

@loveqianool
Copy link

如下将筛选出的节点加上 "detour": "落地1"

    {
      "server": "172.0.0.77",
      "server_port": 9090,
      "tag": "落地1",
      "type": "ss"
    },
    {
      "tag": "中继落地1",
      "type": "selector",
      "outbounds": [
        "include: hk|HK|港|IEPL|iepl|IPLC|iplc"
      ],
       "detour": "落地1"
    }

@xmdhs
Copy link
Owner

xmdhs commented May 17, 2024

不明白你的意思,xmdhs/clash2sfa 不是可以这样做吗

@loveqianool
Copy link
Author

不明白你的意思,xmdhs/clash2sfa 不是可以这样做吗

现在上面的配置会生成

        {
            "outbounds": [
                "hk1"
            ],
            "tag": "中继落地1",
            "type": "selector",
            "detour": "落地1"
        },

而 sing-box 的 selector 不支持 detour。
我是想用机场的节点进行链式代理。
如上面筛选出了 hk1 和 hk2,应该先生成两个 落地1 的配置,在里面插入 "detour": "hk1""detour": "hk2",并修改 tag。

    {
      "server": "172.0.0.77",
      "server_port": 9090,
      "tag": "hk1 - 落地1",
      "type": "ss",
      "detour": "hk1"
    },
    {
      "server": "172.0.0.77",
      "server_port": 9090,
      "tag": "hk2 - 落地1",
      "type": "ss",
      "detour": "hk2"
    },

然后再使用 修改的 tag 生成 selector。

    {
      "tag": "中继落地1",
      "type": "selector",
      "outbounds": [
        "hk1 - 落地1",
        "hk2 - 落地1",
      ]
    }

这样我在 中继落地1 这个组中选择 hk1 - 落地1,流量会先走 机场的 hk1 再走到我的 落地1,实现使用机场的代理进行流量中转。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants