mixed-port: 7897
allow-lan: false
mode: rule
log-level: warning
ipv6: false

profile:
  store-selected: true
  store-fake-ip: true

dns:
  enable: true
  ipv6: false
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  default-nameserver:
    - 114.114.115.115
    - 119.28.28.28
    - 223.6.6.6
    - system
  nameserver:
    - https://223.5.5.5/dns-query
    - https://223.6.6.6/dns-query
    - https://1.12.12.12/dns-query
    - https://120.53.53.53/dns-query

proxy-providers:
  SELF:
    type: http
    url: "https://1sub.pksss.cn/share/sub/%E8%87%AA%E5%BB%BA%E4%B8%93%E4%BA%AB?token=kfXlri8L1LphI_VQRPmVH"
    interval: 600
    path: "./providers/SELF.yaml"
    health-check:
      enable: true
      url: "https://cloudflare.com/cdn-cgi/trace"
      interval: 300

proxy-groups:
  - name: 自建节点
    type: select
    use: [SELF]

rule-providers:
  # 只保留国内和局域网规则即可
  China:
    type: http
    behavior: classical
    url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/China/China.yaml"
    path: "./ruleset/China.yaml"
    interval: 86400
  Lan:
    type: http
    behavior: classical
    url: "https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/Lan/Lan.yaml"
    path: "./ruleset/Lan.yaml"
    interval: 86400

rules:
  - RULE-SET,Lan,DIRECT
  - RULE-SET,China,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,自建节点