🦄️ 🎃 👻 Clash Premium 规则集(RULE-SET),兼容 ClashX Pro、Clash for Windows 客户端。

Overview

简介

本项目生成适用于 Clash Premium 内核的规则集(RULE-SET),同时适用于所有使用 Clash Premium 内核的 Clash 图形用户界面(GUI)客户端。使用 GitHub Actions 北京时间每天早上 6:30 自动构建,保证规则最新。

说明

本项目规则集(RULE-SET)的数据主要来源于项目 @Loyalsoldier/v2ray-rules-dat@v2fly/domain-list-communityAppleGoogle 列表里的域名来源于项目 @felixonmars/dnsmasq-china-list;中国大陆 IPv4 地址数据使用 @17mon/china_ip_list

本项目的规则集(RULE-SET)只适用于 Clash Premium 版本。Clash Premium 相对于普通版,增加了 TUN 增强模式,能接管设备所有 TCP 和 UDP 流量,类似 Surge for Mac 的增强模式。更多高级特性请看官方 wiki

Clash Premium 各版本下载地址

规则文件地址及使用方式

在线地址(URL)

如果无法访问域名 raw.githubusercontent.com,可以使用第二个地址(cdn.jsdelivr.net),但是内容更新会有 12 小时的延迟。以下地址填写在 Clash 配置文件里的 rule-providers 里的 url 配置项中。

使用方式

关于 Clash Premium 使用方式,请查看官方文档Lancellc's GitBook

要想使用本项目的规则集,只需要在 Clash 配置文件中添加如下 rule-providersrules

Rule Providers 配置方式

rule-providers:
  reject:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/reject.txt"
    path: ./ruleset/reject.yaml
    interval: 86400

  icloud:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/icloud.txt"
    path: ./ruleset/icloud.yaml
    interval: 86400

  apple:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/apple.txt"
    path: ./ruleset/apple.yaml
    interval: 86400

  google:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/google.txt"
    path: ./ruleset/google.yaml
    interval: 86400

  proxy:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/proxy.txt"
    path: ./ruleset/proxy.yaml
    interval: 86400

  direct:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/direct.txt"
    path: ./ruleset/direct.yaml
    interval: 86400

  private:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/private.txt"
    path: ./ruleset/private.yaml
    interval: 86400

  gfw:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/gfw.txt"
    path: ./ruleset/gfw.yaml
    interval: 86400

  greatfire:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/greatfire.txt"
    path: ./ruleset/greatfire.yaml
    interval: 86400

  tld-not-cn:
    type: http
    behavior: domain
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/tld-not-cn.txt"
    path: ./ruleset/tld-not-cn.yaml
    interval: 86400

  telegramcidr:
    type: http
    behavior: ipcidr
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/telegramcidr.txt"
    path: ./ruleset/telegramcidr.yaml
    interval: 86400

  cncidr:
    type: http
    behavior: ipcidr
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/cncidr.txt"
    path: ./ruleset/cncidr.yaml
    interval: 86400

  lancidr:
    type: http
    behavior: ipcidr
    url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/lancidr.txt"
    path: ./ruleset/lancidr.yaml
    interval: 86400

白名单模式 Rules 配置方式(推荐)

  • 白名单模式,意为「没有命中规则的网络流量,统统使用代理」,适用于服务器线路网络质量稳定、快速,不缺服务器流量的用户。
  • 以下配置中,除了 DIRECTREJECT 是默认存在于 Clash 中的 policy(路由策略/流量处理策略),其余均为自定义 policy,对应配置文件中 proxiesproxy-groups 中的 name。如你直接使用下面的 rules 规则,则需要在 proxiesproxy-groups 中手动配置一个 namePROXY 的 policy。
  • 如你希望 Apple、iCloud 和 Google 列表中的域名使用代理,则把 policy 由 DIRECT 改为 PROXY,以此类推,举一反三。
  • 如你不希望进行 DNS 解析,可在 GEOIP 规则的最后加上 ,no-resolve,如 GEOIP,CN,DIRECT,no-resolve
rules:
  - PROCESS-NAME,v2ray,DIRECT
  - PROCESS-NAME,xray,DIRECT
  - PROCESS-NAME,naive,DIRECT
  - PROCESS-NAME,trojan,DIRECT
  - PROCESS-NAME,trojan-go,DIRECT
  - PROCESS-NAME,ss-local,DIRECT
  - PROCESS-NAME,privoxy,DIRECT
  - PROCESS-NAME,leaf,DIRECT
  - PROCESS-NAME,v2ray.exe,DIRECT
  - PROCESS-NAME,xray.exe,DIRECT
  - PROCESS-NAME,naive.exe,DIRECT
  - PROCESS-NAME,trojan.exe,DIRECT
  - PROCESS-NAME,trojan-go.exe,DIRECT
  - PROCESS-NAME,ss-local.exe,DIRECT
  - PROCESS-NAME,privoxy.exe,DIRECT
  - PROCESS-NAME,leaf.exe,DIRECT
  - PROCESS-NAME,Surge,DIRECT
  - PROCESS-NAME,Surge 2,DIRECT
  - PROCESS-NAME,Surge 3,DIRECT
  - PROCESS-NAME,Surge 4,DIRECT
  - PROCESS-NAME,Surge%202,DIRECT
  - PROCESS-NAME,Surge%203,DIRECT
  - PROCESS-NAME,Surge%204,DIRECT
  - PROCESS-NAME,Thunder,DIRECT
  - PROCESS-NAME,DownloadService,DIRECT
  - PROCESS-NAME,qBittorrent,DIRECT
  - PROCESS-NAME,Transmission,DIRECT
  - PROCESS-NAME,fdm,DIRECT
  - PROCESS-NAME,aria2c,DIRECT
  - PROCESS-NAME,Folx,DIRECT
  - PROCESS-NAME,NetTransport,DIRECT
  - PROCESS-NAME,uTorrent,DIRECT
  - PROCESS-NAME,WebTorrent,DIRECT
  - PROCESS-NAME,aria2c.exe,DIRECT
  - PROCESS-NAME,BitComet.exe,DIRECT
  - PROCESS-NAME,fdm.exe,DIRECT
  - PROCESS-NAME,NetTransport.exe,DIRECT
  - PROCESS-NAME,qbittorrent.exe,DIRECT
  - PROCESS-NAME,Thunder.exe,DIRECT
  - PROCESS-NAME,ThunderVIP.exe,DIRECT
  - PROCESS-NAME,transmission-daemon.exe,DIRECT
  - PROCESS-NAME,transmission-qt.exe,DIRECT
  - PROCESS-NAME,uTorrent.exe,DIRECT
  - PROCESS-NAME,WebTorrent.exe,DIRECT
  - DOMAIN,clash.razord.top,DIRECT
  - DOMAIN,yacd.haishan.me,DIRECT
  - RULE-SET,private,DIRECT
  - RULE-SET,reject,REJECT
  - RULE-SET,icloud,DIRECT
  - RULE-SET,apple,DIRECT
  - RULE-SET,google,DIRECT
  - RULE-SET,proxy,PROXY
  - RULE-SET,direct,DIRECT
  - RULE-SET,telegramcidr,PROXY
  - GEOIP,,DIRECT
  - GEOIP,CN,DIRECT
  - MATCH,PROXY

黑名单模式 Rules 配置方式

  • 黑名单模式,意为「只有命中规则的网络流量,才使用代理」,适用于服务器线路网络质量不稳定或不够快,或服务器流量紧缺的用户。通常也是软路由用户、家庭网关用户的常用模式。
  • 以下配置中,除了 DIRECTREJECT 是默认存在于 Clash 中的 policy(路由策略/流量处理策略),其余均为自定义 policy,对应配置文件中 proxiesproxy-groups 中的 name。如你直接使用下面的 rules 规则,则需要在 proxiesproxy-groups 中手动配置一个 namePROXY 的 policy。
rules:
  - PROCESS-NAME,v2ray,DIRECT
  - PROCESS-NAME,xray,DIRECT
  - PROCESS-NAME,naive,DIRECT
  - PROCESS-NAME,trojan,DIRECT
  - PROCESS-NAME,trojan-go,DIRECT
  - PROCESS-NAME,ss-local,DIRECT
  - PROCESS-NAME,privoxy,DIRECT
  - PROCESS-NAME,leaf,DIRECT
  - PROCESS-NAME,v2ray.exe,DIRECT
  - PROCESS-NAME,xray.exe,DIRECT
  - PROCESS-NAME,naive.exe,DIRECT
  - PROCESS-NAME,trojan.exe,DIRECT
  - PROCESS-NAME,trojan-go.exe,DIRECT
  - PROCESS-NAME,ss-local.exe,DIRECT
  - PROCESS-NAME,privoxy.exe,DIRECT
  - PROCESS-NAME,leaf.exe,DIRECT
  - PROCESS-NAME,Surge,DIRECT
  - PROCESS-NAME,Surge 2,DIRECT
  - PROCESS-NAME,Surge 3,DIRECT
  - PROCESS-NAME,Surge 4,DIRECT
  - PROCESS-NAME,Surge%202,DIRECT
  - PROCESS-NAME,Surge%203,DIRECT
  - PROCESS-NAME,Surge%204,DIRECT
  - PROCESS-NAME,Thunder,DIRECT
  - PROCESS-NAME,DownloadService,DIRECT
  - PROCESS-NAME,qBittorrent,DIRECT
  - PROCESS-NAME,Transmission,DIRECT
  - PROCESS-NAME,fdm,DIRECT
  - PROCESS-NAME,aria2c,DIRECT
  - PROCESS-NAME,Folx,DIRECT
  - PROCESS-NAME,NetTransport,DIRECT
  - PROCESS-NAME,uTorrent,DIRECT
  - PROCESS-NAME,WebTorrent,DIRECT
  - PROCESS-NAME,aria2c.exe,DIRECT
  - PROCESS-NAME,BitComet.exe,DIRECT
  - PROCESS-NAME,fdm.exe,DIRECT
  - PROCESS-NAME,NetTransport.exe,DIRECT
  - PROCESS-NAME,qbittorrent.exe,DIRECT
  - PROCESS-NAME,Thunder.exe,DIRECT
  - PROCESS-NAME,ThunderVIP.exe,DIRECT
  - PROCESS-NAME,transmission-daemon.exe,DIRECT
  - PROCESS-NAME,transmission-qt.exe,DIRECT
  - PROCESS-NAME,uTorrent.exe,DIRECT
  - PROCESS-NAME,WebTorrent.exe,DIRECT
  - DOMAIN,clash.razord.top,DIRECT
  - DOMAIN,yacd.haishan.me,DIRECT
  - RULE-SET,private,DIRECT
  - RULE-SET,reject,REJECT
  - RULE-SET,tld-not-cn,PROXY
  - RULE-SET,gfw,PROXY
  - RULE-SET,greatfire,PROXY
  - RULE-SET,telegramcidr,PROXY
  - MATCH,DIRECT

致谢

项目 Star 数增长趋势

Stargazers over time

Issues
  • battle.net域名在proxy规则里

    battle.net域名在proxy规则里

    battle.net是暴雪战网的域名,似乎至少不应该默认就是用代理?这样干国服就没办法正常登录了。

    opened by cjwddtc 7
  • 建议 reject.txt 删除 mx.technolutions.net

    建议 reject.txt 删除 mx.technolutions.net

    域名下不仅包含广告还有一些大学账号申请/夏校申请使用的跳转链接,屏蔽此域名可能会导致大量误伤 Screen Shot 2020-12-13 at 23 52 21

    opened by edgexyz 4
  • 出站模式使用规则,无法连接Twitter。

    出站模式使用规则,无法连接Twitter。

    使用环境:ClashX Pro 使用白名单配置,当出站模式使用规则连接时无法打开Twitter,改为全局模式时才可以。

    rules:
      # Lan
      - IP-CIDR,192.168.1.0/16,DIRECT
      - DOMAIN,clash.razord.top,DIRECT
      - DOMAIN,yacd.haishan.me,DIRECT
      # - PROCESS-NAME,v2ray,DIRECT
      - RULE-SET,reject,REJECT
      - RULE-SET,cncidr,DIRECT
      - RULE-SET,lancidr,DIRECT
      - RULE-SET,gfw,PROXY
      - RULE-SET,icloud,DIRECT
      - RULE-SET,apple,DIRECT
      - RULE-SET,google,PROXY
      - RULE-SET,proxy,PROXY
      - RULE-SET,direct,DIRECT
      - GEOIP,,DIRECT
      - GEOIP,CN,DIRECT
      - MATCH,PROXY
    

    以上是我的配置。 请问怎么解决? 非常感谢

    opened by bennieniu 4
  • 安卓11,clash使用规则发现GOOGLE PLAY商店下载应用一直处于等待中,全局代理能够正常下载。

    安卓11,clash使用规则发现GOOGLE PLAY商店下载应用一直处于等待中,全局代理能够正常下载。

    Capture on 2021-07-25 11:11:06.252

    11:11:08.766 Debug: [PKG] 172.31.255.253:35972 --> 108.177.125.188:5228 by 10213[com.google.uid.shared] 11:11:09.469 Info: [TCP] 172.31.255.253:35972 --> 108.177.125.188 match Match() using PROXY[trojan] 11:11:13.812 Debug: [PKG] 172.31.255.253:60084 --> connectivitycheck.gstatic.com:443 by 10212[com.android.vending] 11:11:14.286 Info: [TCP] 172.31.255.253:60084 --> connectivitycheck.gstatic.com match DomainSuffix(connectivitycheck.gstatic.com) using PROXY[trojan] 11:11:42.968 Debug: [PKG] 172.31.255.253:47742 --> diagmon-apigw.samsung.com.cn:443 by 1000[android.uid.system] 11:11:43.083 Info: [TCP] 172.31.255.253:47742 --> diagmon-apigw.samsung.com.cn match RuleSet(direct) using DIRECT 11:11:45.533 Debug: [PKG] 172.31.255.253:39552 --> in.appcenter.ms:443 by 10346[com.github.kr328.clash] 11:11:45.966 Info: [TCP] 172.31.255.253:39552 --> in.appcenter.ms match RuleSet(proxy) using PROXY[trojan] 11:11:50.808 Debug: [PKG] 172.31.255.253:51806 --> android.clients.google.com:443 by -1[] 11:11:51.417 Info: [UDP] 172.31.255.253:51806 --> android.clients.google.com match DomainKeyword(google) using PROXY[trojan] 11:11:52.260 Debug: [PKG] 172.31.255.253:53928 --> android.clients.google.com:443 by 10212[com.android.vending] 11:11:52.843 Info: [TCP] 172.31.255.253:53928 --> android.clients.google.com match DomainKeyword(google) using PROXY[trojan] 11:11:53.588 Debug: [PKG] 172.31.255.253:50922 --> services.googleapis.cn:443 by 10212[com.android.vending] 11:11:54.124 Info: [TCP] 172.31.255.253:50922 --> services.googleapis.cn match DomainKeyword(google) using PROXY[trojan] 11:11:54.760 Debug: [PKG] 172.31.255.253:37608 --> r7---sn-2x3eln7r.xn--ngstr-lra8j.com:443 by 10212[com.android.vending] 11:11:55.398 Info: [TCP] 172.31.255.253:37608 --> r7---sn-2x3eln7r.xn--ngstr-lra8j.com match RuleSet(proxy) using PROXY[trojan] 11:12:00.117 Debug: [PKG] 172.31.255.253:38331 --> services.googleapis.cn:443 by -1[] 11:12:00.369 Debug: [PKG] 172.31.255.253:37614 --> r7---sn-2x3eln7r.xn--ngstr-lra8j.com:443 by 10212[com.android.vending] 11:12:00.678 Info: [UDP] 172.31.255.253:38331 --> services.googleapis.cn match DomainKeyword(google) using PROXY[trojan] 11:12:00.886 Info: [TCP] 172.31.255.253:37614 --> r7---sn-2x3eln7r.xn--ngstr-lra8j.com match RuleSet(proxy) using PROXY[trojan]

    opened by lu989898 3
  • 为什么将v2ray等设置为DIRECT

    为什么将v2ray等设置为DIRECT

    如题, rules 中PROCESS-NAME大量的DIRECT, 不太明白用意

    opened by eastarpen 3
  • steam下载受到影响

    steam下载受到影响

    白名单模式和黑名单模式都试了,steam下载和商店等正常可访问地址都走了代理

    opened by verity886 3
  • 加入规则集后没有效果,可以指点一下吗

    加入规则集后没有效果,可以指点一下吗

    Rules 是空的 image image

    配置文件是这样的:

    mixed-port: 7890
    allow-lan: false
    external-controller: 127.0.0.1:9090
    secret: ''
    mode: rule
    
    proxies:
      - name: "bwg_ss"
        type: ss
        server: xxxxxxxxxxxxxxxxxxx
        port: 21920
        cipher: chacha20
        password: xxxxxxxxxxxxxxxxxxx
    
      - name: "bwg_vmess"
        type: vmess
        server: xxxxxxxxxxxxxxxxxxx
        port: 443
        uuid: xxxxxxxxxxxxxxxxxxx
        alterId: 0
        cipher: auto
        tls: true
        network: ws
        ws-path: /hello
    
    proxy-groups:
      - name: Proxy
        type: select
        proxies:
          - bwg_ss
          - bwg_vmess
    
    
    rule-providers:
      reject:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/reject.txt"
        path: ./ruleset/reject.yaml
        interval: 86400
    
      icloud:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/icloud.txt"
        path: ./ruleset/icloud.yaml
        interval: 86400
    
      apple:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/apple.txt"
        path: ./ruleset/apple.yaml
        interval: 86400
    
      google:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/google.txt"
        path: ./ruleset/google.yaml
        interval: 86400
    
      proxy:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/proxy.txt"
        path: ./ruleset/proxy.yaml
        interval: 86400
    
      direct:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/direct.txt"
        path: ./ruleset/direct.yaml
        interval: 86400
    
      private:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/private.txt"
        path: ./ruleset/private.yaml
        interval: 86400
    
      gfw:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/gfw.txt"
        path: ./ruleset/gfw.yaml
        interval: 86400
    
      greatfire:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/greatfire.txt"
        path: ./ruleset/greatfire.yaml
        interval: 86400
    
      tld-not-cn:
        type: http
        behavior: domain
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/tld-not-cn.txt"
        path: ./ruleset/tld-not-cn.yaml
        interval: 86400
    
      telegramcidr:
        type: http
        behavior: ipcidr
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/telegramcidr.txt"
        path: ./ruleset/telegramcidr.yaml
        interval: 86400
    
      cncidr:
        type: http
        behavior: ipcidr
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/cncidr.txt"
        path: ./ruleset/cncidr.yaml
        interval: 86400
    
      lancidr:
        type: http
        behavior: ipcidr
        url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/lancidr.txt"
        path: ./ruleset/lancidr.yaml
        interval: 86400
    
    rules:
      - PROCESS-NAME,v2ray,DIRECT
      - PROCESS-NAME,xray,DIRECT
      - PROCESS-NAME,naive,DIRECT
      - PROCESS-NAME,trojan,DIRECT
      - PROCESS-NAME,trojan-go,DIRECT
      - PROCESS-NAME,ss-local,DIRECT
      - PROCESS-NAME,privoxy,DIRECT
      - PROCESS-NAME,leaf,DIRECT
      - PROCESS-NAME,v2ray.exe,DIRECT
      - PROCESS-NAME,xray.exe,DIRECT
      - PROCESS-NAME,naive.exe,DIRECT
      - PROCESS-NAME,trojan.exe,DIRECT
      - PROCESS-NAME,trojan-go.exe,DIRECT
      - PROCESS-NAME,ss-local.exe,DIRECT
      - PROCESS-NAME,privoxy.exe,DIRECT
      - PROCESS-NAME,leaf.exe,DIRECT
      - PROCESS-NAME,Surge,DIRECT
      - PROCESS-NAME,Surge 2,DIRECT
      - PROCESS-NAME,Surge 3,DIRECT
      - PROCESS-NAME,Surge 4,DIRECT
      - PROCESS-NAME,Surge%202,DIRECT
      - PROCESS-NAME,Surge%203,DIRECT
      - PROCESS-NAME,Surge%204,DIRECT
      - PROCESS-NAME,Thunder,DIRECT
      - PROCESS-NAME,DownloadService,DIRECT
      - PROCESS-NAME,qBittorrent,DIRECT
      - PROCESS-NAME,Transmission,DIRECT
      - PROCESS-NAME,fdm,DIRECT
      - PROCESS-NAME,aria2c,DIRECT
      - PROCESS-NAME,Folx,DIRECT
      - PROCESS-NAME,NetTransport,DIRECT
      - PROCESS-NAME,uTorrent,DIRECT
      - PROCESS-NAME,WebTorrent,DIRECT
      - PROCESS-NAME,aria2c.exe,DIRECT
      - PROCESS-NAME,BitComet.exe,DIRECT
      - PROCESS-NAME,fdm.exe,DIRECT
      - PROCESS-NAME,NetTransport.exe,DIRECT
      - PROCESS-NAME,qbittorrent.exe,DIRECT
      - PROCESS-NAME,Thunder.exe,DIRECT
      - PROCESS-NAME,ThunderVIP.exe,DIRECT
      - PROCESS-NAME,transmission-daemon.exe,DIRECT
      - PROCESS-NAME,transmission-qt.exe,DIRECT
      - PROCESS-NAME,uTorrent.exe,DIRECT
      - PROCESS-NAME,WebTorrent.exe,DIRECT
      - DOMAIN,clash.razord.top,DIRECT
      - DOMAIN,yacd.haishan.me,DIRECT
      - RULE-SET,private,DIRECT
      - RULE-SET,reject,REJECT
      - RULE-SET,icloud,DIRECT
      - RULE-SET,apple,DIRECT
      - RULE-SET,google,DIRECT
      - RULE-SET,proxy,PROXY
      - RULE-SET,direct,DIRECT
      - RULE-SET,telegramcidr,PROXY
      - GEOIP,,DIRECT
      - GEOIP,CN,DIRECT
      - MATCH,PROXY
    
    
    opened by eromoe 3
  • why clash dashboard  http://yacd.haishan.me/ math proxy rule?

    why clash dashboard http://yacd.haishan.me/ math proxy rule?

    截屏2020-11-04 上午7 33 57

    为啥yacd没写在规则里呀

    用的是:白名单模式 Rules 配置方式(推荐) + Rule Providers

    如果是漏了希望能修一下规则

    opened by Ehco1996 3
  • telegram的IP

    telegram的IP

    建议从 http://bgp.he.net 抓取IP,我自己整理的 payload:

    • '67.198.55.0/24'
    • '91.108.4.0/22'
    • '91.108.8.0/22'
    • '91.108.12.0/22'
    • '91.108.16.0/22'
    • '91.108.20.0/22'
    • '91.108.20.0/23'
    • '91.108.56.0/22'
    • '91.108.56.0/23'
    • '95.161.64.0/20'
    • '95.161.84.0/23'
    • '109.239.140.0/24'
    • '149.154.160.0/22'
    • '149.154.164.0/22'
    • '149.154.168.0/22'
    • '149.154.172.0/22'
    • '2001:67c:4e8::/48'
    • '2001:b28:f23c::/48'
    • '2001:b28:f23d::/48'
    • '2001:b28:f23f::/48'
    • '2001:b28:f242::/48'
    opened by forgmissyou 3
  • 希望新增Micsoft规则txt

    希望新增Micsoft规则txt

    null

    opened by RainyMoment 0
  • ✨ 激赏 | Donation ✨

    ✨ 激赏 | Donation ✨

    通过比特币激励我创作|Buy me a coffee by BTC:

    • 比特币(BTC)bech32 地址:bc1qfe4nxcanet4w4ph8pf6qqyf263y68vw26nv9j9
    • 比特币(BTC)地址:3PRyneb1D7jFFBakAaJiCRSsxsXAtMr7LN
    opened by Loyalsoldier 0
  • 提供一种parser可以自动替换订阅的规则为自定义规则

    提供一种parser可以自动替换订阅的规则为自定义规则

    首先在parser中,使用reg来匹配所有url,或者自定义url均可:

    parsers: # array
      - reg: .*$
        file: "path/to/parser.js"
    

    在parser.js中可以这样写:

    module.exports.parse = async (raw, { axios, yaml, notify, console }, { name, url, interval, selected }) => {
        var obj = yaml.parse(raw)
        var first_name=obj['proxy-groups'][0]['name']
    
        var rules=["PROCESS-NAME,v2ray,DIRECT",
        "PROCESS-NAME,xray,DIRECT",
        "PROCESS-NAME,naive,DIRECT",
        "PROCESS-NAME,trojan,DIRECT",
        "PROCESS-NAME,trojan-go,DIRECT",
        "PROCESS-NAME,ss-local,DIRECT",
        "PROCESS-NAME,privoxy,DIRECT",
        "PROCESS-NAME,leaf,DIRECT",
        "PROCESS-NAME,v2ray.exe,DIRECT",
        "PROCESS-NAME,xray.exe,DIRECT",
        "PROCESS-NAME,naive.exe,DIRECT",
        "PROCESS-NAME,trojan.exe,DIRECT",
        "PROCESS-NAME,trojan-go.exe,DIRECT",
        "PROCESS-NAME,ss-local.exe,DIRECT",
        "PROCESS-NAME,privoxy.exe,DIRECT",
        "PROCESS-NAME,leaf.exe,DIRECT",
        "PROCESS-NAME,Surge,DIRECT",
        "PROCESS-NAME,Surge 2,DIRECT",
        "PROCESS-NAME,Surge 3,DIRECT",
        "PROCESS-NAME,Surge 4,DIRECT",
        "PROCESS-NAME,Surge%202,DIRECT",
        "PROCESS-NAME,Surge%203,DIRECT",
        "PROCESS-NAME,Surge%204,DIRECT",
        "PROCESS-NAME,Thunder,DIRECT",
        "PROCESS-NAME,DownloadService,DIRECT",
        "PROCESS-NAME,qBittorrent,DIRECT",
        "PROCESS-NAME,Transmission,DIRECT",
        "PROCESS-NAME,fdm,DIRECT",
        "PROCESS-NAME,aria2c,DIRECT",
        "PROCESS-NAME,Folx,DIRECT",
        "PROCESS-NAME,NetTransport,DIRECT",
        "PROCESS-NAME,uTorrent,DIRECT",
        "PROCESS-NAME,WebTorrent,DIRECT",
        "PROCESS-NAME,aria2c.exe,DIRECT",
        "PROCESS-NAME,BitComet.exe,DIRECT",
        "PROCESS-NAME,fdm.exe,DIRECT",
        "PROCESS-NAME,NetTransport.exe,DIRECT",
        "PROCESS-NAME,qbittorrent.exe,DIRECT",
        "PROCESS-NAME,Thunder.exe,DIRECT",
        "PROCESS-NAME,ThunderVIP.exe,DIRECT",
        "PROCESS-NAME,transmission-daemon.exe,DIRECT",
        "PROCESS-NAME,transmission-qt.exe,DIRECT",
        "PROCESS-NAME,uTorrent.exe,DIRECT",
        "PROCESS-NAME,WebTorrent.exe,DIRECT",
        "DOMAIN,clash.razord.top,DIRECT",
        "DOMAIN,yacd.haishan.me,DIRECT",
        "RULE-SET,private,DIRECT",
        "RULE-SET,direct,DIRECT",
        "RULE-SET,icloud,DIRECT",
        "RULE-SET,apple,DIRECT",
        "RULE-SET,google,DIRECT",
        "RULE-SET,reject,REJECT",
        "RULE-SET,proxy,"+first_name,
        "RULE-SET,telegramcidr,"+first_name,
        "MATCH,DIRECT"]
        
        obj['rules']=rules
    
        var str_obj=yaml.stringify(obj)
        
        var rule_providers=`rule-providers:
        reject:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/reject.txt
          path: ./ruleset/reject.yaml
          interval: 86400
        icloud:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/icloud.txt
          path: ./ruleset/icloud.yaml
          interval: 86400
        apple:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/apple.txt
          path: ./ruleset/apple.yaml
          interval: 86400
        google:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/google.txt
          path: ./ruleset/google.yaml
          interval: 86400
        proxy:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/proxy.txt
          path: ./ruleset/proxy.yaml
          interval: 86400
        direct:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/direct.txt
          path: ./ruleset/direct.yaml
          interval: 86400
        private:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/private.txt
          path: ./ruleset/private.yaml
          interval: 86400
        gfw:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/gfw.txt
          path: ./ruleset/gfw.yaml
          interval: 86400
        greatfire:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/greatfire.txt
          path: ./ruleset/greatfire.yaml
          interval: 86400
        tld-not-cn:
          type: http
          behavior: domain
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/tld-not-cn.txt
          path: ./ruleset/tld-not-cn.yaml
          interval: 86400
        telegramcidr:
          type: http
          behavior: ipcidr
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/telegramcidr.txt
          path: ./ruleset/telegramcidr.yaml
          interval: 86400
        cncidr:
          type: http
          behavior: ipcidr
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/cncidr.txt
          path: ./ruleset/cncidr.yaml
          interval: 86400
        lancidr:
          type: http
          behavior: ipcidr
          url: https://cdn.jsdelivr.net/gh/Loyalsoldier/[email protected]/lancidr.txt
          path: ./ruleset/lancidr.yaml
          interval: 86400`
          str_obj+=rule_providers
        return str_obj
      }
    

    大家可以按照自己的需要修改

    opened by Jie-Qiao 7
Releases(202110202240)
Owner
Loyalsoldier
😋 😜 😛 emoji is primary productive force.
Loyalsoldier
Clash - A rule-based tunnel in Go.

Clash A rule-based tunnel in Go. Features Local HTTP/HTTPS/SOCKS server with authentication support VMess, Shadowsocks, Trojan, Snell protocol support

Dreamacro 19.8k Oct 18, 2021
内网穿透,编译只需 1 秒,部署 1 分钟。

一、前言 网上的内网穿透,大都不合我的心意,所以我想自己写一个,最初的动机是自己需要用,顺便带大家用一用,结果还是为了省事,借用了 ngrok 的逻辑,按照我的需要进行优化。我会基于之前的使用经验,不断优化改造。 二、特别说明 1、本次开放主要是帮助大家本地的开发,不是为了收费。所以没有任何收费逻辑

Zach-Lu 23 Sep 30, 2021
Cloud Native Tunnel

inlets is a Cloud Native Tunnel written in Go Expose your local endpoints to the Internet or within a remote network, without touching firewalls. Foll

inlets 8.4k Oct 15, 2021
The fastest way to create self-hosted exit-servers

inletsctl - the fastest way to create self-hosted exit-servers inletsctl automates the task of creating an exit-server (tunnel server) on public cloud

inlets 369 Oct 17, 2021
A function for chaos testing with OpenFaaS

chaos-fn A function for chaos testing with OpenFaaS Use-cases Test retries on certain HTTP codes Test timeouts Test certain lengths of HTTP request bo

Alex Ellis 4 Aug 4, 2021
NetFlix批量检测,golang编写

netflix-all-verify NetFlix批量检测,golang编写 Netflix的大规模封锁,网上的Netflix检测脚本只有本地检测的功能, 因而诞生了本项目 本项目基于netflix-verify 修改,增加了对批量检测的功能 使用方法 在终端运行 netflix-all-veri

null 31 Oct 14, 2021
Ethr is a Comprehensive Network Measurement Tool for TCP, UDP & ICMP.

Ethr Ethr is a cross platform network performance measurement tool written in golang. The goal of this project is to provide a native tool for compreh

Microsoft 5k Oct 22, 2021
Official IVPN Desktop app

IVPN for Desktop (Windows/macOS/Linux) IVPN for Desktop is the official IVPN app for desktop platforms. Some of the features include: multiple protoco

IVPN 37 Oct 17, 2021
tidal discord rich presence for windows

discordtidal Remember when Discord added a Spotify integration and all of your friends started having fun with it, but then being the weirdo you are,

Nick 5 Sep 23, 2021
Command-line tool and library for Windows remote command execution in Go

WinRM for Go Note: if you're looking for the winrm command-line tool, this has been splitted from this project and is available at winrm-cli This is a

Brice Figureau 328 Oct 8, 2021
:alarm_clock: :fire: A TCP proxy to simulate network and system conditions for chaos and resiliency testing

Toxiproxy Toxiproxy is a framework for simulating network conditions. It's made specifically to work in testing, CI and development environments, supp

Shopify 5.8k Oct 17, 2021
阿里云盘的webdav协议开源实现

介绍 本项目实现了阿里云盘的webdav协议,只需要简单的配置一下,就可以让阿里云盘变身为webdav协议的文件服务器。 基于此,你可以把阿里云盘挂载为Windows、Linux、Mac系统的磁盘,可以通过NAS系统做文件管理或文件同步,更多玩法等你挖掘 如何使用 支持refreshToken登录方

link 39 Oct 24, 2021
将TCP放到WebSocket中传输(就能走CDN)基于ws的内网穿透 隧道代理 tcp2ws

Tcp over WebSocket (TCP to WebSocket) 本工具能 使用WebSocket创建隧道,实现TCP端口转发 至于这样脱裤子放屁的操作有什么用? 举个例子,一个服务器只能通过cdn的http转发,它也不能联网,这时你就可以利用此工具将需要转发的端口(比如22)转换成ws协

Sparkle 25 Oct 17, 2021
Decentralized Chat ( 去中心化的聊天系统 )

dchat Introduce dchat (Decentralized Chat) 一款去中心化的聊天系统。 Features 轻量级 Unix指令交互 去中心化 断线重连 支持集群 分布式ID Start Install go get -u github.com/awesome-cmd/dcha

null 11 Jul 20, 2021
golang从0到1编写基于TCP的内网穿透工具

第一步:搭建TCP网桥服务器 tag_link 目的: 建立一个TCP长连接一个网桥服务器,所谓的网桥,其实质就是一个TCP服务器和客户端。用来保证传递云端与终端的实时通信。这样的服务器百度有很多例子,在此不多赘述。 bridgo.go 为部署在云端的网桥服务。 client.go 部署在本地终端设

null 5 Jul 23, 2021
A Windows named pipe implementation written in pure Go.

npipe Package npipe provides a pure Go wrapper around Windows named pipes. Windows named pipe documentation: http://msdn.microsoft.com/en-us/library/w

Nate Finch 229 Oct 13, 2021