I've created a small script that updates Hetzner's firewall rules with my current IP address, allowing only my computer to access my servers via SSH and other services.
Not sure if anyone else needs this, but here it is. :)
https://gist.github.com/andrasbacsai/f92af3afa1a8294bb60ea6f333998be6
@andrasbacsai thanks! I'm taking a slightly different approach, I'm connecting my VPS with my computers over WireGuard, and configure the firewall to only open certain ports on the wg0 interface
@andrasbacsai beware this doesn’t work in IPv6
@lil5 yep, but easily extendable