Last active
November 8, 2023 03:10
-
-
Save d0zingcat/f2eab7420ce41f1b031e65e04fd71dbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% if request.target == "clash" or request.target == "clashr" %} | |
| port: {{ default(global.clash.http_port, "7890") }} | |
| socks-port: {{ default(global.clash.socks_port, "7891") }} | |
| allow-lan: {{ default(global.clash.allow_lan, "true") }} | |
| mode: Rule | |
| log-level: {{ default(global.clash.log_level, "info") }} | |
| external-controller: :9090 | |
| {% if default(request.clash.dns, "") == "1" %} | |
| dns: | |
| enable: true | |
| listen: 0.0.0.0:7874 | |
| ipv6: false | |
| {% endif %} | |
| {% if default(request.clash.fakeip, "") == "1" %} | |
| enhanced-mode: fake-ip | |
| fake-ip-range: 198.18.0.1/16 | |
| nameserver: | |
| - tls://dns.rubyfish.cn:853 | |
| - https://doh.pub/dns-query | |
| - https://dns.alidns.com/dns-query | |
| #- https://223.5.5.5/dns-query | |
| #- 114.114.114.114 | |
| #- 119.29.29.29 | |
| #- 223.5.5.5 | |
| fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN | |
| - https://1.1.1.1/dns-query # dns over https | |
| - https://public.dns.iij.jp/dns-query | |
| #- tcp://1.1.1.1:53 | |
| #- https://1.0.0.1/dns-query | |
| #- https://dns.twnic.tw/dns-query | |
| #- tcp://208.67.222.222:443 | |
| #- tls://dns.google | |
| fallback-filter: | |
| geoip: true # default | |
| ipcidr: # ips in these subnets will be considered polluted | |
| - 240.0.0.0/4 | |
| default-nameserver: | |
| - 114.114.114.114 | |
| - 119.29.29.29 | |
| fake-ip-filter: | |
| - "*.lan" | |
| - "*.localdomain" | |
| - "*.example" | |
| - "*.invalid" | |
| - "*.localhost" | |
| - "*.test" | |
| - "*.local" | |
| - "*.home.arpa" | |
| - time.*.com | |
| - time.*.gov | |
| - time.*.edu.cn | |
| - time.*.apple.com | |
| - time1.*.com | |
| - time2.*.com | |
| - time3.*.com | |
| - time4.*.com | |
| - time5.*.com | |
| - time6.*.com | |
| - time7.*.com | |
| - ntp.*.com | |
| - ntp1.*.com | |
| - ntp2.*.com | |
| - ntp3.*.com | |
| - ntp4.*.com | |
| - ntp5.*.com | |
| - ntp6.*.com | |
| - ntp7.*.com | |
| - "*.time.edu.cn" | |
| - "*.ntp.org.cn" | |
| - "+.pool.ntp.org" | |
| - time1.cloud.tencent.com | |
| - music.163.com | |
| - "*.music.163.com" | |
| - "*.126.net" | |
| - musicapi.taihe.com | |
| - music.taihe.com | |
| - songsearch.kugou.com | |
| - trackercdn.kugou.com | |
| - "*.kuwo.cn" | |
| - api-jooxtt.sanook.com | |
| - api.joox.com | |
| - joox.com | |
| - "+.y.qq.com" | |
| - streamoc.music.tc.qq.com | |
| - mobileoc.music.tc.qq.com | |
| - isure.stream.qqmusic.qq.com | |
| - dl.stream.qqmusic.qq.com | |
| - aqqmusic.tc.qq.com | |
| - amobile.music.tc.qq.com | |
| - "*.xiami.com" | |
| - "*.music.migu.cn" | |
| - music.migu.cn | |
| - "+.msftconnecttest.com" | |
| - "+.msftncsi.com" | |
| - msftconnecttest.com | |
| - msftncsi.com | |
| - localhost.ptlogin2.qq.com | |
| - localhost.sec.qq.com | |
| - "+.srv.nintendo.net" | |
| - "+.stun.playstation.net" | |
| - xbox.*.microsoft.com | |
| - xnotify.xboxlive.com | |
| - "+.battlenet.com.cn" | |
| - "+.wotgame.cn" | |
| - "+.wggames.cn" | |
| - "+.wowsgame.cn" | |
| - "+.wargaming.net" | |
| - proxy.golang.org | |
| - stun.*.* | |
| - stun.*.*.* | |
| - "+.stun.*.*" | |
| - "+.stun.*.*.*" | |
| - "+.stun.*.*.*.*" | |
| - heartbeat.belkin.com | |
| - "*.linksys.com" | |
| - "*.linksyssmartwifi.com" | |
| - "*.router.asus.com" | |
| - mesu.apple.com | |
| - swscan.apple.com | |
| - swquery.apple.com | |
| - swdownload.apple.com | |
| - swcdn.apple.com | |
| - swdist.apple.com | |
| - lens.l.google.com | |
| - stun.l.google.com | |
| - "+.nflxvideo.net" | |
| - "*.square-enix.com" | |
| - "*.finalfantasyxiv.com" | |
| - "*.ffxiv.com" | |
| - "*.ff14.sdo.com" | |
| - ff.dorado.sdo.com | |
| - "*.mcdn.bilivideo.cn" | |
| - "+.media.dssott.com" | |
| - controlplane.tailscale.com | |
| - log.tailscale.io | |
| - "*.binance.com" | |
| - "*.binance.info" | |
| - "+.cmbimg.com" | |
| - "+.cmbchina.com" | |
| - "*.inkiwike.com" | |
| - "+.h.d0zingcat.xyz" | |
| - derp-sh.d0zingcat.xyz | |
| - "+.bosc.cn" | |
| {% endif %} | |
| {% if local.clash.new_field_name == "true" %} | |
| proxies: ~ | |
| proxy-groups: ~ | |
| rules: ~ | |
| {% else %} | |
| Proxy: ~ | |
| Proxy Group: ~ | |
| Rule: ~ | |
| {% endif %} | |
| {% endif %} | |
| {% if request.target == "surge" %} | |
| [General] | |
| loglevel = notify | |
| bypass-system = true | |
| skip-proxy = 127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,100.64.0.0/10,localhost,*.local,e.crashlytics.com,captive.apple.com,::ffff:0:0:0:0/1,::ffff:128:0:0:0/1 | |
| #DNS设置或根据自己网络情况进行相应设置 | |
| bypass-tun = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12 | |
| dns-server = 119.29.29.29,223.5.5.5 | |
| [Script] | |
| http-request https?:\/\/.*\.iqiyi\.com\/.*authcookie= script-path=https://raw.githubusercontent.com/NobyDa/Script/master/iQIYI-DailyBonus/iQIYI.js | |
| {% endif %} | |
| {% if request.target == "loon" %} | |
| [General] | |
| skip-proxy = 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,localhost,*.local,e.crashlynatics.com | |
| bypass-tun = 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/4,255.255.255.255/32 | |
| dns-server = system,119.29.29.29,223.5.5.5 | |
| allow-udp-proxy = false | |
| host = 127.0.0.1 | |
| [Proxy] | |
| [Remote Proxy] | |
| [Proxy Group] | |
| [Rule] | |
| [Remote Rule] | |
| [URL Rewrite] | |
| enable = true | |
| ^https?:\/\/(www.)?(g|google)\.cn https://www.google.com 302 | |
| [Remote Rewrite] | |
| https://raw.githubusercontent.com/Loon0x00/LoonExampleConfig/master/Rewrite/AutoRewrite_Example.list,auto | |
| [MITM] | |
| hostname = *.example.com,*.sample.com | |
| enable = true | |
| skip-server-cert-verify = true | |
| #ca-p12 = | |
| #ca-passphrase = | |
| {% endif %} | |
| {% if request.target == "quan" %} | |
| [SERVER] | |
| [SOURCE] | |
| [BACKUP-SERVER] | |
| [SUSPEND-SSID] | |
| [POLICY] | |
| [DNS] | |
| 1.1.1.1 | |
| [REWRITE] | |
| [URL-REJECTION] | |
| [TCP] | |
| [GLOBAL] | |
| [HOST] | |
| [STATE] | |
| STATE,AUTO | |
| [MITM] | |
| {% endif %} | |
| {% if request.target == "quanx" %} | |
| [general] | |
| excluded_routes=192.168.0.0/16, 172.16.0.0/12, 100.64.0.0/10, 10.0.0.0/8 | |
| geo_location_checker=http://ip-api.com/json/?lang=zh-CN, https://github.com/KOP-XIAO/QuantumultX/raw/master/Scripts/IP_API.js | |
| network_check_url=http://www.baidu.com/ | |
| server_check_url=http://www.gstatic.com/generate_204 | |
| [dns] | |
| server=119.29.29.29 | |
| server=223.5.5.5 | |
| server=1.0.0.1 | |
| server=8.8.8.8 | |
| [policy] | |
| static=♻️ 自动选择, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Auto.png | |
| static=🔰 节点选择, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Proxy.png | |
| static=🌍 国外媒体, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/GlobalMedia.png | |
| static=🌏 国内媒体, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/DomesticMedia.png | |
| static=Ⓜ️ 微软服务, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Microsoft.png | |
| static=📲 电报信息, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Telegram.png | |
| static=🍎 苹果服务, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Apple.png | |
| static=🎯 全球直连, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Direct.png | |
| static=🛑 全球拦截, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Advertising.png | |
| static=🐟 漏网之鱼, direct, img-url=https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Final.png | |
| [server_remote] | |
| [filter_remote] | |
| [rewrite_remote] | |
| [server_local] | |
| [filter_local] | |
| [rewrite_local] | |
| [mitm] | |
| {% endif %} | |
| {% if request.target == "mellow" %} | |
| [Endpoint] | |
| DIRECT, builtin, freedom, domainStrategy=UseIP | |
| REJECT, builtin, blackhole | |
| Dns-Out, builtin, dns | |
| [Routing] | |
| domainStrategy = IPIfNonMatch | |
| [Dns] | |
| hijack = Dns-Out | |
| clientIp = 114.114.114.114 | |
| [DnsServer] | |
| localhost | |
| 223.5.5.5 | |
| 8.8.8.8, 53, Remote | |
| 8.8.4.4 | |
| [DnsRule] | |
| DOMAIN-KEYWORD, geosite:geolocation-!cn, Remote | |
| DOMAIN-SUFFIX, google.com, Remote | |
| [DnsHost] | |
| doubleclick.net = 127.0.0.1 | |
| [Log] | |
| loglevel = warning | |
| {% endif %} | |
| {% if request.target == "surfboard" %} | |
| [General] | |
| loglevel = notify | |
| interface = 127.0.0.1 | |
| skip-proxy = 127.0.0.1, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 100.64.0.0/10, localhost, *.local | |
| ipv6 = false | |
| dns-server = system, 223.5.5.5 | |
| exclude-simple-hostnames = true | |
| enhanced-mode-by-rule = true | |
| {% endif %} | |
| {% if request.target == "sssub" %} | |
| { | |
| "route": "bypass-lan-china", | |
| "remote_dns": "dns.google", | |
| "ipv6": false, | |
| "metered": false, | |
| "proxy_apps": { | |
| "enabled": false, | |
| "bypass": true, | |
| "android_list": [ | |
| "com.eg.android.AlipayGphone", | |
| "com.wudaokou.hippo", | |
| "com.zhihu.android" | |
| ] | |
| }, | |
| "udpdns": false | |
| } | |
| {% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment