alexandreravelli

Interactive bash script that hardens a fresh Ubuntu 24.04 LTS VPS (SSH, UFW, Fail2Ban, AppArmor, kernel, Docker) and deploys Dokploy — all in ~10 minutes.

21
1
100% credibility
Found Mar 16, 2026 at 21 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Shell
AI Summary

Scripts to automatically secure a fresh Ubuntu 24.04 server with hardened access, firewall, monitoring, and optional app hosting setup.

How It Works

1
🖥️ Start with a new server

You get a fresh Ubuntu server from your hosting provider, ready for setup.

2
🔍 Discover the security script

You find this helpful guide on GitHub that promises to make your server safe and reliable in minutes.

3
▶️ Run the easy setup

You launch the main script and answer a few simple questions about names, passwords, and preferences—it feels straightforward like filling a form.

4
🛡️ Watch the magic happen

The script automatically adds strong protections like better locks, guards against intruders, and automatic updates, all while keeping you connected safely.

5
🔑 Test your secure connection

You open a new window to try logging in the safe new way, confirm it works smoothly, and give the okay to lock the old door.

6
Add app hosting or skip?
🚀
Install app tool

Follow the next script to set up a simple dashboard for hosting your projects securely.

Skip to finish

Your server is already tough and ready for any use.

7
🔍 Run the health check

You use the checker tool to verify everything is perfectly secured and tidy up any leftover files.

🎉 Your fortress is ready!

Now you have a super-secure server that protects itself, stays updated, and is perfect for running your important stuff without worries.

Sign up to see the full architecture

6 more

Sign Up Free

Star Growth

See how this repo grew from 21 to 21 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is vps-ubuntu-24-04-hardening-dokploy?

This interactive bash script hardens a fresh Ubuntu 24.04 LTS VPS in about 5 minutes, locking down SSH with key-only auth on a random high port, setting up UFW firewall, Fail2Ban, AppArmor profiles, kernel tweaks like ASLR and SYN flood protection, plus auto-updates and audit logging. It then optionally installs Docker and Dokploy—a self-hosted PaaS for deploying apps—in another 5 minutes. You get a production-ready server that survives SSH drops via screen sessions, with all inputs collected safely upfront.

Why is it gaining traction?

Unlike manual hardening guides or one-click cloud images, this bash interactive mode script handles everything in phases—inputs first, then non-interactive apply—with recovery traps to restore SSH access if things go wrong. It separates core hardening from Dokploy deployment to avoid installer conflicts, includes a post-install audit CLI, and persists Docker firewall rules across restarts. Developers dig the ~10-minute timeline and detailed summary file with exact reconnect commands.

Who should use this?

DevOps folks provisioning cheap VPS for Docker stacks, indie hackers deploying Dokploy or similar PaaS without babysitting configs, and teams needing quick Ubuntu 24.04 servers for web apps behind Traefik. Skip if you run non-Ubuntu or need custom tweaks beyond SSH, firewall, and kernel basics.

Verdict

Grab it for fast, reliable VPS setup on Ubuntu 24.04—the interactive flow and safety nets beat cobbling together tutorials. With just 21 stars and 1.0% credibility score, it's early-stage; spin it up on a test droplet first, but stellar docs and check script make it low-risk.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.