reed0214 / chn-iplist

Chnroutes rules for routers、Shadowrocket、Quantumult、Kitsunebi、acl、BifrostV、v2rayNG、clash、pac、v2ray config file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chn-iplist

数据来源 APNIC Delegated List,将其转化为 txt 文件以在路由器上使用,并以此制作 Shadowrocket、Quantumult、Kitsunebi、acl、BifrostV、v2rayNG、clash、pac 规则和 v2ray 配置内嵌规则,仅包含 chn-ip 列表及部分谷歌和国内常见广告屏蔽规则。每月更新一次。

Subscribe URL:

chnroute.txt: https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/chnroute.txt

Shadowrocket: https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Shadowrocket.conf

Quantumult (Filter): https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Quantumult.conf

Quantumult (no chn-ip) : https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Quantumult_noIP.conf

Kitsunebi: https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Kitsunebi.conf

Kitsunebi-android: https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Kitsunebi-android.conf

acl (no ban ads) : https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/chn.acl

acl (ban ads) : https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/chn_banad.acl

pac: https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/chnroute.pac (默认非 chn-ip 网站走 socks5 localhost:1080 代理)

需手动更新:

BifrostV:在相关文件夹下按规则类型复制粘贴至应用内。

v2ray 配置内嵌规则,将规则文本加入配置文件 routing 对应区域。域名解析策略自行选择。

v2rayNG :分别将proxydirectblock 规则复制粘贴至应用内。

clash:https://github.com/PaPerseller/chn-iplist/blob/master/clash/clash.yml

clash (no chn-ip):https://github.com/PaPerseller/chn-iplist/blob/master/clash/clash_noIP.yml

PS.

  1. Quantumult (no chn-ip) 与 clash (no chn-ip) 均可额外使用 geoip 数据库:GeoLite2,Quantumult (no chn-ip) 还可使用 快捷指令 导入。
  2. v2rayNG 规则可与 pc 客户端 v2rayN 通用。
  3. 已加入 ipv6 列表的规则:chnroute.txt、chnroute.pac、chn.acl、clash、v2rayNG、Kitsunebi-android、shadowrocket
  4. Kitsunebi android 用户若服务器不支持 ipv6,请于设置中允许地址类型设为仅IPV4。Shadowrocket (ios) 等有ipv6开关的同理。
  5. 欢迎知情人通过 issue 告知 clash 内 ipv6 规则语法为 IP-CIDR 还是 IP-CIDR6。
  6. 12月更新重命名 Kitsunebi-android 规则文件,去除“test”字样,需手动更改订阅地址。

Todo & Test:

测试中:

chn-iplist.sh+ipv6 版
clash 规则

可能加入 Quantumult X 规则

路由器本地脚本使用

使用 chmod +x /etc/sbin/chn-iplist.sh 赋予其可执行权限。

致谢

  • CIDR2PAC - A es6 script for coverting CIDRs list to PAC proxy script.

About

Chnroutes rules for routers、Shadowrocket、Quantumult、Kitsunebi、acl、BifrostV、v2rayNG、clash、pac、v2ray config file.

License:MIT License


Languages

Language:JavaScript 99.6%Language:Shell 0.4%