Protect Your Homelab with UFW Firewall (Stop Hackers in Minutes) #ufw #homelab #selfhosted #techtok

Is your homelab protected? In this tutorial, I show you how to install and configure UFW (Uncomplicated Firewall) on Ubuntu to protect your self-hosted services, Docker containers, and Proxmox VMs from unauthorized access. ⏱️ TIMESTAMPS: 0:00 - Intro 0:45 - Why You Need a Firewall 1:45 - Installing UFW 2:30 - Configuring Firewall Rules 6:00 - Enabling the Firewall 7:00 - Testing Services 8:30 - Managing Rules 9:30 - Best Practices 10:30 - Wrap Up 🔒 WHAT YOU'LL LEARN: ✅ Install UFW on Ubuntu/Proxmox ✅ Configure rules without locking yourself out ✅ Allow specific ports for Docker services ✅ Test firewall is working ✅ Add/remove/manage rules ✅ Firewall best practices ⚠️ CRITICAL COMMANDS: Install UFW: ```bash sudo apt update && sudo apt install ufw -y 📋 FULL COMMAND LIST: Complete list of commands on my Website: https://codewithromi.com/ 🛡️ HOMELAB SECURITY SERIES: This is Part 1 of my Homelab Security series! Part 1: UFW Firewall (this video) ✅ Part 2: Fail2Ban - Auto-block attackers Part 3: CrowdSec - Community threat intelligence Part 4: Security audit checklist 🎯 SERVICES PROTECTED IN THIS VIDEO: Portainer (Docker management) Grafana (Analytics) Uptime Kuma (Monitoring) BookStack (Wiki) Prometheus (Metrics) SSH Access Tailscale VPN 💡 PRO TIPS: Always configure SSH rule BEFORE enabling UFW Use comments to label your rules Check UFW logs regularly: sudo tail -f /var/log/ufw.log Combine UFW with Fail2Ban for ultimate protection Document your allowed ports ⚠️ COMMON MISTAKES TO AVOID: ❌ Enabling UFW before allowing SSH (you'll lock yourself out!) ❌ Forgetting to allow Tailscale/VPN ports ❌ Not testing services after enabling ❌ Opening ports you don't need 💬 QUESTIONS? Drop them in the comments! 👍 If this helped you: Like this video Subscribe for Part 2 (Fail2Ban) Turn on notifications 🔔 📧 CONNECT: YouTube: @CodeWithRomii GitHub: [https://github.com/theeromi/CodeWithRomi] #ufw #firewall #homelab #security #linux #ubuntu #proxmox #docker #cybersecurity #tutorial #selfhosted