+5 votes
553 views
Enable or disable Ubuntu 21.04 Firewall

in Linux / Unix by (552k points)
reopened | 553 views

1 Answer

+3 votes
Best answer

How to enable or disable Firewall in Ubuntu 21.04

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 

image

 

 

Step 2

Now we check the current state of UFW with the following command:
 sudo ufw status 

image

 

 

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 

image

 

 

 

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 

image

 

With these simple commands we manage UFW in Ubuntu 21.04..

 


by (3.5m points)

Related questions

+5 votes
1 answer
asked Nov 5, 2020 in Linux / Unix by backtothefuture (552k points) | 1.6k views
+5 votes
1 answer
asked May 6, 2021 in Linux / Unix by backtothefuture (552k points) | 441 views
+4 votes
1 answer
asked Nov 13, 2020 in Linux / Unix by backtothefuture (552k points) | 353 views
+5 votes
1 answer
asked Nov 13, 2020 in Linux / Unix by backtothefuture (552k points) | 256 views
+5 votes
1 answer
asked Nov 13, 2020 in Linux / Unix by backtothefuture (552k points) | 578 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users