Skip to content

Security model

Privileges

  • fr0ntier serve runs as root: it must manage nftables, routes, interfaces and system services. It contains no third-party code (Go standard library only).
  • fr0ntier dns — the service exposed to every LAN client — runs as fr0ntier-dns with only CAP_NET_BIND_SERVICE and a strict systemd sandbox (read-only system, private devices, restricted address families, no new privileges, memory limit).
  • dnsmasq drops privileges itself; OpenVPN runs as nobody after start; nginx workers run as www-data (the master process reads the certificates as root).

Administrative access

  • Per-interface allow-access controls which firewall services answer where.
  • Trusted hosts restrict HTTPS/SSH to given networks, enforced twice: in nftables and in the API (loopback always allowed for the local CLI).
  • The admin port can be moved (System → Settings → Administration).

Authentication

  • Passwords: PBKDF2-HMAC-SHA256 (150 000 iterations, 16-byte salt); policy: ≥ 10 characters, three character classes; forced change for new/reset accounts.
  • TOTP (RFC 6238) two-factor authentication.
  • Lockout after N failures per user and per source IP (default 5 → 10 minutes).
  • Sessions: random 256-bit IDs, cookies HttpOnly; Secure; SameSite=Strict, idle timeout, CSRF header on every state-changing request; WebSockets require same origin.
  • API tokens are stored hashed (SHA-256), have a role and an optional expiry, and cannot exceed their owner's role.
  • Roles: superadmin, admin, auditor (read-only).

Remote users (OpenVPN)

  • Authentication is decided by the daemon over the OpenVPN management interface: no auth scripts run inside the VPN process.
  • Passwords: PBKDF2-HMAC-SHA256 (same parameters as administrators); minimum length is configurable. Hashes and authenticator keys are never returned by the API and are masked in diffs and CLI output (ENC ******).
  • Second factor: TOTP (±30 s, single use — replayed codes are refused) or a random e-mail code (crypto/rand, constant-time comparison, three attempts, configurable lifetime).
  • Lockout after N failures (password or code) per user; account expiry; group checks on every connection and renegotiation; sessions of disabled users are closed at commit.
  • Personal certificates are bound to the user name (certificate CN must match) and revoked through the CRL when the user is disabled, deleted or leaves the allowed groups.
  • SMTP credentials are only sent over TLS (STARTTLS or implicit TLS).

Reverse proxy

  • nginx listens only on the selected interfaces; unknown host names get no answer (444 / TLS handshake rejected) and server_tokens is off.
  • Every configuration is validated with nginx -t before it is applied.
  • Optional source restrictions and basic authentication (salted SHA hashes) per host; TLS 1.2+ only, HSTS on by default.

Web hardening

Strict Content-Security-Policy (no inline scripts, no third-party resources), HSTS, X-Frame-Options: DENY, nosniff, no referrer, TLS 1.2+ with modern curves.

Change safety

Validation, native pre-checks, atomic writes, commit-confirmed with persistent automatic rollback, fail-safe ruleset at boot, 10 versions, full audit trail.

Secrets

WireGuard/IPsec/Wi-Fi secrets live in files readable only by root (WireGuard keys by systemd-network); they are masked in diffs, previews and CLI output. Backups contain secrets — store them safely.

AGPL §13

The About page links to the source code, as required for network-accessible software under the AGPL.