From b9a89a838bce61542842956ed5cffdfa78dd03fb Mon Sep 17 00:00:00 2001 From: Optimus Primal <32876945+mwhds97@users.noreply.github.com> Date: Thu, 10 Dec 2020 23:25:57 +0800 Subject: [PATCH 1/3] LAN --- Clash/Provider/LAN.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Clash/Provider/LAN.yaml diff --git a/Clash/Provider/LAN.yaml b/Clash/Provider/LAN.yaml new file mode 100644 index 0000000..5e362d9 --- /dev/null +++ b/Clash/Provider/LAN.yaml @@ -0,0 +1,9 @@ +payload: + - DOMAIN-SUFFIX,local + - IP-CIDR,127.0.0.0/8 + - IP-CIDR,172.16.0.0/12 + - IP-CIDR,192.168.0.0/16 + - IP-CIDR,10.0.0.0/8 + - IP-CIDR,17.0.0.0/8 + - IP-CIDR,100.64.0.0/10 + - IP-CIDR6,fe80::/10 From fb87e14d84527238b9833e561010841156cd85e5 Mon Sep 17 00:00:00 2001 From: Optimus Primal <32876945+mwhds97@users.noreply.github.com> Date: Thu, 10 Dec 2020 23:27:20 +0800 Subject: [PATCH 2/3] Remove Local IPs --- Clash/Provider/Special.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Clash/Provider/Special.yaml b/Clash/Provider/Special.yaml index de29691..fb1ad20 100644 --- a/Clash/Provider/Special.yaml +++ b/Clash/Provider/Special.yaml @@ -107,9 +107,3 @@ payload: - DOMAIN-SUFFIX,smtp # - URL-REGEX,(Subject|HELO|SMTP) - - DOMAIN-SUFFIX,local - - IP-CIDR,127.0.0.0/8 - - IP-CIDR,172.16.0.0/12 - - IP-CIDR,192.168.0.0/16 - - IP-CIDR,10.0.0.0/8 - - IP-CIDR,100.64.0.0/10 From 21c6e91fb19516ae4268053617711fbcf9d60c55 Mon Sep 17 00:00:00 2001 From: Optimus Primal <32876945+mwhds97@users.noreply.github.com> Date: Thu, 10 Dec 2020 23:31:36 +0800 Subject: [PATCH 3/3] Update Rule.yaml Add reference to ruleset LAN --- Clash/Rule.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Clash/Rule.yaml b/Clash/Rule.yaml index a0ab336..f92e000 100644 --- a/Clash/Rule.yaml +++ b/Clash/Rule.yaml @@ -55,6 +55,7 @@ - RULE-SET,Domestic,Domestic - RULE-SET,Domestic IPs,Domestic +- RULE-SET,LAN,DIRECT - GEOIP,CN,Domestic - MATCH,Others @@ -420,4 +421,10 @@ rule-providers: behavior: ipcidr url: 'https://gitee.com/lhie1/Rules/raw/master/Clash/Provider/Domestic%20IPs.yaml' path: ./Rules/Domestic_IPs - interval: 86400 \ No newline at end of file + interval: 86400 + LAN: + type: http + behavior: classical + url: 'https://gitee.com/lhie1/Rules/raw/master/Clash/Provider/LAN.yaml' + path: ./Rules/LAN + interval: 86400