From c46b50fb5f2a7b504568103fdac0e9d5da80a87f Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Sun, 2 Oct 2022 20:53:52 +0800 Subject: [PATCH] chore: adjust doc --- docs/config.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/config.yaml b/docs/config.yaml index ae976400..d0e88440 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -538,7 +538,7 @@ rules: - DOMAIN-KEYWORD,google,ss1 - IP-CIDR,1.1.1.1/32,ss1 - IP-CIDR6,2409::/64,DIRECT - - SUB-RULE,((NETWORK,TCP)),sub-rule-name1 # 当满足条件是 TCP 流量时,使用名为 sub-rule-name1 当规则集 + - SUB-RULE,((OR,((NETWORK,TCP),(NETWORK,UDP)))),sub-rule-name1 # 当满足条件是 TCP 流量时,使用名为 sub-rule-name1 当规则集 - SUB-RULE,((AND,((NETWORK,UDP)))),sub-rule-name2 # 定义多个子规则集,规则将以分叉匹配,使用 SUB-RULE 使用 # google.com(not match)--> baidu.com(match) @@ -546,6 +546,16 @@ rules: # / | # https://baidu.com --> rule1 --> rule2 --> sub-rule-name1(match tcp) 使用 DIRECT # +# +# google.com(not match)--> baidu.com(not match) +# / | +# / | +# dns 1.1.1.1 --> rule1 --> rule2 --> sub-rule-name1(match udp) sub-rule-name2(match udp) +# | +# | +# 使用 REJECT <-- 1.1.1.1/32(match) +# + sub-rules: sub-rule-name1: - DOMAIN,google.com,ss1