In this How to Make Tech Work tutorial, Jack Wallen shows how to add another layer of security to your Linux machines with just two files. . Did you know there’s a very easy way to block or allow IP addresses in Linux using two simple files? Those files are hosts.allow and hosts.deny, and they make it such that you can block or allow IP addresses on the fly without having to deal with more complicated firewall rules. With this ability, you could quickly block a suspicious IP address to avoid possible malicious activity; or, you could limit, say, SSH connections to only specific addresses so you don’t have to worry about third parties gaining access to your servers or desktops. Let me show you how it’s done by demonstrating SSH access to a machine. The only things you’ll need for this are a running instance of Linux and a user with sudo privileges. Log in to your Linux machine and open a terminal window. The first thing we’re going to do is deny all access to the SSH daemon. Open hosts.deny with the command sudo nano /etc/hosts.deny. At the bottom of that file, add sshd: ALL. Save and close the file. . Effortlessly manage access control for IP addresses on Unix-based systems via hosts.allow and hosts.deny, boosting your security protocols.. IP Blocking, Linux Security, SSH Management, Firewall Rules. . Brittany Day
Learn how to install and configure Fail2ban server, client, and services on an Ubuntu 20.04 or 18.04 LTS Linux server in this tutorial. . Bloggers and Developers who are running and managing their own servers, well of course they are responsible for its security as well. If in today’s world we don’t give heed to security then there is the possibility that our server would become a target of attackers – and cause damage. Well, although there are various online WAF, however, to harden the server an open-source program is available called Fail2Ban. It ensures that the IP address of an attacker is blocked for a certain period of time after several unsuccessful attempts and thus prevents an unlimited number of attempts that could later lead to finding out the password. The link for this article located at How 2 Shout is no longer available. . Learn the steps to configure Fail2ban on your Ubuntu system to improve protection against unauthorized access attempts.. Fail2ban, Ubuntu Security, Server Protection, IP Blocking. . Brittany Day
Get the latest Linux and open source security news straight to your inbox.