proxy_rules is a consolidated proxy-rule repository for Surge, mihomo, Egern, Loon, OxiDNS, and other clients that consume remote rule lists.
The repository provides portable rule lists, generated OxiDNS domain sets, and mirrored GeoX assets. Client configurations should reference this repository instead of depending on many upstream sources directly.
Generated rule files:
proxy.list
direct.list
reject.list
Manual override files:
proxy_added.list
direct_added.list
reject_added.list
Do not edit generated files directly.
Generated OxiDNS files are stored under:
oxidns/
The conversion is:
DOMAIN,example.com -> full:example.com
DOMAIN-SUFFIX,example.com -> domain:example.com
DOMAIN-KEYWORD,example -> keyword:example
IP rules are omitted from OxiDNS domain sets because they only match DNS names.
The workflow mirrors Loyalsoldier v2ray-rules-dat GeoX databases for machines that cannot directly access external networks.
| File | Source |
|---|---|
geox/geoip.dat |
https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat |
geox/geosite.dat |
https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat |
Use these URLs in mihomo geox-url configuration:
geox-url:
geoip: https://cdn.jsdelivr.net/gh/ciallothu/proxy_rules@main/geox/geoip.dat
geosite: https://cdn.jsdelivr.net/gh/ciallothu/proxy_rules@main/geox/geosite.datRecommended jsDelivr endpoint:
https://cdn.jsdelivr.net/gh/ciallothu/proxy_rules@main/<file>
Raw GitHub URLs can be used as fallback.
GitHub Actions rebuilds rules and refreshes GeoX assets daily:
tools/build_rules.py
tools/fetch_geox.py
tools/build_dist_manifest.py
.github/workflows/build-rules.yml
The workflow can also be triggered manually from GitHub Actions.