Compare commits

...

2 Commits

Author SHA1 Message Date
GitHub Action
a06c1739a4 Update subnet 2026-03-16 15:18:38 +00:00
Kirill Sobakin
b8fe629d16 Feat: Add ASN Telegram. Fix meet hardcode #110 2026-03-16 18:12:46 +03:00
6 changed files with 35 additions and 19 deletions

View File

@@ -1,3 +1,3 @@
74.125.250.0/24
74.125.247.128/32
142.250.82.0/24
74.125.250.0/24
142.250.82.0/24

View File

@@ -111,9 +111,7 @@
64.83.69.0/24
64.94.92.0/23
64.95.150.0/23
64.205.192.0/24
64.225.244.0/23
65.86.32.0/24
66.70.128.0/17
66.92.11.0/24
66.92.25.0/24
@@ -518,7 +516,6 @@
213.218.214.0/24
213.251.128.0/18
216.24.220.0/23
216.132.95.0/24
216.183.120.0/24
216.203.15.0/24
216.211.218.0/24

View File

@@ -1,9 +1,8 @@
91.108.56.0/22
91.108.4.0/22
91.108.8.0/22
91.108.16.0/22
91.108.12.0/22
149.154.160.0/20
91.105.192.0/23
91.108.20.0/22
91.108.4.0/22
91.108.8.0/21
91.108.16.0/21
91.108.56.0/22
95.161.64.0/20
149.154.160.0/20
185.76.151.0/24

View File

@@ -1,3 +1,3 @@
2001:4860:4864:5::0/64
2001:4860:4864:4:8000::/128
2001:4860:4864:6::/64
2001:4860:4864:5::/64
2001:4860:4864:6::/64

View File

@@ -1,5 +1,4 @@
2001:b28:f23d::/48
2001:b28:f23f::/48
2001:67c:4e8::/48
2001:b28:f23c::/48
2001:b28:f23c::/47
2001:b28:f23f::/48
2a0a:f280::/32

View File

@@ -1,4 +1,4 @@
#!/usr/bin/python3.10
#!/usr/bin/env python3.13
import ipaddress
import urllib.request
@@ -14,6 +14,7 @@ IPv6_DIR = 'Subnets/IPv6'
AS_META = ['32934','63293','54115','149642']
AS_TWITTER = ['13414']
AS_TELEGRAM = ['44907','59930','62014','62041','211157']
AS_HETZNER = ['24940']
AS_OVH = ['16276']
AS_DIGITALOCEAN = ['14061']
@@ -38,6 +39,19 @@ TELEGRAM_CIDR_URL = 'https://core.telegram.org/resources/cidr.txt'
CLOUDFLARE_V4='https://www.cloudflare.com/ips-v4'
CLOUDFLARE_V6='https://www.cloudflare.com/ips-v6'
# https://support.google.com/a/answer/1279090
GOOGLE_MEET = 'google_meet.lst'
GOOGLE_MEET_V4 = [
'74.125.247.128/32',
'74.125.250.0/24',
'142.250.82.0/24',
]
GOOGLE_MEET_V6 = [
'2001:4860:4864:4:8000::/128',
'2001:4860:4864:5::/64',
'2001:4860:4864:6::/64',
]
AWS_IP_RANGES_URL='https://ip-ranges.amazonaws.com/ip-ranges.json'
subnet_list = []
@@ -177,7 +191,10 @@ if __name__ == '__main__':
write_subnets_to_file(ipv6_discord, f'{IPv6_DIR}/{DISCORD}')
# Telegram
ipv4_telegram, ipv6_telegram = download_ready_split_subnets(TELEGRAM_CIDR_URL)
ipv4_telegram_file, ipv6_telegram_file = download_ready_split_subnets(TELEGRAM_CIDR_URL)
ipv4_telegram_asn, ipv6_telegram_asn = process_subnets(subnet_list, AS_TELEGRAM)
ipv4_telegram = subnet_summarization(ipv4_telegram_file + [str(s) for s in ipv4_telegram_asn])
ipv6_telegram = subnet_summarization(ipv6_telegram_file + [str(s) for s in ipv6_telegram_asn])
write_subnets_to_file(ipv4_telegram, f'{IPv4_DIR}/{TELEGRAM}')
write_subnets_to_file(ipv6_telegram, f'{IPv6_DIR}/{TELEGRAM}')
@@ -186,6 +203,10 @@ if __name__ == '__main__':
write_subnets_to_file(ipv4_cloudflare, f'{IPv4_DIR}/{CLOUDFLARE}')
write_subnets_to_file(ipv6_cloudflare, f'{IPv6_DIR}/{CLOUDFLARE}')
# Google Meet
write_subnets_to_file(GOOGLE_MEET_V4, f'{IPv4_DIR}/{GOOGLE_MEET}')
write_subnets_to_file(GOOGLE_MEET_V6, f'{IPv6_DIR}/{GOOGLE_MEET}')
# AWS CloudFront
ipv4_cloudfront, ipv6_cloudfront = download_aws_cloudfront_subnets()
write_subnets_to_file(ipv4_cloudfront, f'{IPv4_DIR}/{CLOUDFRONT}')