Skip to main content

Linux-Apps: Uncomplicated Firewall (UFW) and gUFW

When using any desktop Linux distribution, is there a need for a firewall? The simple answer is, "Why not?" Even when you are using a desktop Linux distribution with limited services opened to the Internet,  it is recommended to use a firewall as you do not know if there is any malware accidentally installed on your computer. Why take the risk? Another reason is that since there is a simple firewall available (Uncomplicated Firewall) that you can just enable and forget it existed. 

The Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls. ufw provides a framework for managing netfilter, as well as a command-line interface for manipulating the firewall. ufw aims to provide an easy to use interface for people unfamiliar with firewall concepts, while at the same time simplifies complicated iptables commands to help an administrator who knows what he or she is doing. ufw is an upstream for other distributions and graphical frontends.

— https://wiki.ubuntu.com/UncomplicatedFirewall

gUFW image from e-tinet.com

 The above is the Uncomplicated Firewall (UFW) frontend. Even without the frontend, the UFW can be configured using the terminal console as some examples below. 
 

  Uncomplicated Firewall (ufw) is a simple desktop firewall created to simplify the complexity of setting up and maintaining a firewall for any average user. UFW can setup using the console or using the Gufw frontend. I recently just installed ufw for all my laptops and enabled them after I find that it is very useful and easy to setup. As I am using only the Linux desktop without any remote services required, things will be easier for me. 

Instructions to setup the ufw:
sudo ufw enable
sudo ufw status verbose

In case the incoming connections is not denied, you may use the following command to set it:
sudo ufw default deny

    I just used the default settings as shown below in the first picture of Gufw: 
Incoming: Deny
Outgoing: Allow

    Only when you need to have some remote services running on your computer, then it gets a little more complicated but still, it is easy to configure the firewall if you got the following information: 

  • Source and/or  destination IP address
  • Source and/or destination ports
  • Remote service you are using

    Well, it may sound complicated but it is actually simple if you have the information above. Well for details of how to configure that, you may visit the URL below for details. 

Getting Started with UFW (Uncomplicated Firewall) on Ubuntu 20.04

Comments

Popular posts from this blog

MX Linux Fluxbox Review - For Low-End Laptops

  MX Linux logo from https://linuxiac.com/mx-linux/      Recently I have successfully installed MX Linux Fluxbox on my Acer Aspire One 725 (AO725) netbook. I initially wanted to install Bodhi Linux onto my AO725 netbook, but failed. Finally I tried MX Linux Fluxbox, after trying Anti-X linux and some other ultra-lightweight Linux. MX Linux Fluxbox is suppose to be a lightweight Linux for low-powered laptops such as netbooks or very old laptops. Upon bootup, it only takes 337MB of RAM (438MB for Thinkpad X200) before you load any apps. With 4GB RAM, it is still a lot of RAM for for most apps, like the browser but the CPU utilization is close to 100% after running a Chromium broswer and DeadBeef music player. Things likely be slow... after this point from my observation but I have not tried to do anything more than those common things that I usually need to do.      Since I managed to install MX Linux Fluxbox, I initially did not bother to use the A...

Linux-DesktopEnv: RAM Usage Comparison For Sparky Linux LxQT and Xfce and Q40S MATE Desktop Environment

  Today I did a test on RAM usage for the following desktop environments (DE) using VirtualBox to determine their RAM usage: MATE DE with Q4OS 4.7 Sparky Linux 6.2 LXQt Sparky Linux 6.2 Xfce      The main reason is for me to decide which desktop environment I want to use for my Lenovo Thinkpad X200. I have tried other desktop environments: Enlightenment with SparkyLinux MininumGUI  Trinity with Q4OS Bodhi Linux with a customized Enlightenment DE      The main issue with Enlightenment with SparkyLinux is that it does not work well with autologin. Sometimes it gets kicked out and you have to login again. I suspect is the windows manager issue but I cannot find the solution for this. Trinity has an issue with using jpg wallpaper so it is a turn-off as I don't want default wallpapers. The customized Enlightenment desktop in Bodhi Linux has limited themes but is still acceptable but I want to look for the best for my Thinkpad X200.     ...

How To Connect To Singapore Free Public WiFi - Wireless@SG For Non-SIM Operating System

Image from: https://play.google.com/store/apps/details/Wireless_SGx?id=sg.gov.imda.wsgapp2_android&hl=en-SG      All the while Singapore's free public WiFi - Wireless@SG only supports Android and IOS devices with SIM cards, Windows and Mac operating system. Any other operating system such as Chromebook, Linux or devices without SIM are faced with an issue of unable to connect to this public WiFi network. However, recently I noticed that I am unable to download the Wireless@SGx app for my new phone and started looking at Infocomm Media Development Authority (IMDA) website for Wireless@SG. The link is below: IMDA website for Wireless@SG     There are now more options to connect to Wireless@SG now. To allow more platforms/operating system, especially Chromebook and Linux to connect to Wireless@SG, choose the " Android non-SIM Setup ".  Choose the URL or QR code to get to the registering page. Android non-SIM Setup Once at the website. Choose the "Devi...