Skip to content

Install and run

David Reed edited this page Nov 23, 2026 · 4 revisions

This page covers running holyWisp for real on Linux: the packages, the systemd unit and its sandbox, where the config and state live, upgrades and removal. To try it first, see Quickstart. To build the binaries or the packages yourself, see Building from source.

Release artefacts

Every push to master rebuilds the rolling prerelease latest; a v* tag makes a release of its own that is kept. Both are on the releases page, with the same set of files:

File For
holywisp-linux-x64.tar.gz, holywisp-linux-arm64.tar.gz x86_64 or aarch64 Linux, glibc 2.35+: holywisp, holywisp-client, README.md, and holywisp.conf (a copy of holywisp.conf.example)
holywisp-client-linux-x64.tar.gz, holywisp-client-linux-arm64.tar.gz the client alone, for the same systems
holywisp_<version>-<rev>_amd64.deb Debian 12+, Ubuntu 22.04+: the server as a systemd service
holywisp-client_<version>-<rev>_amd64.deb the client alone: no service, user or config
holywisp-<version>-<rev>.fc41.x86_64.rpm Fedora 41+: the server, as the .deb
holywisp-client-<version>-<rev>.fc41.x86_64.rpm the client alone
holywisp-<version>.tgz the npm package, Node.js 20+ (see Node package)
SHA256SUMS checksums of all of the above

At the time of writing <version>-<rev> is 0.5.4-4. <version> is the project version in CMakeLists.txt; <rev> is the packaging revision (pkg_release in deploy/package.sh), raised when the packaging changes without a new version. The .deb and .rpm are built for x86_64 only; on arm64, use the tarball.

The URL https://github.com/Fracital/holyWisp/releases/download/latest/<file> always points at the newest master build. The package file names carry the version, so a script that downloads a package by name breaks when the version changes; the tarball names do not.

To check a download:

curl -fsSLO https://github.com/Fracital/holyWisp/releases/download/latest/SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS

Install the .deb (Debian, Ubuntu)

curl -fsSLO https://github.com/Fracital/holyWisp/releases/download/latest/holywisp_0.5.4-4_amd64.deb
sudo apt install ./holywisp_0.5.4-4_amd64.deb
sudo systemctl status holywisp

The package depends on libc6 (at least the newest glibc symbol version the binary uses), libcrypt1 (>= 1:4.1.0) and adduser; the client package depends on libc6 alone. The server's postinst:

  1. creates the system group and user wisp (no login, shell /usr/sbin/nologin, home /var/lib/holywisp) if they do not exist;
  2. sets /etc/holywisp to root:wisp 0750, /etc/holywisp/holywisp.conf to root:wisp 0640 and /var/lib/holywisp to wisp:wisp 0750;
  3. when systemd is running, runs systemctl daemon-reload, enable and restart for holywisp.service.

So after apt install the server is running and listens on 127.0.0.1:6001. Inside a container image build, where systemd is not running, step 3 is skipped.

The client is a separate package:

curl -fsSLO https://github.com/Fracital/holyWisp/releases/download/latest/holywisp-client_0.5.4-4_amd64.deb
sudo apt install ./holywisp-client_0.5.4-4_amd64.deb

Install the .rpm (Fedora)

sudo dnf install https://github.com/Fracital/holyWisp/releases/download/latest/holywisp-0.5.4-4.fc41.x86_64.rpm
sudo systemctl enable --now holywisp
sudo systemctl status holywisp

The %pre script creates the wisp group and user (shell /sbin/nologin) if they are missing; %post applies the tmpfiles entry and sets the same owners and modes as the .deb. Its systemd step (%systemd_post) applies the distribution's preset, and Fedora's preset leaves a service it does not list disabled. So unlike the .deb, the .rpm does not start the server; the enable --now above does.

The client:

sudo dnf install https://github.com/Fracital/holyWisp/releases/download/latest/holywisp-client-0.5.4-4.fc41.x86_64.rpm

What the server package installs

Path Owner, mode What it is
/usr/bin/holywisp root:root 0755 the server
/etc/holywisp/ root:wisp 0750 config directory
/etc/holywisp/holywisp.conf root:wisp 0640 the config, from deploy/holywisp.conf; a conffile (.deb) or %config(noreplace) (.rpm), so upgrades keep your edits
/var/lib/holywisp/ wisp:wisp 0750 state: the reputation store and the WebTransport stateless-reset key
/lib/systemd/system/holywisp.service (.deb), /usr/lib/systemd/system/holywisp.service (.rpm) 0644 the unit, from deploy/systemd/holywisp.service
/usr/lib/sysusers.d/holywisp.conf 0644 the wisp account for systemd-sysusers
/usr/lib/tmpfiles.d/holywisp.conf 0644 the two directories above for systemd-tmpfiles

The config is not world-readable because it may hold password-user lines (hashes or plain text). The config directory belongs to root, with the wisp group allowed to read it: a directory the service user owned would let a compromised server replace the files in it.

The installed config differs from the binary's built-in defaults in a few places:

Key deploy/holywisp.conf built-in default
host 127.0.0.1 empty (all interfaces)
reputation-store /var/lib/holywisp/reputation.json none
webtransport-reset-key-file /var/lib/holywisp/webtransport-reset.key none

Everything else in it is written out at its default, so you can see and change it in place. Configuration describes every key.

Configure and restart

sudoedit /etc/holywisp/holywisp.conf
sudo holywisp --config /etc/holywisp/holywisp.conf --check-config
sudo systemctl restart holywisp

--check-config parses and checks the file as a start would (every rule across keys, the proxy's host resolving, a WebTransport certificate and key loading as a pair, the policy-file loading with its lists passing the same rules), binds nothing, prints no secret, and exits 0 when the server would start with it:

holywisp 0.5.4: configuration ok

and 1 when it would not, with the reason:

holywisp: configuration refused: tcp-warp needs udp-warp-marks and udp-warp-state: they are its tunnels

Run it before every restart. With --check-config, a file or option it cannot parse at all (a missing file, an unknown key) also exits 1; a start without it exits 2 for those and adds try 'holywisp --help'.

A restart stops the server at once and drops every open tunnel, unless drain-timeout-s is set: then systemctl restart lets the old process finish its streams for up to that long first, and new clients are refused meanwhile. Running in production has that, and a two-unit pattern that leaves no gap.

The config is read once at start. There is no reload: the unit has no ExecReload, so systemctl reload holywisp is refused, and a SIGHUP would stop the server. Two things change without a restart:

  • the log level: sudo systemctl kill -s USR1 holywisp makes it one level more verbose, -s USR2 one level less (never quieter than error); no client is dropped;
  • the files the server watches: policy-file, webtransport-cert/-key and webtransport-cert-dir are read again when they change (see Configuration).

The server logs to standard error, which systemd sends to the journal:

journalctl -u holywisp -f

To expose the server beyond the machine, put a reverse proxy in front of 127.0.0.1:6001 that terminates TLS (Reverse proxy). holyWisp has no TLS on its WebSocket listener. If clients must reach it directly, set host to an address of the machine, or empty for all of them.

The systemd unit and its sandbox

The server parses bytes from anyone and opens sockets to hosts that clients choose, so the unit is built on the assumption that the process could be compromised. systemd-analyze security --offline=true deploy/systemd/holywisp.service rates it 1.3, "OK".

Directive What it means for you
User=wisp, Group=wisp runs as the unprivileged wisp account
ExecStart=/usr/bin/holywisp --config /etc/holywisp/holywisp.conf the config path is fixed here
Type=exec, Restart=on-failure, RestartSec=2s a crash is restarted after 2 s; a clean exit is not. A process that is alive but stuck is not a failure to systemd: the packaged config's worker-watchdog-s = 60 turns one into a crash (Running in production)
TimeoutStopSec=90s how long systemd waits for the process to exit before SIGKILL; keep it above drain-timeout-s
LimitNOFILE=262144 each stream costs a socket, and a bulk TCP stream a pipe (two more descriptors); raise this for very many streams
MemoryMax=1G, TasksMax=512 the cgroup's memory and task caps (see the note below)
NoNewPrivileges=yes, CapabilityBoundingSet= (empty), AmbientCapabilities= (empty) no capabilities at all, and nothing the process runs can gain any
ProtectSystem=strict, ProtectHome=yes, PrivateTmp=yes, ReadWritePaths=/var/lib/holywisp the whole filesystem is read-only except /var/lib/holywisp; home directories are hidden
RestrictAddressFamilies=AF_INET AF_INET6 TCP and UDP over IPv4 and IPv6 only: no Unix sockets, no netlink, no raw packets
SystemCallFilter=@system-service minus @privileged @obsolete @cpu-emulation @swap @reboot @mount @debug @raw-io, SystemCallErrorNumber=EPERM a refused system call fails with EPERM instead of killing the process
PrivateDevices, ProtectKernelTunables, ProtectKernelModules, ProtectKernelLogs, ProtectControlGroups, ProtectClock, ProtectHostname, ProtectProc=invisible, ProcSubset=pid, RestrictNamespaces, LockPersonality, MemoryDenyWriteExecute, RestrictRealtime, RestrictSUIDSGID, RemoveIPC, KeyringMode=private no devices, kernel settings, namespaces or writable-and-executable memory
UMask=0077 files the server creates (the reputation store, the reset key) are owner-only

What follows from it:

  • Every file the server writes must be under /var/lib/holywisp: reputation-store, webtransport-reset-key-file. A path anywhere else fails at runtime with a read-only filesystem error.
  • Every file it reads (policy-file, webtransport-cert, -key, -cert-dir, udp-warp-state) must be readable by the wisp user. /etc/holywisp/ with root:wisp 0640 files works.
  • A port below 1024 needs CAP_NET_BIND_SERVICE in both AmbientCapabilities= and CapabilityBoundingSet=. Do it with a drop-in, not by editing the packaged unit, which an upgrade replaces.
  • udp-warp-marks needs CAP_NET_ADMIN, added the same way. Without it the server starts anyway, logs an ERROR and sends UDP unmarked (Proxies and WARP).
  • Twisp terminal streams work inside the sandbox: @system-service has the calls a pseudo-terminal needs, and whatever the shell runs inherits the same restrictions. Twisp is off unless you turn it on (Security and limits).

The unit caps memory at 1 GiB (MemoryMax=1G), and the packaged config sets server-queue-max to 512 MiB and server-queue-max-per-ip to 128 MiB, so the queue budget pauses clients before the cgroup is full. The other half of the cap is for what the budget does not count: read buffers, relay pipes and the kernel's socket buffers, which are charged to the same cgroup. If the kernel does kill the server inside it, systemd restarts it 2 s later and every connection is lost. To give a busy relay more, raise the two together in a drop-in (sudo systemctl edit holywisp, for example MemoryMax=4G with a 2 GiB server-queue-max). The binary's own default for server-queue-max is 4 GiB. Since 0.5.4 the server reads the tightest memory.max over its cgroup at start and holds server-queue-max to half of it whatever the config says, and logs that it did. Running in production has what the other half goes to and how to size the unit from /stats.

A drop-in for a privileged port and more memory:

sudo systemctl edit holywisp
[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
MemoryMax=4G
sudo systemctl restart holywisp

Do not remove sandbox directives to make something work. If the server needs a path, a capability or a socket family the unit does not give it, add exactly that one.

Run a source build as a service

The packages are the supported way. To install a binary you built yourself with the same layout:

sudo install -m 0755 build/release/holywisp /usr/bin/holywisp
sudo install -D -m 0644 deploy/systemd/holywisp.sysusers /usr/lib/sysusers.d/holywisp.conf
sudo install -D -m 0644 deploy/systemd/holywisp.tmpfiles /usr/lib/tmpfiles.d/holywisp.conf
sudo systemd-sysusers /usr/lib/sysusers.d/holywisp.conf      # the wisp user and group
sudo systemd-tmpfiles --create /usr/lib/tmpfiles.d/holywisp.conf  # /etc/holywisp, /var/lib/holywisp
sudo install -m 0640 -o root -g wisp deploy/holywisp.conf /etc/holywisp/holywisp.conf
sudo install -D -m 0644 deploy/systemd/holywisp.service /etc/systemd/system/holywisp.service
sudo systemctl daemon-reload
sudo systemctl enable --now holywisp

deploy/package.sh builds the same .deb and .rpm that CI publishes (Building from source), which is usually simpler than the steps above.

Run it without systemd

The binary needs nothing but its config and a writable directory for the reputation store:

./holywisp --config holywisp.conf

Every key is also a --key value flag, and flags override the file (Configuration). SIGINT and SIGTERM stop the server cleanly. It exits 0 after a clean stop, 1 when the config is refused or the server cannot start (the reason is logged first), and 2 when the command line or the config file cannot be parsed.

The tarball's holywisp.conf sets host = 127.0.0.1 and reputation-store = ./data/reputation.json, relative to the directory you start it from; the server creates ./data/ itself. Set host to an interface address, or leave it empty for all of them, when the server should be reachable from other machines.

A program that starts holywisp as a child can set stop-on-stdin-eof = on and hold a pipe on its standard input: the server then stops when the parent goes away, even after a kill -9. The Node package does this. Leave it off under systemd, where standard input is /dev/null and the server would stop at once.

A second holywisp on an address and port that another one holds fails to start with cannot start: Address already in use, as it would for any other program on the port. The workers' listeners share the port with SO_REUSEPORT, but the first one is bound without it once beforehand, so a port any socket holds is refused. With webtransport on, the UDP port is checked the same way (wt: cannot bind UDP <host>:<port> for WebTransport: Address already in use, then cannot start). Find the holder with ss -ltnp 'sport = :6001' (ss -lunp for UDP).

Upgrade

.deb: install the newer file with apt install ./holywisp_<new>_amd64.deb. Your edited /etc/holywisp/holywisp.conf is kept (dpkg asks when the packaged version changed as well), and postinst restarts the service.

.rpm: sudo dnf upgrade ./holywisp-<new>.fc41.x86_64.rpm or the URL. An edited config is kept and the new packaged one is written beside it as holywisp.conf.rpmnew; the service is restarted after the upgrade.

Compare your config with the new deploy/holywisp.conf (or the .rpmnew) for keys that are new, and run --check-config before the restart. Each release's notes, and CHANGELOG.md, have a "Check before upgrading" list of what a working setup could trip over.

Until 0.5.3-2 the server package also carried holywisp-client. From 0.5.3-2 on the client is its own package (Replaces: holywisp (<< 0.5.3-2) in the .deb, Conflicts: holywisp < 0.5.3-2 in the .rpm). Installing holywisp-client never removes a server; upgrade both to keep both.

Remove

Command Service Config and state wisp user
sudo apt remove holywisp stopped, disabled kept kept
sudo apt purge holywisp stopped, disabled /etc/holywisp and /var/lib/holywisp deleted, the reputation store with them kept
sudo dnf remove holywisp stopped, disabled an edited config is saved as .rpmsave; /var/lib/holywisp files the package did not install stay kept

The wisp account stays, as Debian policy asks for system accounts. Remove it with sudo userdel wisp once nothing else uses it.

Platforms

Linux is the platform holyWisp is built and tuned for: epoll, accept4, eventfd, SO_REUSEPORT and splice. macOS and Windows builds exist so that the Node package runs on a developer's Mac or PC. They run the same server and the same tests, but they are not production targets.

Linux macOS Windows
Where to get it tarball, .deb, .rpm, npm, source npm, source npm (cross-built with zig)
Event loop epoll kqueue select
Accepting one listener per worker (SO_REUSEPORT) workers share one listener workers share one listener
Remote to client on a bulk TCP stream splice through a pipe, no copy copied copied
WebTransport one UDP socket per worker, steered by connection ID one socket, on worker 0 one socket, on worker 0
Hashed passwords (crypt(3)) yes no: macOS crypt(3) knows none of $2b$, $5$, $6$ or $y$, so a config with one is refused at start; use plain-text passwords there no: a config with a $ password is refused at start
Twisp terminal streams yes yes no: enable-twisp is refused at start
SIGUSR1/SIGUSR2 log level yes yes no
udp-warp-*, tcp-warp socket marks yes, with CAP_NET_ADMIN no no
Reset close toward the remote yes plain close plain close
holywisp-client yes yes not built

The release tarballs are built on Ubuntu 22.04 and link glibc dynamically, and need glibc 2.34 or newer. The .deb is built on Debian 12 and runs on Ubuntu 22.04 and later; the .rpm is built on Fedora 41, needs glibc 2.38 and is for Fedora 41 and later, not RHEL 9. The tarballs' holywisp also links libcrypt.so.1, which is what Debian and Ubuntu ship; holywisp-client does not link libcrypt. Fedora, RHEL and Arch ship libcrypt.so.2 by default; if the tarball's server fails with libcrypt.so.1: cannot open shared object file, install libxcrypt-compat, or use the .rpm, or build from source. The Linux binaries in the npm package are static (musl) and run on any distribution, glibc or musl.

Troubleshooting

systemctl status holywisp shows failed right after a config edit: run sudo holywisp --config /etc/holywisp/holywisp.conf --check-config and read the reason, then journalctl -u holywisp -n 50.

Read-only file system or Permission denied in the log for a file the server writes: the path is outside /var/lib/holywisp. Move it there.

Permission denied for a file the server reads: make it readable by the wisp group (chgrp wisp FILE; chmod 0640 FILE) and its directory searchable.

The service restarts every so often under load and the journal shows the cgroup's OOM kill: see the MemoryMax note in the sandbox section.

bind: Permission denied for a port below 1024: add CAP_NET_BIND_SERVICE with a drop-in, as above.

cannot start: Address already in use: another process holds the port, possibly an older holywisp started by hand. ss -ltnp 'sport = :6001' names it.

After dnf install, nothing listens on 6001: the .rpm does not enable the unit. Run sudo systemctl enable --now holywisp.

More symptoms and their causes: Troubleshooting.

Clone this wiki locally