How to enable UFW – Uncomplicated Firewall in ubuntu – Install Gufw Firewall

UFW is a firewall for ubuntu users and it is available by default in all Ubuntu installations after 8.04 LTS but disabled by default. Actually the Uncomplicated Firewall or UFW is a frontend for iptables and netfilter firewall. It comes with a command-line interface for managing your firewall. Using this you can set incoming policy, incoming rules, IPv4 rate limiting, outgoing filtering, filtering by interface and routed packet filtering. It comes with IPv6, application integration, upstart, phython and rsyslog support.

Enable UFW in ubuntu

It comes with pre-installed but disabled by default. open your terminal and run this command to enable UFW Uncomplicated Firewall in Ubuntu.

sudo ufw enable

To can check the UFW status by running this command.

sudo ufw status

Disable UFW in ubuntu:

In your terminal run this command to disable UFW in Ubuntu.

sudo ufw disable

Restart UFW on Ubuntu:

sudo ufw restart

Flush UFW:

you can flush the built-in chains, resets the policy to ACCEPT using the below command.

sudo ufw flush-all

For he complete UFW usage details run this command.

ufw --help

Install Gufw Firewall on Ubuntu

If you feel that it is difficult to manage the UFW via command line , then your can install GUFW. Gufw provides user interface for your UFW firewall. Using this you can easily manage your firewall settings in Ubuntu.

Suggested Read:  How to install Inxi on Ubuntu & Fedora - Linux System Information Tool

To instal GUFW in ubuntu use this command in your terminal application.

sudo apt update
sudo apt install gufw

You can open Gufw from your application menu or by command line.

gufw

If needed enter your Ubuntu user password. Turn on it and set your firewall rules. Its easy now.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on Twitter and Facebook.

You may also like...

2 Responses

  1. miron says:

    The firewall was activated but still the computer is replying to PING. How can I deactivate PING reply?

Leave a Reply

Your email address will not be published. Required fields are marked *