cloud-ip-ranges

Telegram IP ranges

Current IP ranges (CIDRs) used by the Telegram network, updated daily.

categoryVPN & Networks
websitehttps://telegram.org
ranges14 (9 IPv4, 5 IPv6)
last change
downloads1,749
download txt csv json — permalinks, always the latest data
curl -O https://cloud-ip-ranges.com/download/telegram.txt

Ranges

Sample of 14 of 14 ranges. Download the full list above, or check a specific IP.

CIDR Type
91.105.192.0/23 ipv4
91.108.4.0/22 ipv4
91.108.8.0/22 ipv4
91.108.12.0/22 ipv4
91.108.16.0/22 ipv4
91.108.20.0/22 ipv4
91.108.56.0/22 ipv4
149.154.160.0/20 ipv4
185.76.151.0/24 ipv4
2001:67c:4e8::/48 ipv6
2001:b28:f23c::/48 ipv6
2001:b28:f23d::/48 ipv6
2001:b28:f23f::/48 ipv6
2a0a:f280::/32 ipv6

Blocking Telegram

iptables

curl -sO https://cloud-ip-ranges.com/download/telegram.txt
while read ip; do
  iptables -A INPUT -s $ip -j DROP
  iptables -A OUTPUT -d $ip -j DROP
done < telegram.txt

ufw

curl -sO https://cloud-ip-ranges.com/download/telegram.txt
while read ip; do
  ufw deny from $ip
  ufw deny to $ip
done < telegram.txt

fail2ban

sudo tee /etc/fail2ban/filter.d/telegram-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF

sudo tee /etc/fail2ban/jail.d/telegram-block.conf << EOF
[telegram-block]
enabled = true
filter = telegram-block
action = iptables-allports[name=telegram]
logpath = /tmp/telegram.txt
findtime = 1
bantime = -1
maxretry = 1
EOF

curl -so /tmp/telegram.txt https://cloud-ip-ranges.com/download/telegram.txt
sudo systemctl restart fail2ban

pfSense / OPNsense

curl -sO https://cloud-ip-ranges.com/download/telegram.txt
# Firewall > Aliases: new alias TELEGRAM_BLOCK, type Network(s), import the file
# Firewall > Rules > WAN: Action=Block, Source=TELEGRAM_BLOCK

About

These IP ranges cover the Telegram network and are updated regularly from its official source. The data includes IPv4 and IPv6 ranges. Last update was almost 5 years ago.

Other providers

AirVPN, Akamai, Alibaba, Alpha Strike Labs, Amazonbot, Amzn-SearchBot, Amzn-User, Anthropic, AppleBot, Atlassian, AWS, Azure, Backblaze, Baidu, BinaryEdge, BingBot, Bunny, CacheFly, CCBot, Censys, ChatGPT-User, ClaudeBot, Cloudflare, Datadog, DigitalOcean, DuckDuckBot, Fastly, Gabia, G-Core, GitHub, Googlebot, Google Cloud, Google Public DNS, Google Services, GPTBot, Hetzner, Hostway, Huawei Cloud, IBM Cloud, iCloud Private Relay, Internet Archive, IVPN, Leaseweb, Linode, Meta, Microsoft 365, Mistral, Mullvad, NHN Cloud, NordVPN, OpenAI ChatGPT, OpenAI SearchBot, Oracle Cloud, OVHcloud, OVPN.com, PerplexityBot, Perplexity-User, Pingdom, Private Internet Access, QUIC.cloud, Rackspace, Rapid7 Sonar, Salesforce, Scaleway, Shodan, StatusCake, StormWall, Stretchoid, Sucuri, Tencent, TOR, UpCloud, UptimeRobot, Vultr, Wasabi, Windscribe, Yandex, Zoho, Zoom, Zscaler