https://egernapp.com/docs/intro
egern作为后来者 众多iOS代理apps中 支持edns, 相较于其他,并发选优的方式更为优雅。
配置文件yaml,规则集兼容surge, 实测也支持clash/loon ?
ipv6: true #开启ipv6支持
vif_only: true #开启tun
geoip_db_url: https://raw.githubusercontent.com/gfw-list/gfwlist/files/Country.mmdb #maxmind geoip文件
asn_db_url: https://raw.githubusercontent.com/gfw-list/gfwlist/files/ASN.mmdb #maxmind asn文件
proxy_latency_test_url: http://connectivitycheck.gstatic.com/generate_204 #代理延迟测试
direct_latency_test_url: http://www.apple.com/generate_204 #直连延迟测试
hijack_dns:
- '*'
dns:
bootstrap:
- system #基础dns
upstreams:
Domestic: #国内dns
- https://dns.alidns.com/dns-query
- http://doh.pub/dns-query
Foreign: #国外dns
- https://1.1.1.1/dns-query
- https://dns.google/dns-query
forward:
- proxy_rule_set: #将gfwlist 分流走国外doh dns
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/gfwlist.yaml
value: Foreign
- wildcard: #除了上面的gfwlist 其他默认走国内
match: '*'
value: Domestic
hosts: #解析doh 域名用
dns.alidns.com: 223.5.5.5
dns.pub: 120.53.53.53
dns.google: 8.8.8.8
public_ip_lookup_url: https://ifconfig.me/ip #返回设备公网ip
policy_groups:
- external:
name: Proxy
type: select
urls:
- 订阅URL
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/Global.png
hidden: false
- select:
name: YouTube
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/YouTube_L.png
- select:
name: DisneyPlus
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/DisneyPlus_L.png
- select:
name: Netflix
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/Netflix_L.png
- select:
name: HBO
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/HBO.png
- select:
name: OpenAI
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/ChatGPT_L.png
- select:
name: Spotify
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/Spotify_L.png
- select:
name: Telegram
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/Telegram_L.png
- select:
name: Speedtest
policies:
- DIRECT
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/Speedtest_L.png
- select:
name: GFWlist
policies:
- Proxy
flatten: true
icon: https://raw.githubusercontent.com/gfw-list/pxy-icon/main/GFWlist_L.png
rules:
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/youtube.yaml
policy: YouTube
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/disney.yaml
policy: DisneyPlus
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/netflix.yaml
policy: Netflix
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/hbo.yaml
policy: HBO
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/openai.yaml
policy: OpenAI
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/spotify.yaml
policy: Spotify
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/telegram.yaml
policy: Telegram
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/speedtest.yaml
policy: Speedtest
- rule_set:
match: https://raw.githubusercontent.com/gfw-list/gfwlist/files/merged/egern/gfwlist.yaml
policy: GFWlist
- geoip:
match: CN
policy: DIRECT
- default:
policy: DIRECT
mitm:
enabled: false