Clash Verge 进阶配置:全栈开发与网络优化方案

这份配置专为 macOS 开发者设计,解决了 VS Code/AI 插件登录失败、公司 WiFi 认证困难以及国内访问速度慢等痛点。

核心功能

  1. 开发工具强制代理:利用 macOS 的进程名 (PROCESS-NAME) 识别,强制 Antigravity、VS Code、iTerm2 走代理,解决登录回调和插件连接问题。
  2. 公司 WiFi/认证页直连:针对 1.1.1.1 和认证探测域名 (captive.apple.com) 设置最高优先级直连,防止在星巴克或公司连接 WiFi 时无法弹出认证页。
  3. DNS 分流与防污染
    • 国内域名 -> 阿里/腾讯 DNS (CDN 友好)。
    • 国外域名 -> Google/Cloudflare DNS (防污染)。
    • 开启 fake-ip 模式,实现网页秒开。
  4. 自动更新规则集:引用 blackmatrix7 的高质量规则集,自动维护 GitHub、OpenAI、Google 等服务的最新 IP/域名库。
  5. 禁用 IPv6:防止流量泄漏和代理绕过,确保连接稳定性。

使用方法 (Merge 模式)

在 Clash Verge 中新建一个 Merge 类型的配置,粘贴以下代码。 注意: 请将代码中的 Proxy 替换为您机场订阅中实际的策略组名称(如 节点选择)。

# --- 1. 高级 DNS 配置 ---
dns:
  enable: true
  listen: :1053
  ipv6: false              # 关键:关闭 IPv6 防止漏流量和连接不稳定
  enhanced-mode: fake-ip   # 关键:Fake-IP 模式让 DNS 解析瞬间完成
  fake-ip-range: 198.18.0.1/16
  
  # 默认 DNS (解析国外)
  nameserver:
    - https://8.8.8.8/dns-query
    - https://1.1.1.1/dns-query
    
  # 备用 DNS (国内直连)
  fallback:
    - https://dns.alidns.com/dns-query
    - https://doh.pub/dns-query
  
  # 策略解析:国内域名强制走国内 DNS
  nameserver-policy:
    "geosite:cn,private": 
      - https://dns.alidns.com/dns-query
      - https://doh.pub/dns-query
    # 强制认证页域名走本地系统 DNS
    "captive.apple.com": system
    "*.local": system

# --- 2. 外部规则集定义 (自动更新) ---
rule-providers:
  github:
    type: http
    behavior: classical
    url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GitHub/GitHub.yaml"
    path: ./ruleset/github.yaml
    interval: 86400
  openai:
    type: http
    behavior: classical
    url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OpenAI/OpenAI.yaml"
    path: ./ruleset/openai.yaml
    interval: 86400
  google:
    type: http
    behavior: classical
    url: "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml"
    path: ./ruleset/google.yaml
    interval: 86400
  reject:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
    path: ./ruleset/reject.yaml
    interval: 86400

# --- 3. 规则逻辑 (优先级从上到下) ---
prepend-rules:
  # [优先级 0] 强制认证页 & 局域网直连
  - IP-CIDR,1.1.1.1/32,DIRECT,no-resolve
  - DOMAIN,captive.apple.com,DIRECT
  - DOMAIN,www.msftconnecttest.com,DIRECT
  - DOMAIN-SUFFIX,local,DIRECT
  - IP-CIDR,192.168.0.0/16,DIRECT
  - IP-CIDR,10.0.0.0/8,DIRECT
  - IP-CIDR,172.16.0.0/12,DIRECT

  # [优先级 1] 进程级强制代理 (开发工具)
  - PROCESS-NAME,Antigravity,Proxy
  - PROCESS-NAME,Code,Proxy
  - PROCESS-NAME,iTerm2,Proxy
  - PROCESS-NAME,Terminal,Proxy
  - PROCESS-NAME,git-remote-http,Proxy

  # [优先级 2] 规则集分流 (AI & 开发资源)
  - RULE-SET,github,Proxy
  - RULE-SET,openai,Proxy
  - RULE-SET,google,Proxy
  - RULE-SET,reject,REJECT

  # [优先级 3] 其他开发资源补漏
  - DOMAIN-SUFFIX,huggingface.co,Proxy
  - DOMAIN-SUFFIX,docker.com,Proxy
  - DOMAIN-SUFFIX,pypi.org,Proxy

评论

  1. 2 月前
    2025-12-27 21:40:23

    K88casino, eh? I’ve seen worse, I’ve seen better. Worth a look if you’re bored, just manage your expectations. Worth a shot if you ask me: k88casino

  2. 2 月前
    2026-1-11 2:52:02

    Yo, been checking out loab52 lately. Seems pretty solid so far. Lots of games to choose from, and the site’s easy enough to navigate. Definitely worth a look! Check it out here: loab52

  3. 2 月前
    2026-1-11 2:52:20

    B52clubtoday, eh? I’ve heard some buzz. Gonna give it a whirl this weekend. Heard the bonuses are decent. Wish me luck! Find out more: b52clubtoday

  4. 2 月前
    2026-1-11 2:52:36

    Alright, straight up, g666ios works great on my iPhone. No glitches, smooth gameplay. If you’re an iOS user, give it a go. Peep it here: g666ios

  5. 1 月前
    2026-1-25 23:59:55

    Slotomania, you get me! I spend way too much time on these slot machines, but they’re so addictive! The graphics are pretty good, and I like how there’s always something new. Worth a try if you enjoy slots. slotomania slot machines

  6. 1 月前
    2026-1-26 0:00:11

    Looking to try my luck with bankobet93. Hope this site is legit and offers some good odds. Don’t forget to gamble responsibly, guys! Wishing everyone a bit of good fortune! Click here: bankobet93

  7. 1 月前
    2026-1-26 0:00:27

    Jililive looks like a fun place to stream games and interact with players. Gonna check out some streams and maybe even try my hand at creating content. Wish me luck! Find them at: jililive

  8. 1 月前
    2026-1-29 17:09:08

    We9pcdownload was smooth and easy. Got exactly what I needed without any headaches. Good for a quick and reliable download experience. Check out we9pcdownload.

  9. 1 月前
    2026-1-29 17:09:24

    H666gameonline’s not bad, got a decent selection of online stuff. Give h666gameonline a try if you want some easy access!

  10. 1 月前
    2026-1-29 17:09:40

    9apisologin makes login easy and secure. It’s smooth sailing from there on out. Highly recommend! Go check them out! 9apisologin.

  11. 2 周前
    2026-2-21 22:20:32

    3pattino1game is my new go-to! The interface is super user-friendly and I haven’t experienced any lag. The games themselves are actually engaging, unlike some other sites I’ve tried. Give it a whirl: 3pattino1game

  12. 2 周前
    2026-2-21 22:20:48

    Alright, I’ll admit, I was skeptical at first, but lucky333game actually has some cool stuff! Good selection of games and I even managed to win a little something. Give it a shot, you might get lucky too: lucky333game

  13. 2 周前
    2026-2-21 22:21:04

    Bet92’s great for quick plays. Straight to the point, no frills experience. Worth checking out when you are bored: bet92

  14. 2 周前
    2026-2-22 11:12:43

    Yo, putting in my two cents on m66bet. Decent bonuses if you’re a new player, and the support was responsive when I had a question. Worth a look. Check them out at m66bet

  15. 2 周前
    2026-2-22 11:12:58

    Vin88top is pretty cool. Their live casino section is exciting! I was able to play a few different games. Fun times gaming here vin88top

  16. 2 周前
    2026-2-22 11:13:14

    Downloaded the xoso66appapk. App is easy to install and use! If you use your mobile to bet, this is the way to go! I found my luck there xoso66appapk

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇