Skip to content

Requirements

FireHawk is distributed as container images for amd64 and arm64:

Image Used by
ghcr.io/eos916101/firehawk-api the API and the background workers (same image, different command)
ghcr.io/eos916101/firehawk-frontend the web UI (nginx, also proxies /api/ to the API)

Run them with one of:

FireHawk stores everything (hosts, rules, snapshots, encrypted secrets, the job queue) in PostgreSQL.

  • The Docker Compose file and the Helm chart bundle PostgreSQL 16 (postgres:16-alpine).
  • An external or managed database (RDS, Cloud SQL, CloudNativePG, …) running PostgreSQL 14 or later works too.

The database schema is created and migrated automatically when the API or a worker starts.

Port Service Expose?
8085 (FRONTEND_PORT) Web UI and API proxy (/api/) Yes, ideally only through a TLS reverse proxy on 443
8000 (API_PORT) API directly, with interactive API docs at /docs No: keep it internal or bound to localhost
5432 PostgreSQL Never published by the bundled setup

Users only need the UI port: the frontend proxies every /api/ request to the API. See TLS and reverse proxy.

  • The FireHawk API and worker containers (or pods) open SSH connections to the managed hosts. They need to reach every host’s SSH port (or the first jump host in front of it). On Kubernetes, check NetworkPolicies and egress firewalls.
  • Hosts in networks FireHawk cannot reach directly can be managed through jump hosts (bastions, like ssh -J), set per host or per host group, chained up to four hops. See Credentials and jump hosts.
  • Dynamic aliases are fetched by the FireHawk server: it needs outbound HTTPS to the feeds you use (for example ipdeny.com for GeoIP, cloud provider range files) and working DNS for DNS-name aliases.
  • Notifications need outbound access to your SMTP server, Slack, Microsoft Teams or webhook endpoints.

Nothing is installed permanently on a managed host except its firewall configuration and the distribution’s own persistence packages.

  • An SSH server reachable from FireHawk.
  • Authentication by key (with or without passphrase) or password.
  • A login that is root, or can escalate with:
    • sudo without password (sudo -n),
    • sudo with password,
    • doas with password.

The privilege mode is detected automatically on the first connection. A host with no way to become root can be connected, but FireHawk cannot change its firewall.

One of the supported backends must be installed and in use:

Backend Tools
iptables iptables, iptables-save, iptables-restore; ip6tables for IPv6 management (full mode); ipset optional
nftables nft
ufw ufw
firewalld firewall-cmd

When ipset is installed on an iptables host, aliases used as source or destination become real ipsets instead of inline copies of every address, and dynamic aliases can be updated live.

After every deploy FireHawk saves the rules with the distribution’s own boot tooling, such as iptables-persistent on Debian or iptables-services on RHEL. These packages do not need to be installed beforehand: when one is missing, the deploy still applies the rules, the host shows not persisted, and the Install button on the host page installs the package (apt, apk, dnf or zypper) and saves the live rules through it. See Backends and persistence.

FireHawk works with any Linux distribution that runs a supported backend. Native boot persistence is known for:

  • Debian, Ubuntu and derivatives
  • Alpine Linux (OpenRC)
  • RHEL, Rocky Linux, AlmaLinux, Fedora
  • openSUSE and SLES (nftables on Tumbleweed / SLES 16, firewalld; there is no native iptables persistence)

ufw and firewalld persist their rules by themselves on every distribution.