# Loyalsoldier/clash-rules

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/loyalsoldier-clash-rules).**

24,439 stars · 2,019 forks · gpl-3.0

## Links

- GitHub: https://github.com/Loyalsoldier/clash-rules
- awesome-repositories: https://awesome-repositories.com/repository/loyalsoldier-clash-rules.md

## Topics

`adblock` `adguard` `anticensorship` `chinalist` `clash` `dnsmasq` `easylist` `geosite` `gfw` `gfwlist` `proxy` `routing` `shadowsocks` `ss` `ssr` `surge` `v2ray`

## Description

This project provides a curated collection of network traffic routing rulesets designed for use with proxy client applications. It functions as a declarative configuration system that categorizes internet traffic based on domain names, IP addresses, and application sources, allowing users to define how network requests are routed through proxies or direct connections.

The system distinguishes itself through its cross-platform compatibility, utilizing standardized rule formats that ensure consistent traffic management logic across various desktop and mobile proxy clients. By employing both domain-pattern matching and CIDR-based network analysis, it enables precise control over traffic flow. The configuration is maintained through structured text files, supporting automated updates via remote rule provider fetching to keep filtering logic current.

Beyond basic routing, the project includes capabilities for privacy and ad blocking by automatically rejecting connections to known intrusive or malicious servers. It offers a comprehensive set of pre-defined rules covering various services, geographic origins, and network environments, with documentation provided to assist in implementing different configuration patterns.

## Tags

### Networking & Communication

- [Network Traffic Routing](https://awesome-repositories.com/f/networking-communication/network-traffic-routing.md) — Directs internet traffic through specific proxies or local connections based on destination and source criteria.
- [Network Routing Rules](https://awesome-repositories.com/f/networking-communication/network-routing-rules.md) — Routes network traffic by comparing destination IP addresses against predefined CIDR ranges.
- [Network Traffic Routing Rulesets](https://awesome-repositories.com/f/networking-communication/network-traffic-routing-rulesets.md) — Provides curated domain and IP address lists for categorizing and filtering internet traffic.
- [Automated Rule Management](https://awesome-repositories.com/f/networking-communication/automated-rule-management.md) — Maintains up-to-date traffic filtering rules to ensure consistent network policy enforcement.
- [Declarative Proxy Configurations](https://awesome-repositories.com/f/networking-communication/declarative-proxy-configurations.md) — Defines network routing behavior through structured, declarative rule sets.
- [Proxy Clients](https://awesome-repositories.com/f/networking-communication/proxy-clients.md) — | Name | Name | Last commit message | Last commit date | | --- | --- | --- | --- | | ### parent directory .. | | Clash.for.Windows.Setup.0.20.39.exe | Clash.for.Windows.Setup.0.20.39.exe | | | | View all files | ([source](https://github.com/Loyalsoldier/clash-rules/tree/hidden/software/clash-for-windows))
- [Proxy Configuration Standards](https://awesome-repositories.com/f/networking-communication/proxy-configuration-standards.md) — Provides standardized rule formats for consistent traffic management across different proxy clients.
- [Cross-Platform Proxy Configurations](https://awesome-repositories.com/f/networking-communication/cross-platform-proxy-configurations.md) — Standardizes network routing policies for seamless operation across diverse desktop and mobile clients.
- [Domain Traffic Filters](https://awesome-repositories.com/f/networking-communication/domain-traffic-filters.md) — Intercepts and routes network requests based on domain suffixes and keywords.
- [Dynamic Rule Providers](https://awesome-repositories.com/f/networking-communication/dynamic-rule-providers.md) — Dynamically fetches and updates external rule sets to maintain current traffic filtering logic.
- [Proxy Configuration Formats](https://awesome-repositories.com/f/networking-communication/proxy-configuration-formats.md) — Provides a standardized data format compatible with multiple network proxy applications.

### Security & Cryptography

- [Privacy and Ad Blocking](https://awesome-repositories.com/f/security-cryptography/privacy-and-ad-blocking.md) — Filters out unwanted tracking and advertisements by rejecting connections to known harmful domains.

### Development Tools & Productivity

- [Configuration Formats](https://awesome-repositories.com/f/development-tools-productivity/configuration-formats.md) — Uses structured YAML files to define network traffic categorization rules.
