Firewall on Startup

run these commands:

sudo systemctl enable ufw.service
sudo ufw enable
sudo systemctl start ufw.service

and it will stay on after a reboot.

4 Likes