Skip to Content
HostWall

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

PortUsed forOpen to the internet?
80/tcpHTTP: redirects to HTTPS and answers Let's Encrypt HTTP challengesYes
443/tcpHTTPS for your sitesYes
9443/tcpDashboard (127.0.0.1 only by default)No. Use an SSH tunnel
9180/tcpPrometheus metrics, only if you set server.metricsNo, 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 enable

With firewalld:

sudo firewall-cmd --permanent --add-service=http --add-service=https
sudo firewall-cmd --reload

Also 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

LinuxmacOSWindows
Binary/usr/local/bin/hostwall/usr/local/bin/hostwallwhere you unzipped it
Config file/etc/hostwall/hostwall.yaml/usr/local/etc/hostwall/hostwall.yamlC:\ProgramData\hostwall\hostwall.yaml
Data directory/var/lib/hostwall/usr/local/var/hostwallC:\ProgramData\hostwall\data
systemd unit/etc/systemd/system/hostwall.service
Logsjournalctl -u hostwallterminal outputterminal 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:

FileWhat 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.keyThe dashboard's self-signed certificate
initial-admin.txtThe initial admin password (mode 0600); deleted when you choose your own password

To back all of this up in one file, use hostwall backup.

Edit this page on GitHub

On this page