run these commands:
sudo systemctl enable ufw.service
sudo ufw enable
sudo systemctl start ufw.service
and it will stay on after a reboot.
run these commands:
sudo systemctl enable ufw.service
sudo ufw enable
sudo systemctl start ufw.service
and it will stay on after a reboot.