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