Firewall

An overview of firewalls and how to use them

A Firewall is a must-have component in every computer or server security concept. The firewall controls all network traffic based on an applied rule set. These rules can be used for the incoming and outgoing network packages.

In a very basic view, the firewall scans all incoming and outgoing packages send over it. If the packages are correct and allowed inside (or outside) the computer, the firewall forwards the packages further to other software components. Else the firewall blocks the packages (throws them away).

Linux firewall overview

IPtables

iptables part of the netfilter project

tbd

NFTables

nftables

UFW Uncomplicated Firewall

As the name implies UFW is an uncomplicated Firewall that eases the use of the complicated iptables settings. Generally, UFW rules can be applied with ease and are more readable.

To open the SSH port for incoming and outgoing traffic with UFW, only this command has to be typed:

ufw allow ssh

Take a look at the UFW page for more details.

Last updated