Telegram IP ranges
- IPv4 ranges
- 9
- IPv6 ranges
- 5
- Last change
- 06.12.2026
- Last check
- 06.12.2026
Official source
One range per line, IPv4 first, then IPv6.
Add the lines to a server or location block. The last line blocks every other address.
Add the lines to an .htaccess file or a Directory block. Access is allowed only from the addresses in the list.
The rules allow TCP connections to ports 80 and 443 from the addresses in the list, with iptables and ip6tables.
The rules allow TCP connections to ports 80 and 443 from the addresses in the list. IPv6 ranges work when IPV6=yes is set in /etc/default/ufw.
The commands create a separate zone named telegram, allow TCP connections to ports 80 and 443 in it from the addresses in the list, and reload the configuration.
Add the lines to /etc/csf/csf.allow and restart the firewall with csf -r. The lines allow TCP connections to ports 80 and 443, and IPv6 ranges work when the IPV6 option is enabled in csf.conf.
The rules allow TCP connections to ports 80 and 443 from the addresses in the list. The inet filter table and the input chain must already exist.
91.105.192.0/23
91.108.4.0/22
91.108.8.0/22
91.108.12.0/22
91.108.16.0/22
91.108.20.0/22
91.108.56.0/22
149.154.160.0/20
185.76.151.0/24
2001:67c:4e8::/48
2001:b28:f23c::/48
2001:b28:f23d::/48
2001:b28:f23f::/48
2a0a:f280::/32When you need the Telegram addresses
A Telegram bot that works with a webhook receives each update as an HTTPS request from Telegram servers. According to Telegram, these requests come from the ranges 149.154.160.0/20 and 91.108.4.0/22, and can be received only on ports 443, 80, 88, and 8443. Telegram notes that the ranges may change. The list here is the full Telegram range file, and it is also useful on a network that restricts outgoing traffic and needs to allow the app.
Protecting your bot's webhook URL
In addition to restricting by address, set the secret_token parameter in setWebhook. Telegram sends the value in the X-Telegram-Bot-Api-Secret-Token header with every request, and your server rejects any request without the correct value:
location /telegram-webhook {
allow 149.154.160.0/20;
allow 91.108.4.0/22;
deny all;
if ($http_x_telegram_bot_api_secret_token != "replace-with-your-secret-token") {
return 403;
}
proxy_pass http://127.0.0.1:8080;
}- This list is published by Telegram in an official file, and we check it every week. The service is not affiliated with ErezNet.
- On a Linux VPS, you get full root access and configure the firewall and the web server yourself with these lists.
Telegram IP ranges FAQ
When do I need to allow the Telegram addresses?
When Telegram needs to reach your server, for example to send a webhook, or when your server needs to reach the service on a network that restricts traffic. Allow the addresses in the list, preferably only on the port the service needs.
How do I add these addresses to my firewall?
Choose the right format on this page, such as iptables, UFW, firewalld, CSF, or nftables, and copy the rules. The rules allow TCP connections to ports 80 and 443, and you can change them to the port the service needs.
How often is this list updated?
We check the official Telegram file once a week and update the page when something changes. The date of the last check is at the top of the page.