Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1.32 KB

README.md

File metadata and controls

36 lines (27 loc) · 1.32 KB

proxy.conf

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.

What's inside

default.conf mixes the common categories you'd expect from a Chinese mainland-aware ruleset:

  • Chinese mainland direct — geosite:cn plus hand-curated DOMAIN-SUFFIX rules for major CN sites that don't always show up in geosite (Tencent, Alibaba, ByteDance, NetEase, banks).
  • Ad / tracker blocking — REJECT rules 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).

Using it

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).

License

GPL-3.0-only, matching the upstream nexray project.