Skip to content

v1.5.0

Choose a tag to compare

@hesami hesami released this 06 Nov 11:29
· 4 commits to main since this release

Release Notes — v1.5.0

Security Menu: Firewall, fail2ban, Auto-Updates & SSH Hardening

hideploy.sh is bumped to 1.5.0 and README.md is updated. The new logic was tested in a simulated environment (with fake ufw, sshd, and fail2ban), but has not been run on a real server. Try it once on a test server — especially the firewall and SSH parts — and keep your hosting panel console open.


What's New

8) Security menu
A new section with: status check, firewall, fail2ban, automatic updates, SSH hardening, and file permission fixes.

Status table additions
The table at the top of the main menu gains four new rows (firewall, fail2ban, auto-updates, SSH login). If the server needs a reboot, a fifth row appears.

Full check page
Shows every security item together and lists the required actions at the end. Also available from the command line via sudo hideploy security-check.

Firewall

  • Detects the real SSH port several ways, including the port of your current connection.
  • Displays the rules and only enables after confirmation.
  • After enabling, you must log in from a second window and type yes. If you type no, wait about 2 minutes, or your connection drops, the firewall turns itself off. This timer runs via systemd and survives closing the terminal.

fail2ban
Defaults to 5 failed attempts in 10 minutes and a one-hour ban. Your current IP is automatically allowlisted, and bans can be lifted.

Automatic updates
Security patches only. Automatic reboot is off by default and can be enabled from the menu with a custom time.

SSH key-only login

  • Only runs when a key is present on the server and you type TESTED.
  • Before applying, it backs up the config, runs sshd -t, and verifies the actual effect with sshd -T.
  • After applying, you must confirm once more from a new window — otherwise the previous settings are restored automatically.
  • An Undo option is available in the same menu.

Design Decisions

  • Password root login is disabled, but root with a key still works — so anyone who logs in only as root is not locked out.
  • Ports published by Docker (e.g. 80 and 443) bypass the firewall. The report labels these ports separately.
  • Option 7 in the Prepare Server menu now runs this protected firewall.
  • The main menu's "suggested next step" now also points to the firewall, fail2ban, and automatic updates after backups.
  • README gains the new section, new command, and file paths, and the Roadmap item is checked off.

Bug Fixed During Testing

While testing without a real sshd, a bug was found: if sshd -T could not run, SSH hardening incorrectly reported "password login is disabled". This is fixed — it now shows "unknown" in that case and applies no changes.


Upgrade

Replace hideploy.sh and README.md on GitHub and tag v1.5.0. On the server:

sudo hideploy update

Then hideploy --version should show 1.5.0.


Testing Status

Tested only in a simulated environment with fake ufw, sshd, and fail2ban — not on a real server. Before enabling the firewall or SSH hardening, keep the hosting panel console open as a fallback and test on a disposable server first. If you hit an error, share the message.