In this tutorial you will learn:
- How to check firewall status
- How to enable/disable firewall
- How to control firewall settings from GUI
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|System||Installed or upgraded Ubuntu 20.04 Focal Fossa|
|Other||Privileged access to your Linux system as root or via the |
|Conventions|| # - requires given linux commands to be executed with root privileges either directly as a root user or by use of |
How to enable/disable firewall on Ubuntu 20.04 LTS Focal Fossa Linux step by step instructions
- Check the current firewall status:
$ sudo ufw status [sudo] password for linuxconfig: Status: inactiveFor more detailed output regarding your current firewall settings execute:
$ sudo ufw status verbose
- To enable your firewall execute the following command.
Please note that by enabling your firewall you may get disconnected if you are currently using SSH to remotely connect to your Ubuntu server.
$ sudo ufw enable
- To control the UFW firewall via GUI interface you will need to install the
$ sudo apt install gufw
- To manipulate the status of the UFW firewall via GUI now start the
gufwapplication and click on the
Statusswitch to either enable or disable the firewall.