Ports and files
The ports HostWall uses, firewall setup, and where its binary, config and data live on Linux, macOS and Windows.
Ports and firewall
| Port | Used for | Open to the internet? |
|---|---|---|
| 80/tcp | HTTP: redirects to HTTPS and answers Let's Encrypt HTTP challenges | Yes |
| 443/tcp | HTTPS for your sites | Yes |
| 9443/tcp | Dashboard (127.0.0.1 only by default) | No. Use an SSH tunnel |
| 9180/tcp | Prometheus metrics, only if you set server.metrics | No, unless your monitoring server needs it |
Port 80 must stay open even if all your sites use HTTPS: Let's Encrypt uses it to issue and renew certificates.
With ufw:
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enableWith firewalld:
sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reloadAlso make sure your app's own port (for example 3000) isn't reachable from the internet, so nobody can skip HostWall.
Many cloud providers (AWS, GCP, Azure, Oracle, Hetzner Cloud firewalls) have their own firewall in front of the server. Open ports 80 and 443 there too.
File locations
| Linux | macOS | Windows | |
|---|---|---|---|
| Binary | /usr/local/bin/hostwall | /usr/local/bin/hostwall | where you unzipped it |
| Config file | /etc/hostwall/hostwall.yaml | /usr/local/etc/hostwall/hostwall.yaml | C:\ProgramData\hostwall\hostwall.yaml |
| Data directory | /var/lib/hostwall | /usr/local/var/hostwall | C:\ProgramData\hostwall\data |
| systemd unit | /etc/systemd/system/hostwall.service | ||
| Logs | journalctl -u hostwall | terminal output | terminal output |
Override the config path with --config or the HOSTWALL_CONFIG environment variable, and the data directory with --data, server.data_dir or HOSTWALL_DATA. HOSTWALL_DASHBOARD sets the dashboard address when the config file doesn't.
Inside the data directory:
| File | What it is |
|---|---|
hostwall.db (plus -wal and -shm) | SQLite database: dashboard sites, accounts, sessions, exceptions, events and statistics |
certs/ | Let's Encrypt certificates and keys, and the ACME account |
dashboard.crt, dashboard.key | The dashboard's self-signed certificate |
initial-admin.txt | The initial admin password (mode 0600); deleted when you choose your own password |
To back all of this up in one file, use hostwall backup.