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

[疑问]如何生成白名单模式配置? #41

Open
lvxj11 opened this issue Jan 5, 2025 · 0 comments
Open

[疑问]如何生成白名单模式配置? #41

lvxj11 opened this issue Jan 5, 2025 · 0 comments

Comments

@lvxj11
Copy link

lvxj11 commented Jan 5, 2025

已根据文档编写json并顺利导出sing-box配置。很喜欢多模板配合自动化生成不同配置文件的功能。
目前有如下疑问望解惑

  1. 目的:只代理确定目标,其他由直连兜底的配置。没有找到配置"final"的选项。
  2. 如何给默认dns服务器添加选项,比如"address_resolver""detour"
  3. 目的:使用"extra_groups"生成扩展节点组时不包含订阅自动生成的选择组或自动组。
# 例如在订阅配置`"generate_selector": true,`会生成“订阅1”节点组。使用如下配置扩展组:
"extra_groups": [
                {
                    "tag": "香港自动",
                    "type": "urltest",
                    "filter": "🇭🇰|HK|hk|香港|港|HongKong",
                    "custom_urltest": {
                        "outbounds": null,
                        "url": "http://www.gstatic.com/generate_204",
                        "interval": "10m0s",
                        "tolerance": 50
                    }
                }
]
# 会生成如下节点组
{
      "type": "urltest",
      "tag": "香港自动",
      "outbounds": [
        "订阅1",
        "香港 01",
        "香港 02"
      ],
      "url": "http://www.gstatic.com/generate_204",
      "interval": "10m0s",
      "tolerance": 50
}
# 如何避免自动生成的订阅组添加到扩展筛选组中
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

1 participant