#!/bin/bash sudo ufw --force reset
sudo ufw enable
# delete back rules from reset sudo rm /etc/ufw/*.rules.* # reset to defaults and enable sudo ufw default deny incoming sudo ufw default allow outgoing