Skip to content
shoes

rule_sources.yaml

All examples

Change addresses, credentials, certificate paths, and other deployment-specific values before use. This is a complete source file, not a guarantee it can run unchanged on your machine. Read its comments for prerequisites, then run shoes check with the adapted file.

examples/rule_sources.yaml
- rule_source_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_source_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

View source at this revision