davidalvarezp/fr0ntier
About
Lightweight next-generation firewall for Debian 13, from a Raspberry Pi to an x64 appliance. nftables, commit/rollback, FortiOS-style CLI, OpenVPN/WireGuard/IPsec with 2FA, reverse proxy with Let's Encrypt, DNS filtering and built-in monitoring.
Systems & InfrastructureWhat you can do
- Commit model - Edit a candidate, review a structured diff + the exact system files that change, then commit. Commit-confirmed rolls back automatically if you lose access. Last 10 versions kept; diff, load or roll back any of them. Optional exclusive lock.
- Firewall - nftables, zones, ordered policies (interfaces/zones, address objects & groups, FQDN objects, services, schedules, VPN user groups), accept/deny/reject, per-policy NAT, SNAT rules, port forwarding with auto-policy, flow offload (fast path), MSS clamping, SYN-flood protection, per-interface administrative access, trusted hosts.
- Policy tools - Policy lookup (simulate a connection, see the evaluation trace) and a rule analyzer (shadowed, redundant, overly permissive rules, unused objects, risky exposure) shown before every commit.
- Users & 2FA - local users and groups for remote access: PBKDF2 passwords, expiry, lockout, authenticator apps (TOTP) or e-mail codes, QR enrolment, access e-mails with the VPN profile, live remote sessions with disconnect and identity-based policies.
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
fr0ntier
Lightweight next-generation firewall
From a Raspberry Pi to an x64 appliance | web-managed, commit-based, observable.
Website · Documentation · Releases
fr0ntier turns a fresh Debian 13 minimal installation [ on a Raspberry Pi or ARM board, a mini-PC, a server or a virtual machine ] into a professional firewall with a clean, easy and powerfull web interface, a commit model, a WebUI CLI, remote-access VPN with users and two-factor authentication, a reverse proxy with automatic HTTPS and a complete local monitoring stack. All in a single Go binary plus standard Linux components.

Highlights
| Commit model | Edit a candidate, review a structured diff + the exact system files that change, then commit. Commit-confirmed rolls back automatically if you lose access. Last 10 versions kept; diff, load or roll back any of them. Optional exclusive lock. |
| Firewall | nftables, zones, ordered policies (interfaces/zones, address objects & groups, FQDN objects, services, schedules, VPN user groups), accept/deny/reject, per-policy NAT, SNAT rules, port forwarding with auto-policy, flow offload (fast path), MSS clamping, SYN-flood protection, per-interface administrative access, trusted hosts. |
| Policy tools | Policy lookup (simulate a connection, see the evaluation trace) and a rule analyzer (shadowed, redundant, overly permissive rules, unused objects, risky exposure) shown before every commit. |
| Users & 2FA | local users and groups for remote access: PBKDF2 passwords, expiry, lockout, authenticator apps (TOTP) or e-mail codes, QR enrolment, access e-mails with the VPN profile, live remote sessions with disconnect and identity-based policies. |
| VPN | OpenVPN decided by fr0ntier through the management interface (personal certificate + password + 2FA, session tokens, built-in CA, tls-crypt, CRL), WireGuard (road warriors with QR codes, site-to-site, or WAN over WireGuard to a VPS) and IPsec IKEv2 route-based tunnels (strongSwan + XFRM). |
| Reverse proxy | Publish internal web apps by domain name with nginx and free Let's Encrypt certificates: load balancing, WebSockets, HTTP→HTTPS, HSTS, HTTP/2, source restrictions, basic auth, JSON access log. |
| Networking | Stable port names by MAC (port1, port2, wifi1…), VLANs, bridges, Wi-Fi AP or client, static/DHCP/IPv6, static routes, multi-WAN gateway monitoring with failover, CAKE egress shaping. |
| DHCP & DNS | dnsmasq DHCP/RA with reservations; own DNS server in Go: cache, local zone with DHCP names, local records, conditional forwarders, DNS-over-TLS / DNS-over-HTTPS upstreams, Pi-hole style blocklists, allow/deny lists with regex, CNAME-cloaking detection, rebind protection, rate limiting, query log and analytics. |
| Monitoring | Embedded multi-resolution TSDB (raw → 1 min → 5 min → 1 h, up to years on NVMe), interface/system/thermal/throttling/disk/S.M.A.R.T. metrics, sessions, top talkers, firewall log (NFLOG), flow log, DNS analytics, VPN and proxy logs, gateway health, alert rules with notifications (webhook, Slack, Discord, ntfy, Telegram, e-mail) and a metrics explorer. |
| Export | Prometheus endpoint, InfluxDB v1/v2, Graphite, syslog (RFC 5424/3164, CEF, JSON over UDP/TCP/TLS), HTTP (JSON, NDJSON, Splunk HEC, Elasticsearch/OpenSearch, Grafana Loki) and JSONL files for a NAS. |
| Administration | HTTPS web UI (dark/light), web terminal with usefull CLI (config/edit/set/next/end, get, show, diagnose, execute, TAB completion, ? help) and optional system shell, REST API with tokens, roles (superadmin/admin/auditor), TOTP 2FA, brute-force lockout, audit log, backups, packet capture to pcap. |
Screenshots
| Firewall policy | Users & two-factor authentication |
|---|---|
![]() |
![]() |
| Reverse proxy | Review & commit |
![]() |
![]() |
| CLI console | Light theme |
![]() |
![]() |
Editions
fr0ntier is released in two editions built from the same source, with the same features. The installer detects your hardware and downloads the right one.
| Edition | Architecture | For | Download |
|---|---|---|---|
| fr0ntier ARM | arm64 / aarch64 | Raspberry Pi 3, 4 and 5, ARM boards, ARM servers | fr0ntier-v1.0.1-arm.tar.gz |
| fr0ntier x64 | x86-64 / amd64 | PCs, mini-PCs and appliances (Intel N100…), servers, VMs (Proxmox, VMware, Hyper-V, VirtualBox) | fr0ntier-v1.0.1-x64.tar.gz |
Both are published in every release
together with checksums.txt.
Requirements
ARM edition
| Minimum | Recommended | |
|---|---|---|
| Board | Raspberry Pi 3B / 3B+ (1 GB) | Raspberry Pi 4 (4 GB) or Raspberry Pi 5 (4–8 GB), or any arm64 board supported by Debian |
| Storage | 8 GB microSD (A1) | 32 GB A2 microSD or, better, NVMe / USB SSD (Pi 5 + M.2 HAT) for long retention |
| Network | 1 Ethernet port (WAN over WireGuard, or Wi-Fi as second interface) | 2+ ports: on-board + USB 3 gigabit adapters (RTL8153 / AX88179) |
| OS | Debian 13 trixie arm64 (or Raspberry Pi OS Lite 64-bit based on trixie) | Debian 13 minimal arm64 |
Raspberry Pi extras: SoC temperature, under-voltage / throttling alerts, SD-card wear reduction and hardware watchdog are handled automatically. 32-bit images are not supported.
x64 edition
| Minimum | Recommended | |
|---|---|---|
| Machine | Any 64-bit x86 CPU, 2 cores, 1 GB RAM | Mini-PC / appliance with 4 GB RAM and 2+ Intel NICs (i210 / i211 / i226) |
| Storage | 8 GB | 32 GB+ SSD / NVMe |
| Virtual machine | 1 vCPU, 1 GB RAM, 2 virtio NICs | 2 vCPU, 2 GB RAM, one NIC per network |
| OS | Debian 13 trixie amd64 (netinst, no desktop) | Debian 13 minimal amd64 |
Performance depends heavily on the hardware, NICs and features enabled. Fast path (flow offload) is enabled by default. Contributions of benchmark results are welcome.
Install
The same steps for both editions. Prepare the system first:
- ARM: flash Debian 13 arm64 (Raspberry Pi images: raspi.debian.net).
- x64: install Debian 13 amd64 from the netinst image with only SSH server and standard system utilities. For a VM, add two virtual NICs.
Then, as root (SSH or console):
apt-get install -y git
git clone https://github.com/davidalvarezp/fr0ntier.git
cd fr0ntier
sudo ./install.sh
The installer is modular (scripts/install.d/) and idempotent. It detects the edition,
installs the base packages, the fr0ntier binary (verified GitHub release, or built
from source with Go), names your ports, creates the first configuration from a
preset, migrates networking to systemd-networkd and prints the admin credentials.
After the reboot open:
https://<firewall-ip>:8443
Presets: mgmt (keep current addressing — safest), router (WAN + LAN with DHCP/DNS),
wifi-lan (Ethernet WAN + Wi-Fi access point), wg-wan (single Ethernet LAN + WireGuard
tunnel to a VPS as WAN). Run ./install.sh --help for all options, or see the
installation guide
for the ARM and x64 details, VMs and offline installation.
Upgrade: cd fr0ntier && git pull && sudo ./install.sh --upgrade · Remove: sudo ./uninstall.sh [--purge]
Architecture
flowchart LR
UI[Web UI / REST API / CLI] --> D[fr0ntier serve]
D -->|candidate → commit| E[Commit engine]
E --> R[Renderers]
R --> NFT[nftables]
R --> NET[systemd-networkd]
R --> DHCP[dnsmasq DHCP]
R --> DNSJ[dns.json]
R --> VPN[WireGuard · OpenVPN · strongSwan]
R --> WIFI[hostapd · wpa_supplicant]
R --> PX[nginx reverse proxy · Let's Encrypt]
D <-->|management interface| OV[OpenVPN users · 2FA]
DNSJ --> DNS[fr0ntier dns]
D --> M[Monitoring: collectors · TSDB · logs · alerts]
M --> X[Exporters: Prometheus · Influx · syslog/CEF · Splunk · Elastic · Loki · NAS]
Everything is Go (standard library only, no cgo) and Bash; the ARM and x64 editions are the same code compiled for two architectures. See the documentation for the full architecture, configuration reference, CLI reference and step-by-step guides.
Development
make dev # dry-run daemon with a demo config on https://127.0.0.1:8443 (admin / Fr0ntierDemo!2026)
make test lint # unit tests, go vet (both editions), JS and shell checks
make build-arm # ARM edition: static arm64 binary (bin/fr0ntier-arm)
make build-x64 # x64 edition: static x86-64 binary (bin/fr0ntier-x64)
make release # both release archives + checksums.txt in dist/
make docs-serve # documentation at http://127.0.0.1:8000
License
fr0ntier is free software released under the GNU Affero General Public License v3.0 (LICENSE) with additional terms permitted by its section 7 (NOTICE):
- Attribution. Every copy and every modified version must keep the author credit
fr0ntier | By dap, with "dap" linking to davidalvarezp.com, in the footer of the web interface, on the login and About pages, and in the CLI and console banners. You may add your own credit next to it, but not remove it. - Modified versions must be marked as modified and must not pose as the official fr0ntier.
- Name and logo. No trademark rights are granted for "fr0ntier" beyond saying a work is "based on fr0ntier"; distributed forks should use their own name and logo.
If you modify fr0ntier and offer it to users over a network, you must make your modified source code available to them (AGPL §13).
Author
dap | davidalvarezp.com | github.com/davidalvarezp | Contact: [email protected]
Project website: davidalvarezp.com/fr0ntier · Documentation: davidalvarezp.com/fr0ntier/docs
Explore related projects
Loading…





