Once UFW is installed you need to start and enable it using the commands:
sudo systemctl enable ufw.service sudo ufw enable