Security

Fail2ban – ban, unban and display banned IP addresses

To show the list of banned IPs with Fail2ban, you have to know the name of the jail you want to show the blocked IPs’. To display the active jails type: # fail2ban-client status Now select the required jail to show the banned IPs # fail2ban-client status <JAIL-NAME> For example to show banned IPs...

Fail2ban Disable Stop and Start Emails

Are you fed up with those annoying e-mails that are sent every time the ‘fail2ban’ service is stopped, started or restarted? You have spent many hours surfing the web looking for a fix that really works, without the need to modify any of the ‘fail2ban’ default configuration files and have still not found one?...

Automatically Block Bad Bots

Running Linux/UNIX servers for several sites I was fed up with seeing the numerous 403 and 404 errors being reported daily in Apache’s access log files which had been growing in number over the past several years. So, I decided to make a stance and to start sticking two fingers up to constant Brute...

Firewall – IP Blocking

Running your own or wish to run your own Linux/UNIX server? If so, you will definitely need to learn about firewalls. Block and Unblock an IPv4 IP Address using firewalld You can block any visitor’s IP address with the firewalld firewall program, with the firewalld program being managed by the firewall-cmd command. See the...

Firewall – Country Blocking

A firewall solution to totally block chosen countries from attacking and spamming your website. Below you will find a procedure to block a country or countries from accessing your Linux server at the firewall level without any OS kernel calls or the installation of any additional applications. Here we are going to protect our...
Tonesworld