简体中文 | English
NetPatch Firewall Groups → Clash Rule Provider Converter
Automatically converts NetPatch Firewall group rules to Clash rule-provider format with daily updates.
Caution
Prohibited Distribution
Any form of reprinting or posting to 🇨🇳 mainland China public platforms is prohibited.
Warning
Compliance Warning
This project is for technical exchange and learning only. Mainland China users must comply with local laws and regulations.
- 🔄 Daily Auto-Update - GitHub Actions runs daily at UTC 00:00
- 📦 Release Artifacts - Download ready-to-use rulesets from Releases
- 🌍 200+ Country IPs - Complete country/region IP rulesets
- 🛡️ Ad Blocking - Built-in ad/malware/tracking domain rules
Visit Releases to download the latest:
rulesets-YYYY-MM-DD.tar.gz- Tarball archiverulesets-YYYY-MM-DD.zip- ZIP archive
Extract and reference in your Clash configuration:
rule-providers:
amt:
type: file
behavior: classical
path: ./ruleset/amt.yaml
bdc:
type: file
behavior: classical
path: ./ruleset/bdc.yaml
CN:
type: file
behavior: classical
path: ./ruleset/CN.yaml
rules:
- RULE-SET,amt,REJECT
- RULE-SET,bdc,PROXY
- RULE-SET,CN,DIRECT
- MATCH,PROXY| Ruleset | Description | Source |
|---|---|---|
amt.yaml |
Ad/Malware/Tracking domains | amt.txt |
bdc.yaml |
Bypass Domain Categories | bdc.txt |
All country codes available (200+):
CN.yaml- ChinaUS.yaml- United StatesJP.yaml- JapanHK.yaml- Hong KongTW.yaml- TaiwanSG.yaml- Singapore- ... and more
- Domains: NetPatch Firewall Groups
- Country IPs: RIR databases (RIPE, APNIC, ARIN, LACNIC, AFRINIC)
patchomo/
├── scripts/
│ └── convert.py # Conversion script
├── .github/
│ └── workflows/
│ └── update.yml # Daily update workflow
└── README.md
Note: output/ directory is auto-generated by GitHub Actions and distributed via Releases.
git clone https://github.com/inoribea/patchomo.git
cd patchomo
python scripts/convert.py- Automatic: Daily at UTC 00:00
- Manual: Trigger via GitHub Actions → "Run workflow"
- Data: Follows NetPatch Firewall Groups license
- Script: MIT License
- NetPatch - Original data source