Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Set up Firewalld on a CentOS VPS for dynamic firewall management—install with
yum install firewalld -y
start it via
systemctl start firewalld
and enable on boot with
systemctl enable firewalld
Open SSH with
firewall-cmd --add-service=ssh --permanent
HTTP with
firewall-cmd --add-service=http --permanent
and reload with
firewall-cmd --reload
Verify with
firewall-cmd --list-all
—expect \"services: ssh http\" Unlike UFW Firewalld supports runtime changes without restarts—ideal for Vultr CentOS plans hosting MySQL (add firewall-cmd --add-port=3306/tcp) Log activity with firewall-cmd --get-log-denied to debug blocks ensuring FTP and SSH stay secure

Back to All Tips