mirror of
https://github.com/cfal/shoes.git
synced 2026-11-06 16:14:11 +00:00
Compile routing rules into shared indexes while preserving ordered policy evaluation and DNS decisions. Add typed predicates and bounded local SRS, sing-box JSON, Mihomo YAML/text/MRS, and GeoSite/GeoIP DAT sources through named rule groups or inline masks, with format detection, source caching, pre-activation compilation, and source-aware reloads. Include configuration examples, regression coverage, benchmark tooling, and dependency notices.
25 lines
587 B
YAML
25 lines
587 B
YAML
- rule_group: imported
|
|
rules:
|
|
- ../tests/fixtures/rule_sets/singbox-v2.srs
|
|
- path: ../tests/fixtures/rule_sets/mihomo-domain.txt
|
|
behavior: domain
|
|
|
|
- rule_group: standard
|
|
rules:
|
|
- masks: {rule_group: imported}
|
|
action: block
|
|
- masks: ["192.168.0.0/16", "internal.example"]
|
|
action: allow
|
|
|
|
- address: "0.0.0.0:1080"
|
|
protocol: {type: socks}
|
|
rules:
|
|
- standard
|
|
- masks:
|
|
all:
|
|
- path: ../tests/fixtures/rule_sets/mihomo-ip.mrs
|
|
- destination_port: [443]
|
|
action: block
|
|
- masks: "0.0.0.0/0"
|
|
action: allow
|