Like many Linux distributions ... reset the firewall to its default state with sudo ufw reset. Ubuntu's firewall is a basic yet powerful means to protect your system against outside threats.