Ubuntu – How to force UFW to be enabled after every restart (currently “inactive”)


I have enabled the UFW in terminal using "sudo ufw enable" … But, UFW does not appear to start when the computer starts.

After the computer starts, I check the status of the UFW using "sudo ufw status verbose" … I expect to see "Status: active" in terminal but, instead, I am seeing "Status: inactive".

How do I force the UFW to run at startup?


Best Answer

Edit your /etc/ufw/ufw.conf and make,