Ask HN: Enable a Linux firewall without locking yourself out?
I have a friend who has an ubuntu server at a remote datacenter (not cloud based unfortunately), the other day he set up the ufw firewall and even though he assures me he added his IP address to the rules, he was locked out when he enabled the firewallsudo ufw allow from his-ip-address sudo ufw allow ssh sudo ufw enableIt ended up costing him over £200 to pay for out-of-hours support for an...