Hosts
A host is a Linux machine FireHawk manages over SSH. Nothing is installed on it: FireHawk logs in, reads the firewall, and runs the commands of a deploy. This page covers adding a host, the checks FireHawk runs on it, and the information shown on the host page.

Add a host
Section titled “Add a host”-
Open Hosts in the sidebar and click Add host.
-
Fill in the connection:
Field Meaning Name Display name, unique in the workspace. Address DNS name or IP address FireHawk connects to. SSH port Default 22.SSH user The account FireHawk logs in with (root or a user with sudo or doas). Auth type Stored credential, SSH key file or Password (see below). Tags Comma-separated labels such as prod,web. Tags are used by layered policies and filter the Overview.Expected host key fingerprint Optional SHA256:…fingerprint, checked before the key is pinned (see host key pinning).Group Optional host group; (ungrouped)otherwise.Jump host Optional bastion to go through. Empty means the group’s jump host (shown as Group default (…)) or Direct (no jump host). -
Click Create host.
-
Click Test SSH on the host’s row. FireHawk logs in, works out how to gain root, detects the firewall backend and reads the OS details.
New hosts start in full management mode on iptables and nftables, with IPv6 managed on iptables hosts.
Authentication types
Section titled “Authentication types”| Auth type | What FireHawk uses |
|---|---|
| Stored credential | A key or password stored once on the Credentials page and shared by many hosts. Recommended: keys can be rotated in one place. |
| SSH key file | A private key file placed in the server’s sshkeys/ directory, entered by file name (Key file (in sshkeys/ volume), for example web1_ed25519). |
| Password | A password for this host only, stored encrypted. It is also used as the sudo or doas password. |
Privilege escalation
Section titled “Privilege escalation”Firewall commands need root. You do not choose a mode: FireHawk detects it on the first connection and stores it, and detects it again when it stops working. The host page shows the result as Privilege.
| Detected mode | When |
|---|---|
root |
The SSH user is root. |
nopasswd |
sudo -n works without a password. |
sudo_password |
sudo asks for a password; FireHawk sends the host’s password (or the password credential). |
doas_password |
OpenBSD doas with a password, typed through a terminal after the prompt. |
none |
No way to gain root. FireHawk cannot manage the firewall: log in as root, or configure sudo or doas for the user. |
Check a connection before saving
Section titled “Check a connection before saving”When you edit a host, the Connection check panel has Check connection. It tests the values in the form without saving them and reports the OS, privilege mode, firewall, whether ipset is present, and the host key fingerprint.
Backend and OS detection
Section titled “Backend and OS detection”FireHawk picks the active firewall in this order:
- firewalld, if
firewall-cmd --statereports it running; - ufw, if
ufw statusis active; - nftables, if the ruleset has an
inettable; - iptables, if
iptables -Sreturns rules.
If none applies, the host shows no active firewall detected. Enable the firewall you want on the host, then click Detect firewall on the host page’s Current tab. Detection also records whether ipset is installed (iptables hosts use it for aliases), the distribution and the init system, which decide how rules are persisted.
See Firewall backends for what each backend supports.
The host page
Section titled “The host page”Click a host name to open its page. The header shows the reachability dot, the drift badge, undeployed changes when the desired rules differ from the last deploy, full mode when applicable, and the facts Address, OS, Backend, Privilege, Login and Via (the jump host). Save as template and Apply template work with rule templates.
| Tab | Purpose |
|---|---|
| Current | The live rules read over SSH, grouped by table and chain. Detect firewall, Refresh rules and a chain filter. Rules FireHawk manages are marked managed by FireHawk. |
| Desired | The rules FireHawk will deploy, its inherited policies and NAT. See Desired rules. |
| Deploy | Preview, deploy, dry run, rollback and the deployment history. See Preview, deploy and rollback. |
| Drift | Changes made on the host outside FireHawk. See Drift detection. |
| History | Versions of the desired rules recorded at each deploy. See History. |
SSH host key pinning
Section titled “SSH host key pinning”FireHawk pins each host’s SSH host key the first time it connects (trust on first use), preferring an ed25519 key. From then on a host presenting another key is refused during key exchange, before any password is sent or command runs.
The line under the host header shows the state:
- not pinned yet — pinned on the next connection;
- the key type and fingerprint followed by (pinned).
To remove the first-use risk, enter the Expected host key fingerprint when adding the host. Read it on the server console:
ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pubFireHawk then refuses to pin a key with another fingerprint. Changing a host’s address or port clears the pin, and the next connection pins again.
When the host key changes
Section titled “When the host key changes”If a host presents a different key, the host page shows SSH host key changed — FireHawk refuses to connect to this host. with the trusted and the offered fingerprints, and the Overview marks the host red. This is expected after a reinstall or when the SSH keys were regenerated, but it can also mean someone is impersonating the host.
- Compare the offered fingerprint with
ssh-keygen -lf /etc/ssh/ssh_host_<type>_key.pubon the server console. - If it matches, click Accept new key. The new key is pinned and the change is recorded in the audit log.
Only users with the hostkey.accept permission on the host (admins and the Host admin role) see the button.
Boot persistence
Section titled “Boot persistence”After every deploy and rollback FireHawk saves the live rules with the distribution’s own tooling so they survive a reboot (for example netfilter-persistent on Debian, the OpenRC services on Alpine, iptables-services on RHEL, the file nftables.service loads). The Boot persistence: line on the host page shows the status, with Check to read it again.
When a package is missing, deploys still apply but the line warns rules deployed now will not survive a reboot. Click Install … (it names the packages): FireHawk installs them with the host’s package manager (apt, apk, dnf or zypper), saves the current live rules through them and enables them at boot. The install is audited and needs the host.edit permission.
On iptables hosts in full mode, IPv6 (ip6tables) is a separate ruleset you can switch on or off in the Desired tab. See IPv6.
Delete a host
Section titled “Delete a host”Click the trash icon on the host’s row and confirm. FireHawk forgets the host, its desired rules, history and access grants on it. The firewall rules on the machine itself are not touched: they stay active and persisted as they are.
