Skip to content

Setting up the UFW and firewalld firewall on a Linux VPS

How to set up a firewall on a VPS and close unneeded ports. Step-by-step setup of UFW for Ubuntu and Debian and firewalld for AlmaLinux, CentOS and Oracle Linux, with SSH access only from your IP.