Status loaded

a simple hardening tool for securing linux servers.

hardn v0.5.0
https://github.com/abbott/hardn
░ Debian 12 (Bookworm) ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
BOS-SAN-L01
192.0.2.10
182 days, 2 hours, 26 minutes
⛬Risk Level
Moderate ≈ medium security
⛛User
Configured non-root, sudo
⛛SSH Login
Configured root disallowed
⛛SSH Auth
Configured key-only auth
⛛SSH Port
Configured non-default (2230)
⛛Firewall
Configured deny policy
⭘Auto Updates
Not Configured
⭘AppArmor
Not Configured
Select an option
Mode Live
1)
User Management
Create, Configure (sudo, SSH keys)
2)
SSH Login
Root login, passwords, port
3)
Firewall
Configure UFW rules
4)
DNS
Configure Nameservers
5)
Auto Updates
Configure automatic updates
6)
Run All
Execute hardening operations
7)
Backup
Configure Hardn backup settings
8)
Environment
Keep HARDN_CONFIG
9)
System Details
View system information
10)
Logs
View log file
0)
Exit
q to quit
Enter selection [0-10 or q]:

Overview

hardn secures a Linux server you own: Debian, Ubuntu, Alpine or Proxmox VE. Run sudo hardn and it reads the host, shows a risk level from its users, SSH, firewall, DNS, automatic updates and AppArmor, and gives each one a screen.

Nothing changes until you have seen it. Every change is shown first as a plan, with its diffs. A change that could lock you out, such as moving the SSH port or enabling the firewall, asks you to type the hostname, then rolls itself back unless you confirm it from a new SSH session. It is built for privately owned servers and homelabs, and it collects no data.

H

hardn

UtilityReleased

Key Features

  • ▽Plan, review, then apply
  • ▽Rolls back unless confirmed
  • ▽SSH and firewall hardening
  • ▽Users, DNS and automatic updates
  • ▽Dry run and audit log

How to Install

Install the release binary, which is checked against the release's SHA-256 sums before it is installed. Then open the main menu, or preview what Run All would change without touching the host.

$ curl -fsSL https://raw.githubusercontent.com/abbott/hardn/main/install.sh | sudo sh

# View commands
$ hardn -h

# Open main menu
$ sudo hardn
© 2026 moon maus, l.l.c.