savely-krasovsky/antizapret-sing-box · 文件 下载 ZIP
文件最后提交记录最后更新时间
README.md
以下内容由 AI 翻译,如有问题请点此提交 issue 反馈
以 Rule Set 形式列出的俄罗斯被封锁的域名和 IP 列表
目前也支持旧版的 geosite 和 geoip。
它允许创建规则并仅解除必要网站的封锁:
- 将默认出站设置为
bypass。 - 使用 Rule Set 规则代理 IP
(或使用旧版
geoip:antizapret和geosite:antizapret)。
本项目使用 zapret-info/z-i 仓库 从 Roskomnadzor 获取最新的转储数据。
项目目前由两个实用工具组成:
filegenerator-- 用于从 CSV 转储生成antizapret.srs、antizapret-ruleset.json、geoip.db和geosite.db文件的简单实用工具。githubreleaser-- 用于创建发布版本并上传资产的实用工具。
您可以在此处下载最新的 antizapret.srs、geoip.db 和 geosite.db:
- https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/antizapret.srs
- https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/geoip.db
- https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/geosite.db
无 Cloudflare 重定向的链接:
- https://krasovs.ky/sing-box/antizapret.srs
- https://krasovs.ky/sing-box/antizapret-ruleset.json
- https://krasovs.ky/sing-box/geoip.db
- https://krasovs.ky/sing-box/geosite.db
示例
以下是使用 WireGuard 出站 (您可以轻松将其切换为 Shadowsocks 或 sing-box 支持的其他任何方式)和加密 AdGuard DNS (连接时将通过 WireGuard 工作以屏蔽广告和跟踪器)的配置示例。
{
"log": {
"level": "warn"
},
"dns": {
"servers": [
{
"tag": "adguard-dns",
"address": "tls://dns.adguard-dns.com",
"address_resolver": "local-dns",
"detour": "wireguard-out"
},
{
"tag": "local-dns",
"address": "local",
"detour": "direct-out"
}
],
"rules": [
{
"outbound": "any",
"server": "local-dns"
}
]
},
"inbounds": [
{
"type": "tun",
"inet4_address": "172.16.0.1/30",
"auto_route": true,
"strict_route": true,
"sniff": true
}
],
"outbounds": [
{
"type": "direct",
"tag": "direct-out"
},
{
"type": "wireguard",
"tag": "wireguard-out",
"server": "REDACTED",
"server_port": 51820,
"system_interface": true,
"local_address": [
"10.252.0.1/32",
"2600:xxxx:xxxx:cafe::1/128"
],
"private_key": "REDACTED",
"peer_public_key": "REDACTED",
"pre_shared_key": "REDACTED"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"rule_set": "antizapret",
"outbound": "wireguard-out"
},
{
"protocol": "dns",
"outbound": "dns-out"
}
],
"rule_set": [
{
"tag": "antizapret",
"type": "remote",
"format": "binary",
"url": "https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/antizapret.srs",
"download_detour": "wireguard-out"
}
],
"auto_detect_interface": true
},
"experimental": {
"cache_file": {
"enabled": true
}
}
}