https://github.com/dickymuliafiqri/oc_ruler
Openclash rule_provider based on v2fly geosite
https://github.com/dickymuliafiqri/oc_ruler
openclash openwrt rule v2fly
Last synced: 14 days ago
JSON representation
Openclash rule_provider based on v2fly geosite
- Host: GitHub
- URL: https://github.com/dickymuliafiqri/oc_ruler
- Owner: dickymuliafiqri
- Created: 2022-06-19T15:16:40.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-24T00:33:55.000Z (over 2 years ago)
- Last Synced: 2024-11-15T07:33:02.150Z (over 1 year ago)
- Topics: openclash, openwrt, rule, v2fly
- Language: TypeScript
- Homepage:
- Size: 1.55 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## OC_RULER (Openclash) Rule Providers
Menyediakan rule_provider untuk openclash berdasarkan data dari v2fly
```
Cek ./index.json untuk melihat daftar domain
```
## Cara Pakai
1. Ubah file **`config.yaml`** yang kamu punya.
2. Salin script dibawah ini, lalu letakkan di bawah barisan **`proxy_groups`** (baris dibawah ini hanya contoh, selebihnya silahkan improvisasi sendiri)
```
# Rule Providers
# Check time conversion here https://www.timecalculator.net/hours-to-seconds
rule-providers:
Whatsapp:
type: http
behavior: classical
path: "./rule_provider/Whatsapp.yaml"
url: https://raw.githubusercontent.com/dickymuliafiqri/oc_ruler/master/data/whatsapp.yaml
interval: 86400 # Update rules every 24 hours
1337x:
type: http
behavior: classical
path: "./rule_provider/1337x.yaml"
url: https://raw.githubusercontent.com/dickymuliafiqri/oc_ruler/master/data/1337x.yaml
interval: 86400 # Update rules every 24 hours
rules:
# Rules before match global
- RULE-SET,Whatsapp,DIRECT
- RULE-SET,1337x,DIRECT
# Listen all connections to GLOBAL proxy
- MATCH,GLOBAL
```
3. Buka **`OpenClash > Settings > General Settings`** lalu atur seperti contoh di bawah ini

4. Lalu tekan tombol **`ENABLE OPENCLASH`** di bagian bawah halaman Overview OpenClash
## Credits
- https://github.com/blackmatrix7/ios_rule_script/tree/master/rule/Clash
- https://github.com/zzzt27/clashBlock
- https://github.com/MasterWifiNetworkSolution/PLATINUM-OPENCLASH
- https://github.com/hillz2/openclash_adblock
- https://github.com/v2fly/domain-list-community
- https://github.com/helmiau/clashrules