How to configure firewall for “brute force attack” with fail2ban on Ubuntu (Server) 14.04 LTS Step-by-Step

You have to be logged in as a root. Step 1 – Update repositories. root@mail:/# apt-get update root@mail:/# apt-get upgrade Step 2 – Install fail2ban. root@mail:/# apt-get install fail2ban Basic Configuration Step 3 – Backup config file root@mail:/# cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.conf.backup Step 4 – Open config file. root@mail:/# nano /etc/fail2ban/jail.conf Step 5 – Config DEFAULT […]

How to install and configure FAIRWALL/IP TABLES on Ubuntu (Server) 14.04 LTS Step-by-Step

In this post we will learn about how to save iptables permanently on Ubuntu. We will use the package called iptables-persistent. Step 1 – Update repositories. root@mail:/# apt-get update root@mail:/# apt-get upgrade Step 2 – Install iptables-persistent root@mail:/# apt-get install iptables-persistent Step 3 – The below given screen is for selecting IPv4. Step 4 – […]