Settings for locking down a server with UFW
# delete all existing rules
sudo ufw reset
# enable ufw
sudo ufw enable
# defult deny everything incoming
sudo ufw default deny incoming
sudo ufw default allow outgoing
# allow everything using tailscale
sudo ufw allow in on tailscale0
# HTTP and HTTPS
sudo ufw allow http
sudo ufw allow https