/chn-iplist

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

Primary LanguageJavaScriptMIT LicenseMIT

chn-iplist

数据来源 APNIC Delegated List,将其转化为 txt 文件以在路由器上使用,并以此制作 Shadowrocket、Quantumult、Kitsunebi、acl、BifrostV、v2rayNG、v2rayN、clash、pac、Qv2ray 规则和 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: https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Quantumult.conf

Quantumult(X) (no chn-ip) : https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/Quantumult(X)_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 代理)

clash 远程配置(test): https://raw.githubusercontent.com/PaPerseller/chn-iplist/master/clash/pref.ini

需手动更新:

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

v2ray 配置内嵌规则:将规则文本加入配置文件 routing 对应区域。

v2rayN(G) :分别将 proxydirectdirect-noipblock 规则复制粘贴至应用内。

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

Qv2ray:下载此方案no-chnip 方案后导入。

PS.

  1. 已加入 ipv6 列表的规则:chnroute.txt、chnroute.pac、chn.acl、clash、v2rayN(G)、Kitsunebi-android、shadowrocket、Qv2ray
  2. 若服务器不支持 ipv6,请于 Kitsunebi android 中设置允许地址类型为仅 IPV4。Shadowrocket (ios) 等有 ipv6 开关的同理。
  3. Kitsunebi 相比于 kitsunebi-android,增加 apple 直连并去除 ipv6 规则。Kitsunebi 支持将从 2020-12-15 版起季更一年后结束。
  4. 2020-09-15 版起试用 mos-chinadns 项目 ip 合并优化脚本生成的列表。
  5. v2rayNG(≥1.4.10) 和 Qv2ray 等支持调用 dat 文件资源的,提供无 chnip 规则版,可配合使用 Loyalsoldier/v2ray-rules-dat 加强版规则。Linux 用户可用 bash <(curl https://raw.githubusercontent.com/PaPerseller/fhs-install-v2ray/master/install-dat-release.sh) 更新此资源。

Todo & Test:

测试中:

clash 规则和 clash 策略规则配置文件

路由器本地脚本使用

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

致谢