CloudLinux.ro

Security tutorials

Securing your server: firewall, fail2ban, SSH keys, access hardening, automatic updates, VPN, security headers and port auditing.

Security

How to check which ports are open on your server

Find out which services are listening for connections on your server and close what you do not need, for less exposure.

Updated 7/20/2026
Security

How to scan your server for malware with ClamAV

Install ClamAV, an open-source antivirus, and periodically scan your server for infected files.

Updated 7/20/2026
Security

How to add security headers to your website

A few HTTP headers protect your visitors from common attacks like clickjacking and content injection.

Updated 7/20/2026
Security

How to limit abusive traffic with Nginx (rate limiting)

Protect your site from bots and simple attacks by limiting the number of requests per second from an IP.

Updated 7/20/2026
Security

How to create a user with sudo privileges

Do not work as root. Create a normal user with sudo for safe administrative operations.

Updated 7/20/2026
Security

How to set up SSH key authentication

Drop passwords for SSH and use keys, far more secure and impossible to brute-force.

Updated 7/20/2026
Security

How to harden SSH: disable root login and change the port

Reduce your server attack surface by disabling SSH root login and moving SSH to a different port.

Updated 7/20/2026
Security

How to set up your own VPN with WireGuard

Run your own private, fast and secure VPN with WireGuard on a VPS, for private browsing and secure access.

Updated 7/20/2026
Security

How to enable automatic security updates

Let your server install security patches on its own with unattended-upgrades, so you never stay vulnerable.

Updated 7/20/2026
Security

How to protect your server from brute-force attacks with fail2ban

fail2ban automatically bans IPs that repeatedly try wrong passwords. Here is how to install and configure it.

Updated 7/20/2026
Security

How to set up a firewall with UFW

Block all unwanted traffic to your server with UFW, a firewall that is simple to configure on Ubuntu.

Updated 7/20/2026