Base Linux Securitization Playbook
Linux Server Hardening Guide
0views
This document contains the hardening guide that will be systematically applied to all Ubuntu 22.04 LTS machines in the Portelcore ecosystem to ensure a Zero Trust environment.
1. Disable Root and Implement SSH Keys
Sección titulada «1. Deshabilitar Root e Implementar Claves SSH»In a modern environment, remote access such as root should never be allowed, nor should simple passwords be used. These measures will be applied to /etc/ssh/sshd_config:
PermitRootLogin noPasswordAuthentication noChallengeResponseAuthentication no2. Implement Firewall with UFW and Application Profiles
Sección titulada «2. Implementar Firewall con UFW y Perfiles de Aplicación»All servers will have ports blocked by default except for SSH (modified port) and those specific to the application they host:
ufw default deny incomingufw default allow outgoingufw allow 2222/tcp # Nuestro SSH endurecidoufw allow 'Nginx Full'ufw enable3. Disabling IPv6 (Optional)
Sección titulada «3. Desactivación de IPv6 (Opcional)»To reduce the attack surface and unnecessary routing vectors (if the local infrastructure does not require IPv6):
It will be added to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1And finally, reload the kernel with sysctl -p.

