UFW Not Starting on Boot in Ubuntu 18.04
If you’re experiencing issues with the Uncomplicated Firewall (UFW) not starting on boot in Ubuntu 18.04, there are a few steps you can take to troubleshoot and resolve the problem. Here’s a step-by-step guide to fix the issue.
Please note: Modifying system files requires administrative privileges. Make sure you have the necessary permissions before proceeding.
Editing the UFW Service File
- Open a terminal or SSH session and log in to your Ubuntu 18.04 system.
- Use the following command to open the UFW service file in the Vim text editor:
|
|
-
Inside the Vim editor, locate the line that reads
Before=network.target. You need to remove this line from the file. To do so, move the cursor to that line, pressddto delete the line, and then save the file and exit Vim by typing:wq.






