Clash Verge Rev Config Example (Multi‑Subscription Merge)

Based on multi‑subscription merging, covering providers, global config, TUN, DNS, proxy groups and rules—plus verification and optimization tips.

Extended Notes & Best Practices

Multi‑subscription merge arranges nodes/rules from different sources in a single config: fetch/cache node lists via proxy-providers, then organize outbound strategies with proxy-groups (select/url‑test and grouping). To avoid name conflicts and maintenance pain, define prefixes (e.g., p1 | / P2 |) per provider and set a reasonable auto‑update interval (typical 21600s). Global config includes mixed‑port, log levels, IPv6, geodata and auto‑updates; pairing geodata-loader with geox-url sources provides comprehensive routing. In rule mode, keep China sites direct and split common overseas/streaming services for better experience.

TUN captures OS traffic and redirects to the local core—ideal for apps that ignore system proxy or require UDP. When first enabling, allow the verge‑mihomo core through firewall/security software; consider service mode to start TUN without admin. For DNS, enable fake‑ip enhanced mode and mix DoH with system DNS for speed, privacy and anti‑pollution; include LAN suffixes, time sync and common system domains in fake‑ip‑filter to avoid breaking basics. For groups, url‑test auto‑selects better nodes; manual select is fallback. Add icons for readability and split groups by scenario (downloads, heavy traffic, streaming, socials, dev) to improve operation.

Verify subscriptions via PowerShell or curl with UA—returns should be Mihomo YAML. Errors are often indentation/quotes/list formatting—fix and retry. Evaluate by scenario: web/socials focus on latency/stability; streaming on bandwidth/time‑of‑day stability (1080P ≈ 5 Mbps; Netflix 4K ≈ 15 Mbps). For UWP apps, enable loopback in the UWP tool; for startup issues, toggle auto‑start under admin/non‑admin to clean residual entries. Recommended approach: rule mode as default, combine auto/manual groups, merge subscriptions with prefixes, enable TUN prudently and optimize DNS—iterating based on real usage.

Subscription Providers

Arrange multiple subscriptions above, use prefixes to distinguish node sources, and set auto‑update interval.

proxy-providers:
  1.provider1:
    type: http
    path: ./proxy_provider/p1.yaml
    url: https://verge.dginv.click/#/register?code=oaxsAGo6
    interval: 21600
    override:
      additional-prefix: "p1 |"
  2.subscribe:
    type: http
    path: ./proxy_provider/p2.yaml
    url: https://verge.dginv.click/#/register?code=oaxsAGo6
    interval: 21600
    override:
      additional-prefix: "P2 |"
  • Add prefixes per provider to help filtering and identification.
  • Recommend ~6‑hour updates; adjust to your usage.
Icon
可为策略组设置图标以提升可读性
icon: https://fastly.jsdelivr.net/gh/clash-verge-rev/.../icons/google.svg

Global Config Example

mixed-port: 7897
allow-lan: true
mode: rule
global-ua: clash-verge/v2.2.3
geodata-mode: true
geodata-loader: standard
unified-delay: true
log-level: warning
ipv6: true
external-controller: 127.0.0.1:9090
tcp-concurrent: true
enable-process: true
find-process-mode: strict
global-client-fingerprint: chrome
keep-alive-interval: 15
geo-auto-update: true
geo-update-interval: 24
geox-url:
  geoip: "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geoip.dat"
  geosite: "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/geosite.dat"
  mmdb: "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/country.mmdb"
  asn: "https://cdn.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@release/GeoLite2-ASN.mmdb"
profile:
  store-selected: true
  store-fake-ip: true

TUN Settings

tun:
  enable: false
  device: ClashVergeREV
  stack: mixed
  mtu: 1500
  dns-hijack:
    - "any:53"
    - "tcp://any:53"
  auto-route: true
  auto-detect-interface: true
  • On first enable, allow the core through firewall.
  • Service mode can start TUN without admin rights.

DNS Configuration

dns:
  enable: true
  ipv6: true
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  use-hosts: true
  nameserver:
    - https://doh.pub/dns-query
    - https://dns.alidns.com/dns-query
    - 114.114.114.114
    - system
  fake-ip-filter:
    - "*"
    - "+.lan"
    - "connect.rom.miui.com"
    - "+.miwifi.com"
    - "+.ntp.org"
    - "+.u-tools.cn"
    - "+.mediatek.com"
    - "+.cfprefer1.xyz"
    - "+.wetab.link"
    - "+.tyasaka.xyz"
    - "localhost.ptlogin2.qq.com"
    - "localhost.sec.qq.com"
    - "localhost.work.weixin.qq.com"
    - "+.weixin.qq.com"
    - "+.wechat.com"
    - "time.windows.com"
    - "+.msftconnecttest.com"
    - "+.msftncsi.com"
    - "+.wpsmail.net"
    - "+.henzanapp.com"
    - "+.pconline.com.cn"

Proxy Groups & Rules

proxy-groups:
  - name: 手动选择
    type: select
    proxies: [DIRECT,自动选择]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    max-failed-times: 5
    include-all: true
  - name: 自动选择
    type: url-test
    proxies: [DIRECT]
    url: "https://www.gstatic.com/generate_204"
    interval: 300
    max-failed-times: 5
    include-all: true
rules:
  - GEOSITE,CN,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,手动选择
Group Icon
Add icons to common groups for readability
  • Manual select is fallback; auto‑select + url‑test picks better nodes.
  • Rules: direct for CN sites; others via manual/auto select.

Quick Subscription Verification

PowerShell
$sub='paste subscription url in single quotes'
Invoke-RestMethod -UserAgent 'clash-verge/v2.4.0' -Method get -FollowRelLink -uri $sub
curl
curl -A clash-verge/v2.4.0 'paste-subscription-url'

Usage Tips & Optimization

  • Prefixes help grouping/filtering nodes—reduce confusion.
  • In rule mode, combine CN direct with streaming splits.
  • For YAML errors, check indentation, quotes and lists.
  • Peak‑hour bandwidth is more telling; streaming depends on bandwidth.
  • Enable TUN for apps that ignore system proxy.
  • Add icons to key groups for readability and efficiency.