跳转到内容
shoes

rule_sources.yaml

所有示例

使用前请修改地址、凭据、证书路径和其他部署相关的值。这是完整的源文件,但不保证未经修改即可在你的机器上运行。请阅读文件中的注释了解前置条件,然后对修改后的文件运行 shoes check。

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

查看此修订版本的源文件