Coder Social home page Coder Social logo

clash_angrules's Introduction

Clash_Rules

来源

If arule-provider file named as testproviderand behavior is domain:

payload:
  - '.blogger.com'
  - '*.*.microsoft.com'
  - 'books.itunes.apple.com'

If arule-provider file named as testprovider2and behavior is ipcidr:

payload:
  - '192.168.1.0/24'
  - '10.0.0.0.1/32'

If arule-provider file named as testprovider3and behavior is classical:

payload:
  - DOMAIN-SUFFIX,google.com
  - DOMAIN-KEYWORD,google
  - DOMAIN,ad.com
  - SRC-IP-CIDR,192.168.1.201/32
  - IP-CIDR,127.0.0.0/8
  - GEOIP,CN
  - DST-PORT,80
  - SRC-PORT,7777

自定义规则

An Example of Rules:

rules:
  - DOMAIN-SUFFIX,google.com,auto
  - DOMAIN-KEYWORD,google,auto
  - DOMAIN,ad.com,REJECT
  - SRC-IP-CIDR,192.168.1.201/32,DIRECT
  - IP-CIDR,127.0.0.0/8,DIRECT
  - IP-CIDR6,2620:0:2d0:200::7/32,auto
  - GEOIP,CN,DIRECT
  - DST-PORT,80,DIRECT
  - SRC-PORT,7777,DIRECT
  - MATCH,auto
rules:
  - RULE-SET,Apple,DIRECT
  - RULE-SET,Facebook,🇺🇲 美国节点
  - RULE-SET,Game,DIRECT
  - RULE-SET,Google,🔰 节点选择
  - RULE-SET,Netflix,🎥 奈飞节点
  - RULE-SET,OneDrive,🇺🇲 美国节点
  - RULE-SET,TikTok,🇯🇵 日本节点
  - RULE-SET,WeChat,DIRECT
  - RULE-SET,YouTube,🔰 节点选择

  - RULE-SET,Adobe,DIRECT
  - RULE-SET,Amazon,🔰 节点选择
  - RULE-SET,GitHub,🔰 节点选择
  - RULE-SET,Microsoft,DIRECT
  - RULE-SET,Netease Music,DIRECT
  - RULE-SET,PayPal,🔰 节点选择
  - RULE-SET,Steam,DIRECT
  - RULE-SET,Telegram,🔰 节点选择
  - RULE-SET,Tencent,DIRECT
  - RULE-SET,Twitter,🔰 节点选择
  - RULE-SET,China,DIRECT


  - RULE-SET,google,🔰 节点选择
  - RULE-SET,icloud,DIRECT
  - RULE-SET,apple,DIRECT
  - RULE-SET,telegramcidr,🔰 节点选择
  - RULE-SET,direct,DIRECT
  - RULE-SET,cncidr,DIRECT,no-resolve
  - RULE-SET,lancidr,DIRECT,no-resolve
  - RULE-SET,applications,DIRECT
  - RULE-SET,tld-not-cn,🔰 节点选择
  - RULE-SET,greatfire,🔰 节点选择
  - RULE-SET,gfw,🔰 节点选择
  - RULE-SET,proxy,🔰 节点选择
  - MATCH,🔰 节点选择
  - RULE-SET,Meta,🇺🇲 美国节点
  - RULE-SET,Tiktok,🇯🇵 日本节点
  - RULE-SET,Chat,DIRECT
  - RULE-SET,iCloud,DIRECT
  - RULE-SET,Apple,DIRECT
  - RULE-SET,Netflix,🇺🇲 美国节点
  - RULE-SET,American,🇺🇲 美国节点
  - RULE-SET,Proxy,🔰 节点选择
  - RULE-SET,Google,🔰 节点选择
  - RULE-SET,Direct,DIRECT
  - RULE-SET,CNcidr,DIRECT
  - RULE-SET,Goo.gl,🔰 节点选择
  - RULE-SET,Proxy2,🔰 节点选择
  - RULE-SET,GFW,🔰 节点选择
  - RULE-SET,Telegramcidr,🔰 节点选择
  - RULE-SET,Direct2,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,🔰 节点选择

GeoIP数据库

# ... 省略其他规则 ...
  - GEOIP, CN, DIRECT # 👀 建议在这里使用规则
  - FINAL, PROXY # ⬇️ 最终规则

手动维护...

clash_angrules's People

Contributors

angwz avatar

Stargazers

GD2021 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.