Start ufw automatically

URGENT!

The reason why I prioritized the firewall and placed it right at the top of Chapter 2 is so that you have protection right away. Many people have a fast internet connection and therefore must protect every computer they run regardless if in the office or at home.

How to configure GUFW so that it starts automatically, every time you reboot.

This step is best made in the terminal. To start a terminal, press ctl+alt+t

After that, the terminal opens instantly and we need to enter this command:

sudo ufw enable (and press ENTER)
You have to enter your password and press ENTER because this is an administrative task

Great, your firewall is on. To make sure that the firewall protects you every time you reboot or start the computer, one additional command is necessary. Again, in the terminal enter this text:

sudo systemctl enable ufw (press ENTER)
Again, enter your password and press ENTER

That’s it. From this point on, the firewall will run when you start your computer and protect you from incoming probes on ports.

linux firewall gui

Amazingly, there are many forum posts which deal with this question. From now on, you can help others if they want to know how to start the firewall.

Later on, when we configure SAMBA for network file sharing, we will add exceptions to the rules so that other computers on your network can access data if you allow it.

Warning!
If this is the first time that you used a terminal then be careful and don’t experiment just yet. Don’t worry, you’ll be a Ninja soon. For now, it’s best to close the terminal for a few minutes but do remember the short cut ctrl+alt+t for later.
Another way of opening a terminal is to right-click on the desktop and select “Open Terminal Here” from the pop-up. You will do this a lot from now on.

Challenge! Go to your start menu and try to find the GUI for your firewall. See if you can the same windows as shown in the image above. I think that you will be able to find it. 🙂

In the next article we will update the new system for the first time. So let’s get to it

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.