Files
shoes/examples/rule_sources.yaml
cfal 5fc319a13d Add indexed routing predicates and local rule sources (#201)
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.
2026-10-20 22:11:01 -04:00

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