How to Set Up a Firewall on Linux with Firewalld – Secure Your VPS in Minutes!

Опубликовано: 03 Июль 2026
на канале: Deividas Strole
120
1

So you got yourself a shiny new Linux VPS? Now it’s time to protect it like it owes you money. In this beginner-friendly tutorial, Deividas Strole shows you how to install and configure firewalld so your server stays secure and you stop worrying about hackers at 2 a.m.

🎯 What You'll Learn:
Install firewalld and enable it to start on boot
Open only essential ports (HTTP, HTTPS, SSH)
Verify your firewall is active and protecting your VPS
List and manage currently allowed services
Best practices for keeping your server secure

🛠️ Step-by-Step Commands:
Install firewalld: `sudo dnf install firewalld`
Enable and start service: `sudo systemctl enable --now firewalld`
Check firewall state: `sudo firewall-cmd --state`
Open essential ports:
`sudo firewall-cmd --permanent --add-service=http`
`sudo firewall-cmd --permanent --add-service=https`
`sudo firewall-cmd --permanent --add-service=ssh`
Reload firewall rules: `sudo firewall-cmd --reload`
List current configuration: `sudo firewall-cmd --list-all`

💡 Perfect For:
Linux beginners securing a VPS
System administrators managing cloud servers
DevOps engineers automating server security
Anyone wanting to learn firewall basics on Linux

🎥 Created by Deividas Strole

🔗 Connect & Learn More with Deividas Strole:
Website: https://deividasstrole.com
LinkedIn:   / deividas-strole  
GitHub: https://github.com/deividas-strole
Dev.to: https://dev.to/deividas-strole
Medium:   / deividas-strole  
X (Twitter): https://x.com/deividasstrole

👍 Like this video if it helped secure your VPS!
💬 Comment below with your firewall questions or tips
🔔 Subscribe for more Linux tutorials, server security, and command-line tricks

#DeividasStrole #Linux #VPS #firewalld #ServerSecurity #DevOps #LinuxTutorial #TechTutorial #Programming