Hetzner IP ranges
Current IP ranges (CIDRs) used by the Hetzner cloud infrastructure, updated daily.
| category | Datacenter & Hosting |
|---|---|
| website | https://hetzner.de |
| ranges | 694 (687 IPv4, 7 IPv6) |
| last change | |
| downloads | 44,754 |
| download | txt csv json — permalinks, always the latest data |
curl -O https://cloud-ip-ranges.com/download/hetzner.txt
Ranges
Sample of 25 of 694 ranges. Download the full list above, or check a specific IP.
| CIDR | Type | Tag |
|---|---|---|
| 185.213.45.0/24 | ipv4 | abl solutions GmbH |
| 185.157.83.0/24 | ipv4 | Adrian Andreas Zajonz trading as Host1 |
| 78.138.62.0/24 | ipv4 | Agile Ventures s.r.o. |
| 185.126.28.0/22 | ipv4 | AKC-Schwarz GmbH |
| 2a06:be80::/29 | ipv6 | AKC-Schwarz GmbH |
| 5.78.0.0/16 | ipv4 | AS212317 |
| 2a01:4ff:100::/40 | ipv6 | AS212317 |
| 5.161.0.0/16 | ipv4 | AS213230 |
| 2a01:4ff::/40 | ipv6 | AS213230 |
| 2.28.0.0/16 | ipv4 | AS24940 |
| 185.157.176.0/23 | ipv4 | atnd GmbH |
| 201.131.3.0/24 | ipv4 | Binbit Mexico SA de CV |
| 185.228.8.0/23 | ipv4 | bluechip Computer Aktiengesellschaft |
| 194.62.106.0/24 | ipv4 | Clyso GmbH |
| 185.189.228.0/24 | ipv4 | Fritz Managed IT GmbH |
| 185.107.52.0/22 | ipv4 | GigaDSL GmbH |
| 5.9.0.0/16 | ipv4 | Hetzner Online GmbH |
| 2a01:4f8::/32 | ipv6 | Hetzner Online GmbH |
| 31.58.88.0/24 | ipv4 | HIDENCLOUD Network |
| 171.25.225.0/24 | ipv4 | HSM IT Services GmbH |
| 45.15.99.0/24 | ipv4 | iNTEQ Informationstechnik GmbH |
| 2a12:2240::/29 | ipv6 | iNTEQ Informationstechnik GmbH |
| 185.189.230.0/24 | ipv4 | JS Holding GmbH trading as GFE Consulting Services GmbH & Co. KG |
| 185.171.224.0/22 | ipv4 | kajomi GmbH |
| 45.145.227.0/24 | ipv4 | Mo's Operations GmbH |
Blocking Hetzner
iptables
curl -sO https://cloud-ip-ranges.com/download/hetzner.txt
while read ip; do
iptables -A INPUT -s $ip -j DROP
iptables -A OUTPUT -d $ip -j DROP
done < hetzner.txt
ufw
curl -sO https://cloud-ip-ranges.com/download/hetzner.txt
while read ip; do
ufw deny from $ip
ufw deny to $ip
done < hetzner.txt
fail2ban
sudo tee /etc/fail2ban/filter.d/hetzner-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF
sudo tee /etc/fail2ban/jail.d/hetzner-block.conf << EOF
[hetzner-block]
enabled = true
filter = hetzner-block
action = iptables-allports[name=hetzner]
logpath = /tmp/hetzner.txt
findtime = 1
bantime = -1
maxretry = 1
EOF
curl -so /tmp/hetzner.txt https://cloud-ip-ranges.com/download/hetzner.txt
sudo systemctl restart fail2ban
pfSense / OPNsense
curl -sO https://cloud-ip-ranges.com/download/hetzner.txt
# Firewall > Aliases: new alias HETZNER_BLOCK, type Network(s), import the file
# Firewall > Rules > WAN: Action=Block, Source=HETZNER_BLOCK
About
These IP ranges are sourced directly from Hetzner's official feeds and are updated regularly to ensure accuracy. The data includes IPv4 and IPv6 ranges used by Hetzner's infrastructure worldwide. Last update was about 20 hours 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, 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, Telegram, Tencent, TOR, UpCloud, UptimeRobot, Vultr, Wasabi, Windscribe, Yandex, Zoho, Zoom, Zscaler