FAQ
Frequently asked questions about HostWall: performance, comparisons with SafeLine, BunkerWeb and ModSecurity, privacy, backups and more.
- Performance and memory
- HostWall vs SafeLine, BunkerWeb and ModSecurity + nginx
- Is it production ready?
- What data is stored?
- Backups
- Lost password or 2FA device
- Telemetry
- Roadmap
- Contributing and sponsoring
How fast is it, and how much memory does it use?
HostWall is a single Go process with a built-in SQLite database, so there are no extra containers or database servers to feed.
Honest numbers for v0.1:
- Latency: in development, inspecting a clean request takes about 1 to 2 ms. The goal for v0.1 is under 1 ms added.
- Memory: the target is under 128 MB for a small site. The compiled OWASP Core Rule Set is the largest part. The Settings page shows HostWall's current memory use.
- Reloads: each configuration change (a new site, an "Allow this" exception) recompiles the rule set in the background. The log line
configuration applied ... waf_compile=...shows how long that took. Requests keep flowing while it happens.
A public, rerunnable benchmark (latency, throughput, memory, detection and false-positive rates) is planned. Until it exists, treat these figures as targets, and please share your own measurements in Discussions.
Under a flood, HostWall drops security events (and logs how many) rather than slowing requests down.
How does HostWall compare with SafeLine?
SafeLine by Chaitin is a mature, popular self-hosted WAF with a strong semantic detection engine and few false positives. Differences:
- Openness: SafeLine's dashboard is open source, but its detection engine is a closed binary. Everything in HostWall is open source.
- Footprint: SafeLine runs as about 7 Docker containers with PostgreSQL and needs around 1 GB of RAM. HostWall is one binary with a built-in database, and Docker is optional.
- Editions: SafeLine has a paid Pro edition. HostWall has no paid edition.
- Platforms: SafeLine runs on Linux only. HostWall builds for Linux, Windows and macOS.
- Today, SafeLine does much more. It has rate limiting, bot challenges, an auth gate and a waiting room, and its detection is proven in production. HostWall v0.1 has none of those protection features yet (rate limits and bot challenges are planned for v0.2), and its detection is the OWASP Core Rule Set until the semantic engine lands in v0.3.
How does HostWall compare with BunkerWeb?
BunkerWeb is nginx plus ModSecurity with the OWASP CRS, Lua plugins and a web UI. It has a very wide feature set.
- Detection: both use the OWASP Core Rule Set. BunkerWeb runs it in ModSecurity; HostWall runs it in Coraza, a Go implementation of the same rule language.
- Footprint: BunkerWeb is usually 3 to 4 services (with Docker recommended) and a database. HostWall is one binary.
- Editions: BunkerWeb has a Pro edition; some features, such as anti-DDoS, load balancing, custom pages and Prometheus metrics, are Pro-only. HostWall has no paid edition, and every feature on its roadmap is free.
- Today, BunkerWeb does much more: rate limiting, bot challenges, country blocking, bad-behavior bans and much more. HostWall v0.1 covers the core: proxy, HTTPS, CRS, monitor mode and a dashboard.
How does HostWall compare with ModSecurity + nginx?
ModSecurity with nginx and the OWASP CRS is the classic do-it-yourself WAF. HostWall uses the same rule set, so detection at the same paranoia level is broadly similar. What HostWall adds is everything around the rules:
- one install instead of nginx, a ModSecurity build and a CRS checkout;
- automatic HTTPS;
- a dashboard that explains each block in plain language;
- monitor mode per site, and "Allow this" exceptions instead of hand-written
SecRulelines; - live reload that keeps the old config when the new one is invalid.
If you already run nginx and know ModSecurity well, it remains a solid choice. Note that ModSecurity is now maintained by OWASP after Trustwave ended its support.
A detailed table is in comparison.md. Figures for other products come from their public docs and may be out of date. Corrections are welcome.
Is HostWall production ready?
Not yet. HostWall is at v0.1, the first public release. It works end to end, and the detection comes from the mature OWASP Core Rule Set, but the code around it is new and hasn't had wide real-world use or a security audit.
If you try it on a real site:
- keep the site in monitor mode for a while and check the Attacks page before switching to block mode;
- take backups (
hostwall backup); - keep the dashboard on localhost (the default);
- report anything odd. Early feedback shapes v0.2.
The project aims for a security audit before v1.0.
What data does HostWall store?
Everything stays in the data directory on your server (/var/lib/hostwall on Linux).
| Data | Details | Kept for |
|---|---|---|
| Security events | For each blocked or monitored request: time, site, client IP, method, URL (including the query string, up to 2,048 characters), user agent, attack type, anomaly score, rule IDs, a few headers (User-Agent, Referer, Content-Type, Content-Length, Accept, Accept-Language, Origin), and for each matched rule where it matched and up to 200 characters of the matched value | event_retention_days (30 days by default) |
| Traffic statistics | Per site and per minute: request, blocked, monitored and error counts, and inspection time. No IPs or URLs. | 90 days |
| Sites and exceptions | Dashboard sites and "Allow this" exceptions, with who created them | Until you delete them |
| Account | The admin user: bcrypt password hash and, if you turned it on, the 2FA secret. Until you change it, the initial password is also in initial-admin.txt (mode 0600). | Until reset (hostwall admin reset) |
| Sessions | Only a hash of each session token | 7 days |
| Certificates | Let's Encrypt certificates, keys and ACME account; the dashboard's self-signed certificate | Renewed automatically |
HostWall never stores the Cookie or Authorization headers, full request bodies, or responses, and it doesn't log normal (clean) requests individually.
When a rule matches inside a cookie, form field or body, the matched part (up to 200 characters) is saved with the event, because that's what lets you see why a request was blocked. Values of fields that look secret (passwords, tokens, API keys, session and auth cookies, card numbers, CSRF tokens and similar) are replaced with [redacted] before anything is stored, in the matched values and in the URL's query string. The rule, field name and location stay visible. Other fields keep their matched value; if that's a concern, lower event_retention_days.
Client IP addresses are personal data under laws such as the GDPR. Mention HostWall's security logging in your privacy policy, as you would for web server logs.
How do I back up HostWall?
sudo hostwall backup --out /tmp/hostwall-backup.tar.gzThis writes one .tar.gz with a consistent snapshot of the database (sites, accounts, exceptions, events, statistics), all certificates and the config file. HostWall can keep running. When run with sudo, the file is written as the hostwall user, so pick a directory that user can write to (such as /tmp), then move the file somewhere safe.
The backup contains private keys, the password hash and the 2FA secret: store it like a password.
To restore, on the same or a new server:
sudo systemctl stop hostwall
sudo hostwall restore --force /tmp/hostwall-backup.tar.gz
sudo systemctl start hostwallFor scheduled backups, run hostwall backup from cron or a systemd timer and copy the file off the server. Built-in S3 backup is planned for v0.3. See the CLI reference.
In Docker: docker exec hostwall hostwall backup --out /var/lib/hostwall/backup.tar.gz, then copy it out with docker cp hostwall:/var/lib/hostwall/backup.tar.gz ..
I forgot my password or lost my 2FA device
On the server, reset the admin account:
sudo hostwall admin resetIt prints a new random password for admin (also written to /var/lib/hostwall/initial-admin.txt), turns two-factor sign-in off and signs everyone out. Sign in with the new password, choose your own, and turn 2FA back on in Settings. Sites, exceptions and events are kept. There is no password reset by email; access to the server is what proves you're the admin.
Does HostWall phone home?
No. There is no telemetry, analytics or usage reporting.
HostWall only makes outbound connections that you cause:
- to your upstream apps (and the upstream check in the site form);
- to Let's Encrypt (or your
tls.ca) to get and renew certificates; - to GitHub, only when you run
hostwall upgrade.
The install script downloads from GitHub. The dashboard loads no external fonts, scripts or trackers.
What's coming next?
From the roadmap:
- v0.2 (Protection): rate limits and HTTP flood protection, proof-of-work bot challenges, verified good bots and AI-crawler controls, IP, country and ASN rules, password gates, load balancing with health checks, wildcard certificates, users and roles, app rule packs (WordPress, Magento, Laravel, Next.js), and packages for apt, Homebrew, winget and more.
- v0.3 (Intelligence): an open semantic detection engine, a public benchmark, CVE virtual patches, alerts (Slack, Discord, email, webhooks), SSO, S3 backups.
- v1.0 (Scale): clustering with
hostwall join, Kubernetes, WASM plugins and an external security audit.
Everything on the roadmap is free. There is no paid edition.
How can I help?
- Try it and tell us what was confusing, in Discussions.
- Report false positives with the issue template. They directly improve detection for everyone.
- Pick a good first issue. Small, well-described tasks: tests, CLI output formats, translations, docs.
- Improve the docs, especially install guides for your platform.
- Star the repo and share it with people who run their own servers.
See CONTRIBUTING.md to get started. Development needs only Go 1.26 or newer.
Sponsoring
HostWall is free and will stay free, with no paid edition. Sponsorship pays for test servers, a security audit and development time: github.com/sponsors/ckgiri.