Linux Security

#linuxsecurity
Linux systems are also less prone to viruses that affect Windows operating systems and do not present as large an attack surface as Active Directory domain-joined hosts. Regardless, it is essential to have certain fundamentals in place to secure any Linux system.

sudo apt update 
sudo apt upgrade

Besides, there are different applications and services such as SnortchkrootkitrkhunterLynis, and others that can contribute to Linux's security.

some security settings should be made, such as:

TCP Wrappers

Is a security precaution in Linux systems that allows sysadmin to control which services are allowed to access the system.
It works by restricting access to certain services based on the hostname or IP address of the user requesting access.
When a client attempts to connect to a service the system will first consult the rules defined in the TCP wrappers configuration files to determine the IP address of the client. If the IP address matches the criteria specified in the configuration files, the system will then grant the client access to the service. However, if the criteria are not met, the connection will be denied, providing an additional layer of security for the service.
Attachments/Pasted image 20260511050310.png
TCP wrappers use the following configuration files:

In short, the /etc/hosts.allow file specifies which services and hosts are allowed access to the system, whereas the /etc/hosts.deny file specifies which services and hosts are not allowed access. These files can be configured by adding specific rules to the files.
Attachments/Pasted image 20260511050728.png

IMPO

It is important to remember that the order of the rules in the files is important. The first rule that matches the requested service and host is the one that will be applied. It is also important to note that TCP wrappers are not a replacement for a firewall, as they are limited by the fact that they can only control access to services and not to ports.

Powered by Forestry.md