Egern YAML Configuration Summary
Understanding the Egern YAML configuration file can be crucial for network and application management, especially if using a VPN or DNS management system.
General Configuration
- vif_only: Set to
true, indicating specific interface usage.
- hide_vpn_icon: Set to
false, meaning the VPN icon will be visible.
Database URLs
- GeoIP Database:
- URL:
https://raw.githubusercontent.com/Loyalsoldier/geoip/release/Country.mmdb
- ASN Database:
- URL:
https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-ASN.mmdb
Network Inclusion
- include_all_networks:
false
- include_apns:
false
DNS Configuration
- DNS Servers:
- Hosts:
doh.pub translates to 1.12.12.12
dns.alidns.com translates to 223.5.5.5
dot.pub translates to 1.12.12.12
- Secure DNS:
- Servers:
https://freedns.controld.com/x-oisd
- ECS:
false
- Public IP Lookup URL:
'' (empty)
Policy Groups and Icons
- Multiple policy groups are defined, often with icons representing applications or services. Each policy group can contain different policies such as
DIRECT or specific policy sets.
- Examples of policy group icons include:
- VIP
- Clubhouse
- Proxy
- Auto_Speed
- Telegram
- OpenAI
- YouTube
- Netflix
- Instagram
- Twitter
- TikTok
- GoogleFCM
- WeChat
- OneDrive
- Microsoft
- Apple
- Speedtest
Domain and GeoIP Rules
- Various domains are listed with a
REJECT policy, mainly related to Apple services and various security certificate providers.
- GeoIP rules manage policy applications based on the IP location, e.g., CN (China).
- IP CIDR blocks (e.g.,
192.168.0.0/16) are defined for internal network policies.
Man-in-the-middle (MITM) and Modules
Modules Loaded
- BoxJs: Facilitates script management
- URL:
https://raw.githubusercontent.com/chavyleung/scripts/master/box/rewrite/boxjs.rewrite.surge.sgmodule
- Script-Hub: Provides a collection of scripts
- URL:
https://raw.githubusercontent.com/Script-Hub-Org/Script-Hub/main/modules/script-hub.surge.sgmodule
- Sub-Store: For subscription management
- URL:
https://raw.githubusercontent.com/Peng-YM/Sub-Store/master/config/Surge.sgmodule
- YoutubeAds: Enhancing YouTube experience by managing ads
- URL:
https://raw.githubusercontent.com/Maasea/sgmodule/master/YouTube.Enhance.sgmodule
- Collections: General script collection
- URL:
https://raw.githubusercontent.com/chxm1023/Script_X/main/Collections.sgmodule
Key Takeaways
- The configuration mainly focuses on DNS management, policy group configurations, and domain-specific handling, especially for Apple services.
- Integration with modules suggests an extensible framework for managing various scripts and services.