Skip to content

Instantly share code, notes, and snippets.

View Maxiviper117's full-sized avatar
🎯
Focusing

David Maxiviper117

🎯
Focusing
View GitHub Profile
@Maxiviper117
Maxiviper117 / firewall.sh
Created October 30, 2024 10:35 — forked from andrasbacsai/firewall.sh
Update a Hetzner Firewall rule with your IP address
#!/bin/bash
# Script to update a firewall rule in a Hetzner Firewall with your current IP address.
# Good if you would like to restrict SSH access only for your current IP address (secure).
#################
# WARNING: This script will overwrite all rules in the firewall rules, so make sure you
# added all the required rules.
# I use a separate firewall rule just for SSH access.
#################