# Clash-Verge Configuration File (clasy.yaml)
# Generated with SOCKS5 Proxy Selected

# --- General Settings ---
mixed-port: 7890 # HTTP and SOCKS5 proxy port
socks5-port: 7891 # SOCKS5 proxy port (optional, if you want a dedicated SOCKS5 port)
redir-port: 7892 # Redirect port (for transparent proxy, usually not needed for basic use)
allow-lan: true # Allow connections from LAN
mode: Rule # Proxy mode: Rule, Global, Direct
log-level: info # Log level: silent, info, warning, error, debug
external-controller: "127.0.0.1:9090" # External controller port (for web UI and API)
external-ui: folder # Path to external UI folder (e.g., 'ui')

# --- Proxies ---
proxies:
  - name: "SOCKS5-Proxy" # Name of your SOCKS5 proxy (you can change this)
    type: socks5 # Proxy type: socks5
    server: "192.168.124.209" # Replace with your SOCKS5 server address (e.g., "192.168.1.100" or "example.com")
    port: 7890 # Replace with your SOCKS5 server port (e.g., 1080, 10808)
    # skip-cert-verify: false # Optional: Set to true to skip certificate verification (usually not needed for SOCKS5)

# --- Proxy Groups ---
proxy-groups:
  - name: "Proxy" # Name of your main proxy group (you can change this)
    type: select # Group type: select (manual selection), url-test, fallback, load-balance, relay
    proxies:
      - "SOCKS5-Proxy" # Select the SOCKS5 proxy we defined above

# --- Rules ---
rules:
  - DOMAIN-SUFFIX,google.com,Proxy
  - DOMAIN-SUFFIX,apple.com,Proxy
  - DOMAIN-SUFFIX,*.apple.com,Proxy
  - DOMAIN-SUFFIX,leafabs.faith,DIRECT
  - DOMAIN-SUFFIX,*.sailforce.online,DIRECT
  - DOMAIN-SUFFIX,pi.online,DIRECT
  - DOMAIN-SUFFIX,github.com,Proxy
  - DOMAIN-KEYWORD,google,Proxy
  - DOMAIN-KEYWORD,apple,Proxy
  - DOMAIN-KEYWORD,github,Proxy
  - DOMAIN,google.com,Proxy
  - DOMAIN-SUFFIX,ad.com,REJECT
  - SRC-IP-CIDR,192.168.1.201/32,DIRECT
  # optional param "no-resolve" for IP rules (GEOIP, IP-CIDR, IP-CIDR6)
  - IP-CIDR,127.0.0.0/8,DIRECT
  - IP-CIDR,192.168.124.0/16,DIRECT
  - IP-CIDR,10.242.0.0/32,DIRECT
  - IP-CIDR,192.168.101.0/32,DIRECT
  - IP-CIDR,98.142.138.166/32,DIRECT
  - IP-CIDR,10.242.53.189/32,DIRECT
  - IP-CIDR,149.28.193.110/32,DIRECT
  - IP-CIDR,10.242.70.17/32,DIRECT
  - GEOIP,CN,DIRECT
  - SRC-PORT,7777,DIRECT
  - MATCH,Proxy
# --- DNS Settings (Optional, Configure if needed) ---
# dns:
#   enable: true
#   listen: 0.0.0.0:53
#   enhanced-mode: redir-host
#   nameserver:
#     - 'https://doh.pub/dns-query'
#     - 'tls://dns.google'
#   fallback:
#     - 'tcp://1.1.1.1:53'
#     - 'tcp://8.8.8.8:53'
#   fallback-filter:
#     geoip: true
#     geoip-code: CN
#     ipcidr:
#       - 10.0.0.0/8
#       - 127.0.0.0/8
#       - 172.16.0.0/12
#       - 192.168.0.0/16

# --- Rule Providers (Optional, for more complex rule sets) ---
# rule-providers:
#   example-rules:
#     type: http
#     url: 'https://example.com/rules.txt'
#     path: ./rules/example.yaml
#     format: text
#     interval: 86400
#     behavior: domain

# --- URL Test (Optional, for automatic proxy selection based on latency) ---
# url-test:
#   url: 'http://www.gstatic.com/generate_204'
#   interval: 300

# --- GeoIP Database (Optional, if you use GEOIP rules) ---
# geoip-db:
#   path: ./GeoLite2-Country.mmdb

# --- Script (Optional, for custom JavaScript rules) ---
# script:
#   enable: false
#   path: ./script.js

