feat: geosite/geoip для Discord со сборкой из апстримов

Домены и сети Discord в geosite.dat и geoip.dat для Xray/3x-ui, плюс
sing-box, Clash/mihomo, AdGuard, текст и готовый фрагмент routing.

Рукописная база живёт в data/discord-base.txt и data/ip/discord-base.txt,
остальное tools/sync.py тянет из пяти публичных апстримов: JSON-исходники
парсятся напрямую, скомпилированные .srs распаковываются через sing-box.
Каждый источник кладётся в свою категорию, недоступный источник не
обнуляет данные, файлы без шапки GENERATED скрипт не трогает.

Ограничения по протоколу и портам (директивы !network / !port) доезжают
до sing-box rule-set и до xray/routing.json. Такие категории намеренно
не входят в сводную discord: там сети вроде 172.64.0.0/13, и без привязки
к UDP-портам правило утащило бы в туннель чужой трафик.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Leonid Pershin
2026-08-10 09:24:08 +03:00
co-authored by Claude Opus 5
commit 61c0ea3558
23 changed files with 7278 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
# discord-base — рукописный список доменов Discord.
# Это единственный доменный файл, который правят руками: остальные
# data/discord-*.txt пересобирает tools/sync.py из апстримов.
dis.gd
discord.co
discord.com
discord.design
discord.dev
discord.gg
discord.gift
discord.gifts
discord.media
discord.new
discord.store
discord.tools
discord-activities.com
discordactivities.com
discordapp.com
discordapp.io
discordapp.net
discordcdn.com
discordmerch.com
discordpartygames.com
discordsays.com
discordstatus.com
# Проекты Discord под собственными доменами.
airhorn.solutions
airhornbot.com
bigbeans.solutions
watchanimeattheoffice.com
# Точные имена: суффикс здесь захватил бы чужие сервисы (Google Storage, Zendesk).
full:discord-attachments-uploads-prd.storage.googleapis.com
full:hammerandchisel.ssl.zendesk.com
+25
View File
@@ -0,0 +1,25 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: itdoginfo/allow-domains, последний релиз
# URL: https://github.com/itdoginfo/allow-domains/releases/latest/download/discord.srs
# Правил: 20
dis.gd
discord-activities.com
discord-attachments-uploads-prd.storage.googleapis.com
discord.co
discord.com
discord.design
discord.dev
discord.gg
discord.gift
discord.gifts
discord.media
discord.new
discord.store
discord.tools
discordactivities.com
discordapp.com
discordapp.net
discordmerch.com
discordpartygames.com
discordsays.com
+33
View File
@@ -0,0 +1,33 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: MetaCubeX meta-rules-dat, ветка sing (домены)
# URL: https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/refs/heads/sing/geo/geosite/discord.json
# Правил: 28
airhorn.solutions
airhornbot.com
bigbeans.solutions
dis.gd
discord-activities.com
discord.co
discord.com
discord.design
discord.dev
discord.gg
discord.gift
discord.gifts
discord.media
discord.new
discord.store
discord.tools
discordactivities.com
discordapp.com
discordapp.io
discordapp.net
discordcdn.com
discordmerch.com
discordpartygames.com
discordsays.com
discordstatus.com
watchanimeattheoffice.com
full:discord-attachments-uploads-prd.storage.googleapis.com
full:hammerandchisel.ssl.zendesk.com
File diff suppressed because it is too large Load Diff
+7
View File
@@ -0,0 +1,7 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Сводная категория: рукописный список плюс всё, что притянул sync.
include:discord-base
include:discord-itdoginfo
include:discord-metacubex
include:discord-youoops
+106
View File
@@ -0,0 +1,106 @@
# discord-base — рукописный список адресов, снятых резолвом доменов Discord.
#
# Внимание: это A-записи, а не сети Discord. Часть адресов принадлежит
# Cloudflare (104.x, 162.159.x, 172.6x.x) и Google (74.125.x, 142.25x.x),
# где они разделяются с чужими сайтами, а часть — Shopify (23.227.38.74,
# магазин) и Vercel (216.198.5x.11). Список стареет: когда апстримы из
# tools/sources.json покрывают нужное, лучше опираться на них.
23.227.38.74
34.126.226.51
64.233.179.207
64.233.181.207
74.125.69.207
74.125.126.207
74.125.132.207
74.125.201.207
74.125.202.207
104.17.51.93
104.17.117.93
104.18.32.174
104.18.34.249
104.18.37.76
104.18.38.75
104.21.25.51
104.21.72.221
104.21.80.173
104.21.82.160
104.21.89.187
108.177.121.207
142.250.125.207
142.250.152.207
142.250.177.91
142.250.177.251
142.250.188.187
142.250.189.123
142.250.189.155
142.250.217.123
142.251.32.27
142.251.34.251
142.251.41.91
142.251.41.155
142.251.184.207
142.251.189.207
142.251.210.123
142.251.210.219
142.251.210.251
142.251.211.27
142.251.211.33
142.251.211.59
142.251.214.91
142.251.215.155
162.159.128.232
162.159.128.233
162.159.128.234
162.159.128.235
162.159.129.232
162.159.129.233
162.159.129.234
162.159.129.235
162.159.130.232
162.159.130.233
162.159.130.234
162.159.130.235
162.159.133.232
162.159.133.233
162.159.133.234
162.159.134.232
162.159.134.233
162.159.134.234
162.159.135.232
162.159.135.233
162.159.135.234
162.159.136.232
162.159.136.233
162.159.136.234
162.159.137.232
162.159.137.233
162.159.137.234
162.159.138.232
162.159.138.233
162.159.138.234
172.64.149.181
172.64.150.180
172.64.153.7
172.64.155.82
172.65.202.19
172.67.152.113
172.67.155.163
172.67.159.89
172.67.191.5
172.67.222.182
172.217.214.207
172.253.155.207
173.194.42.207
173.194.64.207
173.194.193.207
173.194.194.207
173.194.195.207
173.194.206.207
192.178.129.207
192.178.210.207
192.178.212.207
209.85.145.207
209.85.200.207
216.198.53.11
216.198.54.11
@@ -0,0 +1,10 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: itdoginfo/allow-domains, последний релиз
# URL: https://github.com/itdoginfo/allow-domains/releases/latest/download/discord.srs
# Сетей: 1
# Ограничения: udp 19000-20000
!network: udp
!port: 19000-20000
104.16.0.0/12
@@ -0,0 +1,17 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: itdoginfo/allow-domains, последний релиз
# URL: https://github.com/itdoginfo/allow-domains/releases/latest/download/discord.srs
# Сетей: 8
# Ограничения: udp 50000-65535
!network: udp
!port: 50000-65535
5.200.14.128/25
34.0.0.0/14
35.192.0.0/11
66.22.192.0/18
104.16.0.0/12
138.128.136.0/21
162.158.0.0/15
172.64.0.0/13
+49
View File
@@ -0,0 +1,49 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: legiz-ru/sb-rule-sets, адреса голосовых узлов
# URL: https://raw.githubusercontent.com/legiz-ru/sb-rule-sets/refs/heads/main/discord-voice-ip-list.json
# Сетей: 43
# Ограничения: без ограничений
35.213.129.2/32
35.213.130.27/32
35.213.130.216/31
35.213.131.78/32
35.213.133.191/32
35.213.135.56/32
35.213.136.41/32
35.213.136.207/32
35.213.139.79/32
35.213.142.228/32
35.213.142.249/32
35.213.143.38/32
35.213.145.124/32
35.213.145.149/32
35.213.146.200/32
35.213.149.32/32
35.213.149.99/32
35.213.149.115/32
35.213.150.41/32
35.213.150.163/32
35.213.152.13/32
35.213.153.185/32
35.213.160.90/32
35.213.162.61/32
35.213.163.235/32
35.213.164.163/32
35.213.165.33/32
35.213.165.102/32
35.213.167.165/32
35.213.168.191/32
35.213.169.179/32
35.213.170.10/32
35.213.172.159/32
35.213.173.1/32
35.213.176.117/32
35.213.177.116/32
35.213.177.119/32
35.213.181.44/32
35.213.181.71/32
35.213.182.222/32
35.213.183.188/32
35.213.185.36/32
35.213.188.188/32
+22
View File
@@ -0,0 +1,22 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: vernette/rulesets, голосовой трафик UDP 50000-50099
# URL: https://raw.githubusercontent.com/vernette/rulesets/refs/heads/master/json/discord-voice-chats.json
# Сетей: 13
# Ограничения: udp 50000-50099
!network: udp
!port: 50000-50099
5.200.14.128/25
34.0.0.0/15
34.2.0.0/16
34.3.0.0/23
34.3.2.0/24
35.192.0.0/12
35.208.0.0/12
35.224.0.0/12
35.240.0.0/13
66.22.192.0/18
138.128.136.0/21
162.158.0.0/15
172.64.0.0/13
+60
View File
@@ -0,0 +1,60 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Источник: you-oops-dev/ipranges-singbox (диапазоны сетей)
# URL: https://raw.githubusercontent.com/you-oops-dev/ipranges-singbox/refs/heads/main/discord/discord.srs
# Сетей: 54
# Ограничения: без ограничений
23.227.38.74/32
34.126.226.51/32
104.17.51.93/32
104.17.117.93/32
104.18.32.174/32
104.18.34.249/32
104.18.37.76/32
104.18.38.75/32
104.21.25.51/32
104.21.72.221/32
104.21.80.173/32
104.21.82.160/32
104.21.89.187/32
142.251.32.187/32
142.251.34.91/32
142.251.35.91/32
142.251.40.123/32
142.251.41.27/32
142.251.45.1/32
142.251.45.27/32
142.251.210.155/32
142.251.214.123/32
142.251.215.91/32
142.251.215.187/32
142.251.215.219/32
142.251.215.251/32
142.251.218.27/32
162.159.128.232/30
162.159.129.232/30
162.159.130.232/30
162.159.133.232/31
162.159.133.234/32
162.159.134.232/31
162.159.134.234/32
162.159.135.232/31
162.159.135.234/32
162.159.136.232/31
162.159.136.234/32
162.159.137.232/31
162.159.137.234/32
162.159.138.232/31
162.159.138.234/32
172.64.149.181/32
172.64.150.180/32
172.64.153.7/32
172.64.155.82/32
172.65.202.19/32
172.67.152.113/32
172.67.155.163/32
172.67.159.89/32
172.67.191.5/32
172.67.222.182/32
216.198.53.11/32
216.198.54.11/32
+6
View File
@@ -0,0 +1,6 @@
# GENERATED tools/sync.py — не редактируйте вручную.
# Сводная категория: рукописный список плюс всё, что притянул sync.
include:discord-base
include:discord-legiz
include:discord-youoops