# Author:https://github.com/Repcz # TG:https://t.me/LUCYChannel_1024 # 最后更新时间: 2026-7-26 16:10 # # Egern Version ≥ v2.20.0(772) # 官方文档: https://doc.egernapp.com # # 以 ';' 或 '#' 或 '//' 开头的配置文件行为注释行 # # ================ http_port: 6152 socks_port: 6153 vif_only: true hijack_dns: - '*:53' geoip_db_url: https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country-without-asn.mmdb asn_db_url: https://raw.githubusercontent.com/Loyalsoldier/geoip/release/GeoLite2-ASN.mmdb proxy_latency_test_url: http://1.1.1.1/generate_204 direct_latency_test_url: http://wifi.vivo.com.cn/generate_204 dns: bootstrap: - system upstreams: Domestic-DNS: - 223.5.5.5 - 119.29.29.29 Domestic-Encrypted-DNS: - https://dns.alidns.com/dns-query - https://doh.pub/dns-query Foreign-Encrypted-DNS: - https://cloudflare-dns.com/dns-query - https://dns.google/dns-query forward: - proxy_rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Reject.yaml value: REJECT disabled: false - proxy_rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/ChinaDomain.yaml value: Domestic-DNS disabled: false - domain_wildcard: match: '*' value: Domestic-Encrypted-DNS disabled: false hosts: dns.google: - 8.8.8.8, 8.8.4.4, 2001:4860:4860::8888, 2001:4860:4860::8844 cloudflare-dns.com: - 104.16.249.249, 104.16.248.249, 2606:4700::6810:f8f9, 2606:4700::6810:f9f9 dns.alidns.com: - 223.5.5.5, 223.6.6.6, 2400:3200:baba::1, 2400:3200::1 doh.pub: - 1.12.12.12, 120.53.53.53 dot.pub: - 1.12.12.12, 120.53.53.53 proxy_nameservers: - 119.29.29.29 - 223.5.5.5 real_ip_domains: - lancache.steamcontent.com - '*.msftconnecttest.com' - '*.msftncsi.com' - '*.srv.nintendo.net' - '*.stun.playstation.net' - xbox.*.microsoft.com - '*.xboxlive.com' - '*.logon.battlenet.com.cn' - '*.logon.battle.net' - stun.l.google.com - easy-login.10099.com.cn - '*-update.xoyocdn.com' - '*.prod.cloud.netflix.com' - appboot.netflix.com - '*-appboot.netflix.com' policy_groups: - external: name: Manual type: select urls: - http://your-service-provider hidden: false icon: https://github.com/Repcz/Repcz.github.io/raw/main/docs/egern/Photo/Egern.png - select: name: Global policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Global.png - select: name: Streaming policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/YouTube.png - select: name: Microsoft policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Microsoft.png - select: name: Google policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Google_Search.png - select: name: AI policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Orz-3/mini/master/Color/OpenAI.png - select: name: Social policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Twitter.png - select: name: Telegram policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Telegram.png - select: name: Game policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Game.png - select: name: Emby policies: - Manual flatten: true icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Emby.png - select: name: Spotify policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Spotify.png - select: name: Final policies: - Manual - HongKong - United States - Singapore - Japan - Taiwan icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Final.png - auto_test: name: HongKong policies: - Manual flatten: true filter: (?i)🇭🇰|香港|(\b(HK|Hong)\b) tolerance: 0 icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Hong_Kong.png - auto_test: name: United States policies: - Manual flatten: true filter: (?i)🇺🇸|美国|洛杉矶|圣何塞|(\b(US|United States)\b) tolerance: 0 icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/United_States.png - auto_test: name: Singapore policies: - Manual flatten: true filter: (?i)🇸🇬|新加坡|狮|(\b(SG|Singapore)\b) tolerance: 0 icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Singapore.png - auto_test: name: Japan policies: - Manual flatten: true filter: (?i)🇯🇵|日本|东京|(\b(JP|Japan)\b) tolerance: 0 icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/Japan.png - auto_test: name: Taiwan policies: - Manual flatten: true filter: (?i)🇨🇳|🇹🇼|台湾|(\b(TW|Tai|Taiwan)\b) tolerance: 0 icon: https://raw.githubusercontent.com/Koolson/Qure/master/IconSet/Color/China.png rules: - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Direct.yaml policy: DIRECT - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Reject.yaml policy: REJECT - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/AI.yaml policy: AI - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Telegram.yaml policy: Telegram - and: name: Fuck Telegram match: - not: match: rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Telegram.yaml - listen_port: match: '6153' policy: REJECT disabled: false - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Twitter.yaml policy: Social - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Facebook.yaml policy: Social - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/TikTok.yaml policy: Social - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Game.yaml policy: Game - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Google.yaml policy: Google - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Github.yaml policy: Microsoft - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Microsoft.yaml policy: Microsoft - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Emby.yaml policy: Emby - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Spotify.yaml policy: Spotify - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Bahamut.yaml policy: Streaming - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Netflix.yaml policy: Streaming - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Disney.yaml policy: Streaming - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/PrimeVideo.yaml policy: Streaming - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/HBO.yaml policy: Streaming - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Proxy.yaml policy: Global - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/AppleServers.yaml policy: HongKong - rule_set: match: https://github.com/Repcz/Tool/raw/X/Egern/Rules/Lan.yaml policy: DIRECT - geoip: match: CN policy: DIRECT - default: policy: Final mitm: enabled: true modules: - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/广告平台拦截器.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/拦截HTTPDNS.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/高德地图去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/闲鱼去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/酷安去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/知乎去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/滴滴出行去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/微博轻享版去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/微信小程序去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/微信公众号去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/小红书去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/什么值得买去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/QingRex/LoonKissSurge/refs/heads/main/Surge/Beta/IT之家去广告.beta.sgmodule enabled: true - url: https://raw.githubusercontent.com/fmz200/wool_scripts/refs/heads/main/Surge/module/XWebAds.module enabled: true - url: https://raw.githubusercontent.com/Keywos/rule/main/script/wy/wy.sgmodule enabled: true - url: https://raw.githubusercontent.com/Maasea/sgmodule/master/YouTube.Enhance.sgmodule enabled: true - url: https://raw.githubusercontent.com/ConnersHua/RuleGo/master/Surge/Module/Block/Advertising.sgmodule enabled: true - url: https://raw.githubusercontent.com/githubdulong/Script/master/Surge/jd_price2.sgmodule enabled: true - url: https://github.com/chavyleung/scripts/raw/master/box/rewrite/boxjs.rewrite.surge.sgmodule enabled: true - url: https://raw.githubusercontent.com/kokoryh/Sparkle/refs/heads/master/release/surge/module/bilibili.sgmodule enabled: true - url: https://raw.githubusercontent.com/xream/scripts/main/surge/modules/network-info/network-info-lite.sgmodule enabled: false - url: https://raw.githubusercontent.com/001ProMax/Surge/main/Module/AD/Spotify.sgmodule enabled: false - name: SubStore url: https://raw.githubusercontent.com/sub-store-org/Sub-Store/refs/heads/master/config/Egern.yaml enabled: false