🥇 Create Provider Clash Config for CN

This commit is contained in:
Mirei 2023-04-03 02:44:30 +03:30 committed by GitHub
parent 8cdc0c331d
commit d02b86d331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,136 @@
## COUNTRY: CHINA ##
## IMPORTANT: Import the appropriate config URL for your country of residence;-
# e.g. "provider.yml" if in Iran, instead of manually adjusting it,-
# to ensure bypassing local services while still receiving updates for the config!
## مهم: آدرس URL کانفیگ مناسب با کشور خود را به نرم افزار وارد کنید؛ مثلا "provider.yml" برای ایران،-
# بجای دستی تنظیم کردن ، تا علاوه بر پروکسی نشدن سرویس های محلی، برای کانفیگ آپدیت دریافت کنید!
## In case of modifications, read comments carefully! ##
## For Clash FOSS -- Can also be used with Clash.Meta but `provider-meta-cn.yml` is more suitable.
## Android client is available on:
# Github: https://github.com/Kr328/ClashForAndroid/releases/latest
# Playstore: https://play.google.com/store/apps/details?id=com.github.kr328.clash
# Izzyondroid: https://apt.izzysoft.de/fdroid/index/apk/com.github.kr328.clash.foss
mixed-port: 7890
allow-lan: true
mode: rule
log-level: error ## silent/error/warning/info/debug
ipv6: true
external-controller: 127.0.0.1:9090
profile:
store-selected: false ## It's better to default to "auto" every time it restarts.
store-fake-ip: true
#tun:
#enable: true
#stack: system ## system/gvisor
#dns-hijack:
#- 0.0.0.0:53
#auto-detect-interface: true
#auto-route: true
dns:
enable: true
#listen: 127.0.0.1:53 ## Or 0.0.0.0:53 for LAN.
ipv6: true
default-nameserver:
- '127.0.0.1'
- '114.114.114.114'
enhanced-mode: fake-ip
use-hosts: true
nameserver:
- '127.0.0.1'
- '114.114.114.114'
fallback:
- "https://1.1.1.1/dns-query"
- "https://8.8.8.8/dns-query"
- "https://9.9.9.9/dns-query"
- "https://rubyfish.cn/dns-query"
fallback-filter:
geoip: false
ipcidr:
- '0.0.0.0/8'
- '10.0.0.0/8'
- '100.64.0.0/10'
- '127.0.0.0/8'
- '169.254.0.0/16'
- '172.16.0.0/12'
- '192.0.0.0/24'
- '192.0.2.0/24'
- '192.88.99.0/24'
- '192.168.0.0/16'
- '198.18.0.0/15'
- '198.51.100.0/24'
- '203.0.113.0/24'
- '224.0.0.0/3'
- '240.0.0.0/4'
- '::1/128'
- '64:ff9b:1::/48'
- 'fc00::/7'
- 'fe80::/10'
proxy-groups:
- name: global
type: select
proxies:
- auto
- manual
- name: manual
type: select
use:
- local
- airports
- aggregator
- name: auto
type: url-test
#filter: "🏁"
use:
- local
- airports
- aggregator
proxy-providers:
local:
type: file
path: ./providers/local.yaml ## << Put your custom servers here.
health-check:
enable: true
interval: 3600
lazy: true
url: "http://cp.cloudflare.com/"
#url: "http://detectportal.firefox.com/success.txt"
airports:
type: http
url: "https://cdn.jsdelivr.net/gh/mahdibland/V2RayAggregator@master/sub/airport_merge_yaml.yml"
interval: 86400
path: ./providers/airports.yaml
health-check:
enable: true
interval: 3600
lazy: true
url: "http://cp.cloudflare.com/"
#url: "http://detectportal.firefox.com/success.txt"
aggregator:
type: http
url: "https://cdn.jsdelivr.net/gh/mahdibland/V2RayAggregator@master/sub/sub_merge_yaml.yml"
interval: 86400
path: ./providers/aggregator.yaml
health-check:
enable: true
interval: 3600
lazy: true
url: "http://cp.cloudflare.com/"
#url: "http://detectportal.firefox.com/success.txt"
rules:
- GEOIP,private,DIRECT,no-resolve ## Loopback and LAN IPs
- GEOIP,CN,DIRECT ## Check "provider.yml" for Iran's config.
- MATCH,global