Skip to content

Instantly share code, notes, and snippets.

@recall704
Created September 4, 2022 10:27
Show Gist options
  • Save recall704/e838903df069e9f5d5488c1e5883f78d to your computer and use it in GitHub Desktop.
Save recall704/e838903df069e9f5d5488c1e5883f78d to your computer and use it in GitHub Desktop.
---
mixed-port: 7890
mode: rule
ipv6: false
log-level: info
allow-lan: false
external-controller: "127.0.0.1:9090"
secret: ""
tun:
enable: true
stack: gvisor
dns-hijack:
- "198.18.0.2:53"
auto-route: true
auto-detect-interface: true
dns:
enable: true
enhanced-mode: fake-ip
nameserver:
- 114.114.114.114
- 223.5.5.5
- 8.8.8.8
fallback: []
fake-ip-filter:
- dns.msftncsi.com
- www.msftncsi.com
- www.msftconnecttest.com
proxy-providers:
subscribe:
type: http
path: "./subscribe.yaml"
url: "https://aabbcc.com/link/ddeeff?clash=1"
interval: 0
health-check:
enable: true
url: "http://cp.cloudflare.com"
interval: 300
proxy-groups:
- name: DefaultProxy
type: select
use:
- subscribe
- name: URLTest
type: url-test
use:
- subscribe
url: "http://cp.cloudflare.com"
interval: 300
- name: Fallback
type: fallback
use:
- subscribe
url: "http://cp.cloudflare.com"
interval: 300
- name: Proxy
type: select
proxies:
- DefaultProxy
- URLTest
- Fallback
- name: Final
type: select
proxies:
- Proxy
- DIRECT
- URLTest
- Fallback
- name: China
type: select
proxies:
- DIRECT
- Proxy
- name: Reject
type: select
proxies:
- REJECT
- DIRECT
- Proxy
rules:
- "GEOSITE,category-ads-all,Reject"
- "GEOSITE,icloud@cn,China"
- "GEOSITE,apple@cn,China"
- "GEOSITE,apple-cn,China"
- "GEOSITE,microsoft@cn,China"
- "GEOSITE,facebook,Proxy"
- "GEOSITE,youtube,Proxy"
- "GEOSITE,geolocation-cn,China"
- "GEOSITE,geolocation-!cn,Proxy"
- "GEOIP,telegram,Proxy,no-resolve"
- "GEOIP,private,China,no-resolve"
- "GEOIP,cn,China"
- "MATCH,Final"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment