UFW | Firewall on Linux Systems

Secure your Linux system with UFW firewall. Follow our guide for easy-to-follow steps to protect your device and enhance your system's security

Uncomplicated Firewall (UFW) is an easy and beginner friendly firewall for linux systems.

Install

1
2
sudo apt-get update  
sudo apt-get install ufw  

sscrenshot of the step

Verify Install

1
sudo ufw status

sscrenshot of the step

Basic Blocks

1
2
sudo ufw default deny incoming  
sudo ufw default allow outgoing

sscrenshot of the step

Enable Firewall

1
sudo ufw enable

sscrenshot of the step

Blocking Ports

you can block any port by “sudo ufw deny PORT” for example, to block port 76 type:

1
sudo ufw deny 76

Allow Ports

you can allow any port by “sudo ufw allow PORT” for example, to allow port 22 (default SSH port) type:

1
sudo ufw allow 22

Video

Right click and check “Show all controls” to see video controls*

Conclusion

For a home base user UFW is more than enough. Play around with UFW to learn more, “sudo ufw -h” is the wayyy :)

that’s it ✌🏽