# 机场订阅 proxy-providers: Airport1: url: "此处粘贴机场订阅链接地址(clash订阅链接)" type: http interval: 86400 health-check: enable: true url: https://www.gstatic.com/generate_204 interval: 300 proxy: 直连 Airport2: url: "此处粘贴机场订阅链接地址(clash订阅链接)" type: http interval: 86400 health-check: enable: true url: https://www.gstatic.com/generate_204 interval: 300 proxy: 🚀 默认代理 # 节点信息 proxies: - {name: 直连, type: direct} # 全局配置 port: 7890 socks-port: 7891 redir-port: 7892 mixed-port: 7893 tproxy-port: 7894 allow-lan: true bind-address: "*" ipv6: false unified-delay: true tcp-concurrent: true log-level: warning find-process-mode: 'off' # interface-name: en0 global-client-fingerprint: chrome keep-alive-idle: 600 keep-alive-interval: 15 disable-keep-alive: false profile: store-selected: true store-fake-ip: true # 控制面板 external-controller: 0.0.0.0:9090 secret: "" external-ui: "/etc/nikki/run" external-ui-name: zashboard external-ui-url: "https://github.com/Zephyruso/zashboard/archive/refs/heads/gh-pages.zip" # 嗅探 sniffer: enable: true sniff: HTTP: ports: [80, 8080-8880] override-destination: true TLS: ports: [443, 8443] QUIC: ports: [443, 8443] force-domain: - "+.v2ex.com" skip-domain: - "+.baidu.com" # 入站 tun: enable: true # system/gvisor/mixed stack: mixed dns-hijack: ["any:53", "tcp://any:53"] auto-route: true auto-redirect: true auto-detect-interface: true # DNS模块 dns: enable: true listen: 0.0.0.0:1053 ipv6: false respect-rules: true enhanced-mode: fake-ip fake-ip-range: 28.0.0.1/8 fake-ip-filter-mode: blacklist fake-ip-filter: - "rule-set:private_domain,cn_domain,bank_cn_domain,ai_cn_domain,xiaomi_domain,media_cn_domain,apple_cn_domain,steam_cn_domain" - "+.msftconnecttest.com" - "+.msftncsi.com" - "time.*.com" default-nameserver: - 223.5.5.5 proxy-server-nameserver: - https://223.5.5.5/dns-query # namesever尽量用运营商提供的DNS nameserver: - 223.5.5.5 - 119.29.29.29 # 出站策略 # 注意锚点必须放在引用的上方,可以集中把锚点全部放yaml的顶部。 pr: &pr {type: select, proxies: [🚀 默认代理, ♻️ 自动选择, 🇭🇰 香港自动, 🇹🇼 台湾自动, 🇸🇬 新加坡自动, 🇰🇷 韩国自动, 🇯🇵 日本自动, 🇺🇲 美国自动, 🌍 其他国家, 🌐 所有节点, 直连]} proxy-groups: - {name: 🚀 默认代理, type: select, proxies: [ ♻️ 自动选择, 🇭🇰 香港自动, 🇹🇼 台湾自动, 🇸🇬 新加坡自动, 🇰🇷 韩国自动, 🇯🇵 日本自动, 🇺🇲 美国自动, 🌍 其他国家 , 🌐 所有节点, 直连]} - {name: ♻️ 自动选择, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "^((?!(直连)).)*$"} - {name: YouTube, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/youtube.png"} - {name: Google, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/google.png"} - {name: ChatGPT, <<: *pr, icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/ChatGPT.png"} - {name: Meta, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/meta.png"} - {name: twitter, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/twitter.png"} - {name: 数字货币, <<: *pr, icon: "https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Cryptocurrency_2.png"} - {name: GitHub, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/github.png"} - {name: TikTok, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/tiktok.png"} - {name: Telegram, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/telegram.png"} - {name: Line, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/line.png"} - {name: NETFLIX, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/3343ab556e28f94f1a000ee4a7123aa3ca7ed731/icon/netfix.png"} - {name: DisneyPlus, <<: *pr, icon: "https://raw.githubusercontent.com/Orz-3/mini/refs/heads/master/Color/DisneyPlus.png"} - {name: AppleTV, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/appletv.png"} - {name: PayPal, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/paypal.png"} - {name: STEAM, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/steam.png"} - {name: 哔哩哔哩, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/bilibili.png"} - {name: 国内媒体, type: select, proxies: [直连, 🚀 默认代理],icon: "https://raw.githubusercontent.com/Koolson/Qure/refs/heads/master/IconSet/Color/DomesticMedia.png"} - {name: 微软硬盘, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/onedrive.png"} - {name: 微软, <<: *pr, icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/microsoft.png"} - {name: 苹果, type: select, proxies: [直连, 🚀 默认代理],icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/apple.png"} - {name: 游戏平台, type: select, proxies: [直连, 🚀 默认代理], icon: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/icon/game.png"} - {name: 🎯 直连, type: select, proxies: [直连, 🚀 默认代理]} - {name: 🐟 漏网之鱼, <<: *pr} - {name: 🇭🇰 香港自动, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "(?=.*(港|HK|(?i)Hong))^((?!(台|日|韩|新|深|美)).)*$"} - {name: 🇹🇼 台湾自动, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "(?=.*(台|TW|(?i)Taiwan))^((?!(港|日|韩|新|美)).)*$"} - {name: 🇸🇬 新加坡自动, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "(?=.*(新|SG|(?i)Singapore))^((?!(港|台|日|韩|美)).)*$"} - {name: 🇰🇷 韩国自动, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "(?=.*(韩|KR|(?i)Korea))^((?!(港|台|日|新|美)).)*$"} - {name: 🇯🇵 日本自动, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "(?=.*(日|JP|(?i)Japan))^((?!(港|台|韩|新|美)).)*$" } - {name: 🇺🇲 美国自动, type: url-test, include-all: true, tolerance: 50, interval: 300, filter: "(?=.*(美|US|(?i)States|America))^((?!(港|台|日|韩|新)).)*$"} - {name: 🌍 其他国家, type: select, include-all: true, filter: "^((?!(港|hk|hongkong|hong kong|台|🇹🇼|tw|taiwan|新|🇸🇬|sg|singapore|日|jp|japan|美|us|unitedstates|united states|韩|🇰🇷|kr|korea|直连)).)*$"} - {name: 🌐 所有节点, type: select, include-all: true} # 规则匹配 # 此规则部分没有做防泄露处理,因为弊严重大于利! rules: - DOMAIN-KEYWORD,sev7en.blog,🚀 默认代理 - RULE-SET,banAd_domain,🎯 直连 - RULE-SET,private_domain,🎯 直连 - RULE-SET,bank_cn_domain,🎯 直连 - RULE-SET,xiaomi_domain,🎯 直连 - RULE-SET,ai_cn_domain,🎯 直连 - RULE-SET,apple_cn_domain,苹果 - RULE-SET,proxylite,🚀 默认代理 - RULE-SET,anthropic_domain,ChatGPT - RULE-SET,ai,ChatGPT - RULE-SET,openai_domain,ChatGPT - RULE-SET,github_domain,GitHub - RULE-SET,youtube_domain,YouTube - RULE-SET,google_domain,Google - RULE-SET,crypto_domain,数字货币 - RULE-SET,twitter_domain,twitter - RULE-SET,facebook_domain,Meta - RULE-SET,whatsapp_domain,Meta - RULE-SET,instagram_domain,Meta - RULE-SET,threads_domain,Meta - RULE-SET,meta_domain,Meta - RULE-SET,line_domain,Line - RULE-SET,onedrive_domain,微软硬盘 - RULE-SET,microsoft_domain,微软 - RULE-SET,tiktok_domain,TikTok - RULE-SET,media_cn_domain,国内媒体 - RULE-SET,media!cn_domain,国内媒体 - RULE-SET,steam_domain,STEAM - RULE-SET,steam_cn_domain,🎯 直连 - RULE-SET,steamcdn_domain,🎯 直连 - RULE-SET,steamcdn_ip,🎯 直连,no-resolve - RULE-SET,Epic_domain,游戏平台 - RULE-SET,EA_domain,游戏平台 - RULE-SET,Blizzard_domain,游戏平台 - RULE-SET,UBI_domain,游戏平台 - RULE-SET,Sony_domain,游戏平台 - RULE-SET,Nintendo_domain,游戏平台 - RULE-SET,bilibili_domain,哔哩哔哩 - RULE-SET,bilibili_ip,哔哩哔哩,no-resolve - RULE-SET,telegram_domain,Telegram - RULE-SET,netflix_domain,NETFLIX - RULE-SET,appleTV_domain,AppleTV - RULE-SET,disney_domain,DisneyPlus - RULE-SET,paypal_domain,PayPal - RULE-SET,gfw_domain,🚀 默认代理 - RULE-SET,geolocation-!cn,🚀 默认代理 - RULE-SET,cn_domain,🎯 直连 - RULE-SET,twitter_ip,twitter,no-resolve - RULE-SET,facebook_ip,Meta,no-resolve - RULE-SET,google_ip,Google,no-resolve - RULE-SET,netflix_ip,NETFLIX,no-resolve - RULE-SET,telegram_ip,Telegram,no-resolve - RULE-SET,private_ip,🎯 直连,no-resolve - RULE-SET,cn_ip,🎯 直连 - MATCH,🐟 漏网之鱼 # 规则集 rule-anchor: ip: &ip {type: http, interval: 86400, behavior: ipcidr, format: mrs} domain: &domain {type: http, interval: 86400, behavior: domain, format: mrs} class: &class {type: http, interval: 86400, behavior: classical, format: text} rule-providers: banAd_domain: { <<: *domain, url: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/rules/Domain/banAd.mrs" } private_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/private.mrs"} bank_cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/category-bank-cn.mrs" } xiaomi_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/xiaomi.mrs" } proxylite: { <<: *class, url: "https://raw.githubusercontent.com/sev7enshare/Clash-Config/refs/heads/main/list/proxy.list"} anthropic_domain: { <<: *domain, url: "https://github.com/MetaCubeX/meta-rules-dat/raw/refs/heads/meta/geo/geosite/anthropic.mrs" } ai: { <<: *domain, url: "https://github.com/MetaCubeX/meta-rules-dat/raw/refs/heads/meta/geo/geosite/category-ai-!cn.mrs" } openai_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/openai.mrs" } ai_cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/category-ai-cn.mrs" } youtube_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/youtube.mrs"} appleTV_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/apple-tvplus.mrs"} google_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/google.mrs"} facebook_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/facebook.mrs" } whatsapp_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/whatsapp.mrs" } instagram_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/instagram.mrs" } threads_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/threads.mrs" } twitter_domain: { <<: *domain, url: "https://github.com/MetaCubeX/meta-rules-dat/raw/refs/heads/meta/geo/geosite/twitter.mrs" } crypto_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/category-cryptocurrency.mrs" } meta_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/meta.mrs"} github_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/github.mrs"} telegram_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/telegram.mrs"} line_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/line.mrs" } netflix_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/netflix.mrs"} disney_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/disney.mrs" } paypal_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/paypal.mrs"} onedrive_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/onedrive.mrs"} microsoft_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/microsoft.mrs"} steam_cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/steam@cn.mrs" } steamcdn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/rules/Domain/Steam-domain.mrs" } steam_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/steam.mrs" } Epic_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/epicgames.mrs" } EA_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/ea.mrs" } Blizzard_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/blizzard.mrs" } UBI_domain: { <<: *domain, url: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/rules/Domain/ubi.mrs" } Sony_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/sony.mrs" } Nintendo_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/nintendo.mrs" } apple_cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/apple-cn.mrs"} bilibili_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/bilibili.mrs" } tiktok_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/tiktok.mrs"} media_cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/category-media-cn.mrs" } media!cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geosite/category-social-media-!cn.mrs" } gfw_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/gfw.mrs"} geolocation-!cn: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/geolocation-!cn.mrs"} cn_domain: { <<: *domain, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geosite/cn.mrs"} cn_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/cn.mrs"} google_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/google.mrs"} telegram_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/telegram.mrs"} netflix_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/netflix.mrs"} bilibili_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo-lite/geoip/bilibili.mrs" } private_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geoip/private.mrs" } facebook_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geoip/facebook.mrs" } steamcdn_ip: { <<: *ip, url: "https://raw.githubusercontent.com/Lanlan13-14/Rules/refs/heads/main/rules/IP/steamCDN-ip.mrs" } twitter_ip: { <<: *ip, url: "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/meta/geo/geoip/twitter.mrs" }