Security in Linux environments is managed through the UFW (Uncomplicated Firewall) Firewall, which has been developed as an interface for iptables, allowing us to manage the process of configuring rules to allow or not the entry of packets or connections to the system. With Ubuntu UFW Firewall we manage security policies related to Linux control parameters, in this case Ubuntu 21.04..
UFW functions
With UFW it is possible to:
- Control the number of authorized connections
- Administer and manage user access to the system
- Control the applications and programs that have permission to access the network
- Detect ports and protocols
- Log all the input and output events of the connections in Ubuntu
For security reasons, it is recommended to leave the Firewall active in Ubuntu , but some tasks may require it to be temporarily disabled, so in TechnoWikis we will explain how to enable or disable UFW in Ubuntu 21.04.
To stay up to date, remember to subscribe to our YouTube channel! SUBSCRIBE
How to enable or disable Firewall in Ubuntu 21.04
Step 1
We check that we are using Ubuntu 21.04, in the terminal we execute:
lsb_release -a
Step 2
Now we check the current state of UFW with the following command:
sudo ufw status
Step 3
We see that it is inactive, to enable it in Ubuntu 21.04 we will execute the following:
sudo ufw enable
Step 4
We check its status again. We can see what is active and which rules are registered.
sudo ufw status
Step 5
To disable it, we are going to execute the following:
sudo ufw disable
Step 6
We validate its status again with the command:
sudo ufw status
With these simple commands we manage UFW in Ubuntu 21.04..