// HETZNER / UFW
Hetzner · UFW
UFW (Uncomplicated Firewall) shell script for Hetzner. 686 CIDRs, refreshed daily.
// ufw_hetzner_allow.sh
#!/bin/bash # Hetzner IP Ranges # Updated: 2026-06-14 03:22:28 # 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 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.78.8.0/21 ufw allow from 5.78.16.0/24 ufw allow from 5.78.17.0/24 ufw allow from 5.78.18.0/24 ufw allow from 5.78.19.0/24 ufw allow from 5.78.20.0/24 ufw allow from 5.78.21.0/24 ufw allow from 5.78.22.0/24 ufw allow from 5.78.23.0/24 ufw allow from 5.78.24.0/24 ufw allow from 5.78.25.0/24 ufw allow from 5.78.26.0/24 ufw allow from 5.78.27.0/24 … (670 more lines)
// ufw_hetzner_deny.sh
#!/bin/bash # Hetzner IP Ranges # Updated: 2026-06-14 03:22:28 # 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 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.78.8.0/21 ufw deny from 5.78.16.0/24 ufw deny from 5.78.17.0/24 ufw deny from 5.78.18.0/24 ufw deny from 5.78.19.0/24 ufw deny from 5.78.20.0/24 ufw deny from 5.78.21.0/24 ufw deny from 5.78.22.0/24 ufw deny from 5.78.23.0/24 ufw deny from 5.78.24.0/24 ufw deny from 5.78.25.0/24 ufw deny from 5.78.26.0/24 ufw deny from 5.78.27.0/24 … (670 more lines)