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

[Feature request] black_hole 是否计划支持使用 tag 或者外部文件 #674

Open
gqbre opened this issue May 6, 2023 · 1 comment

Comments

@gqbre
Copy link

gqbre commented May 6, 2023

  # Cloudflare CDN 优选 IP
  - tag: cloudflare_best_ip
    type: ip_set
    args:
      ips:
        - 1.1.1.1

  # fallback 用远程服务器 sequence
  - tag: remote_sequence
    type: sequence
    args:
      - exec: $forward_remote
      # CloudFlare劫持到优选IP
      - matches:
          - resp_ip $cloudflare_ip
        exec: black_hole $cloudflare_best_ip
      - exec: accept

上面这样的配置跑不起来,使用 black_hole 1.1.1.1 就可以,此处希望是个动态值,或者有什么方案可以实现

Originally posted by @gqbre in #668

@gqbre gqbre changed the title black_hole 是否计划支持使用 tag 或者外部文件 [Feature request] black_hole 是否计划支持使用 tag 或者外部文件 May 6, 2023
@ihotte
Copy link

ihotte commented Sep 21, 2023

支持 ipset 实时查询就完美了,改动应该不会很大

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