←back to thread

66 points todsacerdoti | 1 comments | | HN request time: 1.074s | source
Show context
bigiain ◴[] No.41911439[source]
I'd strongly suggest adding:

  echo "sudo ufw disable" | at now +5 minutes
as an emergency recovery mechanism before you first run

  sudo ufw enable
That way, if you've screwed up and locked yourself out with your new firewall rules, you can just wait 5 minutes and log back in (instead of paying for remote hands at your datacenter, or blowing away your vps and rebuilding from scratch).

Remember to re enable the firewall or stop the at job if everything works for you.

replies(3): >>41911977 #>>41912611 #>>41915925 #
1. LetMeLogin ◴[] No.41911977[source]
Totally, I'd rather run it directly via root not sudo to skip one more potential problem.