Shadowrocket-style .conf rules file for routing — bundled as the
default ruleset in nexray and
republished here so other proxy clients that speak the same .conf
dialect can pick it up directly.
default.conf mixes the common categories you'd expect from a Chinese
mainland-aware ruleset:
- Chinese mainland direct —
geosite:cnplus hand-curatedDOMAIN-SUFFIXrules for major CN sites that don't always show up in geosite (Tencent, Alibaba, ByteDance, NetEase, banks). - Ad / tracker blocking —
REJECTrules for the largest ad networks and trackers. - Apple / Microsoft / Google services — split between direct and proxy depending on which endpoints work over CN routes.
- Common apps — Telegram, LINE, Discord, GitHub, etc.
It's intentionally portable: the [Rule] section is plain
Shadowrocket syntax, and only IP-ASN / USER-AGENT / nested AND
beyond the canonical (PROTOCOL,*),(DEST-PORT,*) shape are non-portable
(those are dropped by clients without a matching feature, e.g.
xray-core).
Drop the file into your client's config directory under whatever name
your client expects (e.g. ~/Library/Application Support/<app>/rules.conf
on macOS).
GPL-3.0-only, matching the upstream nexray project.
