cloud-ip-ranges:~$

Hetzner logo Hetzner IP Ranges

Download current IP ranges (CIDRs) used by the Hetzner cloud infrastructure.

Provider Information

Official Website
https://hetzner.de
Total IP Ranges
93
87 IPv4 · 6 IPv6
Last Updated
Total Downloads
37,925

Download Options

Choose your preferred format. All downloads are permalinks that always provide the latest data.

IP Ranges

First 25 of 93 ranges. Download the full list above, or search for a specific IP.

CIDR Type Tag
5.9.0.0/16 ipv4 Hetzner Online GmbH
5.75.128.0/17 ipv4 Hetzner Online GmbH
23.88.0.0/17 ipv4 Hetzner Online GmbH
31.58.88.0/24 ipv4 HIDENCLOUD Network
37.27.0.0/16 ipv4 Hetzner Online GmbH
45.15.99.0/24 ipv4 iNTEQ Informationstechnik GmbH
45.145.227.0/24 ipv4 Mo's Operations GmbH
46.4.0.0/16 ipv4 Hetzner Online GmbH
46.62.128.0/17 ipv4 Hetzner Online GmbH
46.224.0.0/15 ipv4 Hetzner Online GmbH
49.12.0.0/16 ipv4 Hetzner Online GmbH
49.13.0.0/16 ipv4 Hetzner Online GmbH
62.238.0.0/17 ipv4 Hetzner Online GmbH
65.21.0.0/16 ipv4 Hetzner Online GmbH
65.108.0.0/16 ipv4 Hetzner Online GmbH
65.109.0.0/16 ipv4 Hetzner Online GmbH
77.42.0.0/17 ipv4 Hetzner Online GmbH
78.46.0.0/15 ipv4 Hetzner Online GmbH
78.138.62.0/24 ipv4 Agile Ventures s.r.o.
85.10.192.0/18 ipv4 Hetzner Online GmbH
88.99.0.0/16 ipv4 Hetzner Online GmbH
88.198.0.0/16 ipv4 Hetzner Online GmbH
89.167.0.0/17 ipv4 Hetzner Online GmbH
91.98.0.0/16 ipv4 Hetzner Online GmbH
91.99.0.0/16 ipv4 Hetzner Online GmbH

Usage Examples - Blocking Hetzner IPs

Download the IP ranges

# Download with curl
curl -O https://cloud-ip-ranges.com/download/hetzner.txt

# Or download with wget
wget https://cloud-ip-ranges.com/download/hetzner.txt

Block with iptables (Linux firewall)

# Download and block Hetzner IPs with iptables
wget -O hetzner_ips.txt 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_ips.txt

Block with UFW (Ubuntu/Debian firewall)

# Download and block Hetzner IPs with UFW
wget -O hetzner_ips.txt https://cloud-ip-ranges.com/download/hetzner.txt
while read ip; do
  ufw deny from $ip
  ufw deny to $ip
done < hetzner_ips.txt

Block with fail2ban (intrusion prevention)

# Create fail2ban filter for Hetzner
sudo tee /etc/fail2ban/filter.d/hetzner-block.conf << EOF
[Definition]
failregex = ^.*$
ignoreregex =
EOF

# Create jail configuration
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_ips.txt
findtime = 1
bantime = -1
maxretry = 1
EOF

# Download IP list and restart fail2ban
wget -O /tmp/hetzner_ips.txt https://cloud-ip-ranges.com/download/hetzner.txt
sudo systemctl restart fail2ban

Block with pfSense/OPNsense (FreeBSD firewall)

# Create alias table for Hetzner IPs
# 1. Download the IP list
wget -O hetzner_ips.txt https://cloud-ip-ranges.com/download/hetzner.txt

# 2. In pfSense/OPNsense web interface:
# - Go to Firewall > Aliases
# - Create new alias named "HETZNER_BLOCK"
# - Type: Network(s)
# - Import the downloaded file
#
# 3. Create firewall rule:
# - Go to Firewall > Rules > WAN
# - Add rule: Action=Block, Source=HETZNER_BLOCK

About Hetzner IP Ranges

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 4 months ago.