Skip to content

Quickstart

This page is the shortest path to a working FireHawk. For a production installation, read Install with Docker Compose afterwards.

You need a Linux machine with Docker and the Docker Compose plugin, and a Linux host to manage that the FireHawk machine can reach over SSH.

Create a directory, then copy the docker-compose.yml from the Docker Compose installation page into it.

Create the .env file next to it:

Terminal window
mkdir -p firehawk && cd firehawk
# save docker-compose.yml here first
cat > .env <<EOF
FIREHAWK_TAG=1
SECRET_KEY=$(openssl rand -hex 32)
POSTGRES_USER=firehawk
POSTGRES_PASSWORD=$(openssl rand -hex 16)
POSTGRES_DB=firehawk
API_PORT=8000
FRONTEND_PORT=8085
FRONTEND_ORIGIN=http://localhost:8085
BOOTSTRAP_ADMIN_EMAIL=admin@firehawk.local
BOOTSTRAP_ADMIN_PASSWORD=changeme123
EOF
mkdir -p sshkeys
Terminal window
docker compose up -d
docker compose ps
curl -s http://localhost:8000/api/health

The first start pulls the images, waits for PostgreSQL and creates the database schema. /api/health answers with the running version once the API is up.

Open http://<server>:8085 and sign in with the BOOTSTRAP_ADMIN_EMAIL and BOOTSTRAP_ADMIN_PASSWORD from .env (here admin@firehawk.local / changeme123).

  1. Open Hosts and add a host: name, address (FQDN or IP), SSH port, login user and authentication (password, a key file in sshkeys/, or a stored credential from the Credentials page). Leave the privilege mode on automatic detection.
  2. Test the connection. FireHawk checks SSH, resolves privilege escalation (root, sudo or doas), detects the firewall backend and the operating system, and pins the host’s SSH key.
  3. Open the host and look at the Current tab: it shows the live rules.

See Hosts and Credentials and jump hosts for every option.

On the host’s Desired tab, either use Load from host to start from the rules configured today, or add rules by hand. Nothing changes on the host until you deploy. See Rules.

  1. On the Deploy tab, click Preview. It shows the rule changes compared with the last deployed version and, one click away, the exact shell commands.
  2. Keep safe deploy on and pick a window (for example 120 seconds), then deploy.
  3. FireHawk takes a snapshot, applies the rules, reconnects over a new SSH connection to confirm it still has access, and only then saves the rules for the next boot.

If the new rules had locked FireHawk out, the host would restore its previous rules by itself at the end of the window. Any deploy can also be rolled back from the Deploy tab. See Deploy and rollback.