How to configure firewall in Linux servers
When you hear the term “hacker”, you picture a computer whiz kid in a dark room, typing away mysterious code on a green lit computer – or that’s what the popular image is.
The depiction of a hacker may change, but one thing is common – They all attack from a remote location over the network. No one pictures a hacker physically accessing your server to steal the data.
Now, assuming that you are not targeted by a super secret spy agency, virtually 100% of attacks on your server will be through the network – Many of which can be blocked by a well configured firewall.
Today, we’ll take a look at how to configure firewall in Linux servers.
Which Linux firewall should you choose?
A quick Google search will give you a long list of firewalls for Linux. You’d come across IPTables, Netfilter, Shorewall, Endian, CSF, APF, and more.
In reality, the de-facto firewall in Linux is IPTables (aka Netfilter). All others are built on top of it with varying degrees of user friendly configuration settings.
It really doesn’t matter which one you choose, as long as you know what to look out for. This post is about what are the common threats, and how to mitigate them.
So, without further ado, let’s get to it.