Configuring a Firewall in Linux – A Step-by-Step Guide

It is important for every system to be well protected, be it your home computer or your server. In this article, we’ll understand how to configure a Firewall in Linux to keep your system safe and protected from malicious viruses. 

Let us begin by understanding what a firewall is.

A firewall is a network security software that monitors the incoming and outgoing traffic in your network. In simple words, a firewall is like a virtual barrier that is put so that the least damage can occur. Thus, the barrier is placed between the safe and unsafe place. Where the safe place is your private network and the unsafe place is the internet – a wide public network. This way a firewall not only eliminates unwanted network communication but also prevents your server from malicious attacks. 

There are two main types of firewalls, viz. ‘host firewall’ and ‘network firewall’. A host firewall is installed on individual servers and monitors the incoming and outgoing connections. A network firewall is usually built into your hosting infrastructure.