Manual and from source
Install the HostWall binary by hand with signature and checksum verification, or build it from source with Go.
Manual binary install
-
Download the archive for your platform, the checksum file and its signature from the releases page:
VERSION=v0.1.0 ARCH=amd64 # or arm64 BASE="https://github.com/hostwall/hostwall/releases/download/$VERSION" curl -fLO "$BASE/hostwall_${VERSION#v}_linux_${ARCH}.tar.gz" curl -fLO "$BASE/checksums.txt" curl -fLO "$BASE/checksums.txt.sig" -
Verify the signature on
checksums.txt. Releases are signed with the project's Ed25519 release key, whose public half isjxTCWQHoP2KGk/tVpa3V/1V3d7Dg4dyn7itVe8XuMKY=(also built into HostWall, ininternal/update/key.go). From a clone of the repository (needs Go):go run ./tools/release-sign verify jxTCWQHoP2KGk/tVpa3V/1V3d7Dg4dyn7itVe8XuMKY= /path/to/checksums.txtReleases also carry GitHub build-provenance attestations, so with the GitHub CLI you can check any file instead:
gh attestation verify "hostwall_${VERSION#v}_linux_${ARCH}.tar.gz" --repo hostwall/hostwall -
Check the archive against the signed checksums:
sha256sum -c checksums.txt --ignore-missing -
Unpack and install:
tar -xzf "hostwall_${VERSION#v}_linux_${ARCH}.tar.gz" sudo install -m 0755 hostwall /usr/local/bin/hostwall hostwall version -
To run it as a service, create the user and directories, and install the systemd unit that ships in the archive:
sudo useradd --system --home-dir /var/lib/hostwall --shell /usr/sbin/nologin hostwall sudo mkdir -p /etc/hostwall /var/lib/hostwall sudo chown hostwall:hostwall /var/lib/hostwall sudo chmod 0700 /var/lib/hostwall sudo install -m 0644 packaging/systemd/hostwall.service /etc/systemd/system/hostwall.service sudo systemctl daemon-reload sudo systemctl enable --now hostwallA config file is optional. To start from the example, copy
examples/hostwall.yamlfrom the archive to/etc/hostwall/hostwall.yamland edit it (see the configuration reference).
Without systemd (for example Alpine with OpenRC), run sudo hostwall run under your init system or a process supervisor. There is no OpenRC script yet; contributions are welcome.
Build from source
Requires Go 1.26 or newer. No C compiler is needed.
git clone https://github.com/hostwall/hostwall.git
cd hostwall
make build # or: CGO_ENABLED=0 go build -trimpath -o bin/hostwall ./cmd/hostwall
./bin/hostwall versionmake build puts the version from git describe into the binary. A plain go build reports the version as dev.
To cross-compile, set GOOS and GOARCH, for example GOOS=linux GOARCH=arm64 make build.
Then install the binary as in the manual install, from step 4.
Try it locally without a domain
The repository has a local test setup that needs no admin rights, domain or certificates:
node examples/local/app.js # a tiny test app on port 3000
./bin/hostwall run --config examples/local/hostwall.yaml # prints the initial admin passwordOpen the dashboard at http://127.0.0.1:9443 and the protected test app at http://localhost:8080. The test app has links that send sample attacks.