UFW ( Uncomplicated Firewall ) firewall is a default firewall on Ubuntu 18.04 Bionic Beaver Linux.
By default the UFW is disabled. You can check the status of your firewall by executing the following linux command:
$ sudo ufw status
[sudo] password for nahid:
Status: inactiveFor more verbose output append word verbose to the above command:
$ sudo ufw status verbose
Enable FirewallTo enable firewall execute:
$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startupFirewall, is now enabled:
$ sudo ufw status
Status: activeUFW is quite intuitive to use. To disable firewall execute:
$ sudo ufw disable
Firewall stopped and disabled on system startupConfirm the firewall status:
$ sudo ufw status
Status: inactiveInstall gufw package if you wish to manage our UFW firewall via graphical user interface application. Open up terminal and enter:
$ sudo apt install gufw