Skip to content

Important Notes

ThoseYearsBrian edited this page May 26, 2026 · 3 revisions
  1. Rule Mode is mandatory — otherwise, Aegis’s rule-based identification, routing, and protection capabilities may not function properly

    Aegis is a personal digital firewall system built entirely on Surge’s Rule Mode. It relies on rule-based matching to classify domains, enforce policies, and block malicious traffic.
    
    Full functionality is only available when Surge is running in Rule Mode. If you switch to Global Mode or Direct Mode, network access may still work, but some identification, classification, and policy-based routing capabilities that rely on rule matching may not function properly, resulting in the following risks:
    
    - Domains and IPs may not be identified or classified according to rules
    - Module strategies that rely on rule matching may not 
    - Aegis’s routing, protection, and identification capabilities may not work in full
    
    If you encounter a domain temporarily inaccessible due to unmatched rules, you may switch to Global Mode or Direct Mode temporarily to regain access.
  2. It is recommended to combine China.list (for domain matching) and GEOIP,CN (for IP segments) for accurate detection of Chinese traffic:

    RULE-SET,https://raw.githubusercontent.com/Thoseyearsbrian/Aegis/main/rules/China.list, DIRECT   # Precisely matches Chinese domains
    GEOIP,CN,DIRECT                                                                                  # Matches traffic from Chinese IPs not in domain list
    FINAL,REJECT                                                                                     # Final fallback rule (do NOT place GEOIP below this)
  3. Supports GEOIP query rules for countries outside mainland China, as the current database supports global country IP ranges.

    GEOIP,US,Proxy   # Valid
    GEOIP,AU,Proxy   # Valid
    GEOIP,CN,DIRECT  # Valid
  4. Explanation for the message “tun-excluded-routes parameter configured, may cause issues after switching networks”

    This message is not an error or conflict but a system-level reminder from Surge.  
    It can be safely ignored in a fixed network environment.  
    If you experience temporary LAN communication issues (e.g., AirDrop, Bonjour, or NAS) after switching networks such as Wi-Fi ↔ hotspot, select “Stop Proxy” → “Start Proxy” in the menu to rebuild the routing table and restore connectivity.
  5. Usage notes for domain rules and IP network segment rules

    It is recommended to prioritize DOMAIN-SUFFIX domain rules for identifying specific services and business affiliation, while using IP-CIDR and IP-CIDR6 rules as references for network hosting and infrastructure ownership. Large platform network ranges may host third-party services or open-source project resources, and they do not necessarily represent specific services or business affiliation. Service identity and hosting infrastructure should not be confused.

Clone this wiki locally