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.     ...

2ndLife: Refurbishing Macbook Pro (A1502) For Daily Use(Replace MacOS with Linux Lite)

     I recently dumpster dived a Macbook Pro (A1502) with a plastic peeling power adapter. I usually do not dumpster dive Macbooks since I have not managed to reuse any until now. Since Apple Macbook hardware is pretty good and better battery life, I decided to try to reinstall the operating system (MacOS) to Linux Lite. Main reasons are not having the login password for previous owner and also the installed MacOS likely is no longer supported so not worth reinstalling a fresh copy of MacOS. Linux Lite has been my favourite lightweight Linux distribution since I like to reuse older laptop hardware. Previously I did this for Acer and Dell laptops.  Macbook Pro (A1502) image from cp24.pl Specs: LED-backlit 13.3" widescreen 2560x1600 (227 ppi) "Retina" display 2.9GHz Intel "Core i5" processor (5287U) 8GB DDR3 RAM 128GB Solid State Drive Intel Iris 6100 graphics processor FaceTime HD Camera Two USB 3.0 ports, two "Thunderbolt 2" ports, an HDMI port, an au...