// HETZNER / UFW
Hetzner · UFW
UFW (Uncomplicated Firewall) shell script for Hetzner. 689 CIDRs, refreshed daily.
// ufw_hetzner_allow.sh
#!/bin/bash # Hetzner IP Ranges # Updated: 2026-06-25 03:23:34 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 02:00 UTC # UFW allow rules for hetzner ufw allow from 2.28.0.0/15 ufw allow from 5.9.0.0/16 ufw allow from 5.75.128.0/17 ufw allow from 5.78.0.0/16 ufw allow from 5.161.0.0/16 ufw allow from 23.88.0.0/17 ufw allow from 31.58.88.0/24 ufw allow from 37.27.0.0/16 ufw allow from 45.15.99.0/24 ufw allow from 45.145.227.0/24 ufw allow from 46.4.0.0/16 ufw allow from 46.62.128.0/17 ufw allow from 46.224.0.0/15 ufw allow from 49.12.0.0/15 ufw allow from 62.238.0.0/17 ufw allow from 65.21.0.0/16 … (72 more lines)
// ufw_hetzner_deny.sh
#!/bin/bash # Hetzner IP Ranges # Updated: 2026-06-25 03:23:34 # Source: https://github.com/rezmoss/cloud-provider-ip-addresses # License: https://github.com/rezmoss/cloud-provider-ip-addresses/LICENSE # This file is generated automatically. Do not edit it directly. # Updates daily at 02:00 UTC # UFW deny rules for hetzner ufw deny from 2.28.0.0/15 ufw deny from 5.9.0.0/16 ufw deny from 5.75.128.0/17 ufw deny from 5.78.0.0/16 ufw deny from 5.161.0.0/16 ufw deny from 23.88.0.0/17 ufw deny from 31.58.88.0/24 ufw deny from 37.27.0.0/16 ufw deny from 45.15.99.0/24 ufw deny from 45.145.227.0/24 ufw deny from 46.4.0.0/16 ufw deny from 46.62.128.0/17 ufw deny from 46.224.0.0/15 ufw deny from 49.12.0.0/15 ufw deny from 62.238.0.0/17 ufw deny from 65.21.0.0/16 … (72 more lines)