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.
1. Create the files
Section titled “1. Create the files”Create a directory, then copy the docker-compose.yml from the Docker Compose installation page into it.
Create the .env file next to it:
mkdir -p firehawk && cd firehawk# save docker-compose.yml here firstcat > .env <<EOFFIREHAWK_TAG=1SECRET_KEY=$(openssl rand -hex 32)POSTGRES_USER=firehawkPOSTGRES_PASSWORD=$(openssl rand -hex 16)POSTGRES_DB=firehawkAPI_PORT=8000FRONTEND_PORT=8085FRONTEND_ORIGIN=http://localhost:8085BOOTSTRAP_ADMIN_EMAIL=admin@firehawk.localBOOTSTRAP_ADMIN_PASSWORD=changeme123EOFmkdir -p sshkeys2. Start FireHawk
Section titled “2. Start FireHawk”docker compose up -ddocker compose pscurl -s http://localhost:8000/api/healthThe 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.
3. Sign in
Section titled “3. Sign in”Open http://<server>:8085 and sign in with the BOOTSTRAP_ADMIN_EMAIL and BOOTSTRAP_ADMIN_PASSWORD from .env (here admin@firehawk.local / changeme123).
4. Add a first host
Section titled “4. Add a first host”- 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. - Test the connection. FireHawk checks SSH, resolves privilege escalation (root,
sudoordoas), detects the firewall backend and the operating system, and pins the host’s SSH key. - Open the host and look at the Current tab: it shows the live rules.
See Hosts and Credentials and jump hosts for every option.
5. Edit desired rules
Section titled “5. Edit desired rules”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.
6. Preview and deploy safely
Section titled “6. Preview and deploy safely”- 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.
- Keep safe deploy on and pick a window (for example 120 seconds), then deploy.
- 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.
Next steps
Section titled “Next steps”- Requirements for servers and managed hosts
- TLS and reverse proxy before exposing FireHawk to users
- Backup and security
- Drift detection and Policies
