All Projects → HMBSbige → get_cnip

HMBSbige / get_cnip

Licence: MIT license
获取国内 IP 和域名,生成路由表和 PAC 文件

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to get cnip

Getcndomainsandipv4
获取国内 IP 和域名,生成路由表和 PAC 文件
Stars: ✭ 180 (-12.62%)
Mutual labels:  whitelist, pac, shadowsocksr
Shadowsocks Back China Pac
翻墙回国 Clash, PEPI, PAC 规则
Stars: ✭ 81 (-60.68%)
Mutual labels:  pac, shadowsocksr
Shadowsocksx Ng R
ShadowsocksX-NG-R: Shadowsocks(R) Client for MacOS
Stars: ✭ 393 (+90.78%)
Mutual labels:  pac, shadowsocksr
Shadowsocksx Ng R8
ShadowsocksX-NG-R for MacOS, ShadowsocksR
Stars: ✭ 1,066 (+417.48%)
Mutual labels:  pac, shadowsocksr
Blackwhite
Domain, CIDR, IP black/white list, PAC generator
Stars: ✭ 251 (+21.84%)
Mutual labels:  whitelist, pac
mian-fan-qiang
各大机场免翻墙地址搜集,不定期更新。欢迎收藏,转发。
Stars: ✭ 361 (+75.24%)
Mutual labels:  shadowsocksr
SuperPanel
A new shadowsocks panel based on ThinkPHP
Stars: ✭ 52 (-74.76%)
Mutual labels:  shadowsocksr
ssrrmu
ShadowsocksRR (shadowsocksr/ssr) multi-user and single-user install scripts
Stars: ✭ 56 (-72.82%)
Mutual labels:  shadowsocksr
ssr-decode
一个解析Shadowsocks/ShadowsocksR/V2Ray订阅链接(http/ss/ssr/vmess)并生成json配置文件的百行shell小脚本
Stars: ✭ 53 (-74.27%)
Mutual labels:  shadowsocksr
easylist-pac-privoxy
EasyList Tracker and Adblocks to Proxy Auto Configuration (PAC) File and Privoxy Actions and Filters
Stars: ✭ 99 (-51.94%)
Mutual labels:  pac
whitelister
Simple, basic filtering and validation tool for Node.js.
Stars: ✭ 46 (-77.67%)
Mutual labels:  whitelist
jsCast
📻 An Audio Streaming Application written in JavaScript
Stars: ✭ 23 (-88.83%)
Mutual labels:  whitelist
ssr dockerfile
dockerfile for ssr.
Stars: ✭ 13 (-93.69%)
Mutual labels:  shadowsocksr
unblock
Let's make an annoyance free, better open internet, altogether!
Stars: ✭ 67 (-67.48%)
Mutual labels:  whitelist
SS-Rule-Snippet
搜集、整理、维护 Surge / Quantumult (X) / Shadowrocket / Surfboard / clash (Premium) 实用规则。
Stars: ✭ 8,975 (+4256.8%)
Mutual labels:  shadowsocksr
tcp-multiplexer
A TCP service multiplexer in Python
Stars: ✭ 32 (-84.47%)
Mutual labels:  shadowsocksr
UnboundBL
🛑 DNSBL (adblock) on OPNsense with UnboundBL & Unbound DNS
Stars: ✭ 63 (-69.42%)
Mutual labels:  whitelist
Free-Node-Merge
合并网络上的免费节点 | Merge Free ss, ssr, v2ray nodes
Stars: ✭ 154 (-25.24%)
Mutual labels:  shadowsocksr
AntiBot
Lightweight BungeeCord plugin that aims to stop attacks on your server quickly and efficiently.
Stars: ✭ 42 (-79.61%)
Mutual labels:  whitelist
limit login to ip
nextcloud app that lets you Limit login to IP ranges
Stars: ✭ 20 (-90.29%)
Mutual labels:  whitelist

获取国内IP、域名

不想自己生成的可以直接下载

输出文件用处

chn_ip.txt

就是国内 CIDR v4 + v6

直接放在 ShadowsocksR 的根目录,代理规则选择 "绕过局域网和大陆" 或 "绕过局域网和非大陆"

add.txt

使用以下bat添加路由表,与cmroute.dll同目录

@echo off

net session >nul 2>&1
if not %errorlevel% == 0 (
  echo 请使用右键 "已管理员身份运行" 此脚本
  pause
  exit 1
)

cd /d %~dp0
echo 导入路由表...
rundll32.exe cmroute.dll,SetRoutes /STATIC_FILE_NAME add.txt /DONT_REQUIRE_URL /IPHLPAPI_ACCESS_DENIED_OK
pause

del.txt

使用以下bat删除路由表,与cmroute.dll同目录

@echo off

net session >nul 2>&1
if not %errorlevel% == 0 (
  echo 请使用右键 "已管理员身份运行" 此脚本
  pause
  exit 1
)

cd /d %~dp0
echo 移除路由表...
rundll32.exe cmroute.dll,SetRoutes /STATIC_FILE_NAME del.txt /DONT_REQUIRE_URL /IPHLPAPI_ACCESS_DENIED_OK
pause

注:重启系统后自动清空路由表

chndomains.txt

国内域名列表

ss_cnall.pac

ShadowsocksR 目录内的 pac.txt。

客户端设置为"PAC 模式"、代理规则选择"全局",可绕过国内域名和IP,只代理国外的。

ss_cnip.pac

ShadowsocksR 目录内的 pac.txt。

客户端设置为"PAC 模式"、代理规则选择"全局",可绕过国内IP。

ss_white.pac

ShadowsocksR 目录内的 pac.txt。

可绕过国内域名。

ss_white_r.pac

ShadowsocksR 目录内的 pac.txt。

仅通过国内域名(国外访问大陆)。

whitelist.acl

ShadowsocksR 安卓客户端用 ACL 文件

可绕过国内域名和IP,只代理国外的。

关于cmroute.dll

我能找到的文档:https://technet.microsoft.com/zh-cn/library/dd672665(v=ws.10).aspx

但是文档实在太老,很多都不适用。而且不知道为什么win10提取的cmroute.dll不能用...

简单的来说,

  • 基本格式:

命令 网络目标 MASK 网络掩码 网关 METRIC 跃点数 IF 接口

  • 命令可以是:

    • ADD
    • DELETE
    • REMOVE_GATEWAY
  • 网关 跃点数 接口一般都默认(default)

  • route print 命令查看 接口列表

  • METRIC 不可 省略,且不知道为什么跃点数只能是default,填数字无效。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].