Commit model & versions¶
fr0ntier follows the candidate / commit model of Palo Alto and Check Point firewalls instead of applying every click immediately.
stateDiagram-v2
[*] --> Running
Running --> Candidate: edit (UI / CLI / API)
Candidate --> Candidate: more edits (validated)
Candidate --> Running: discard
Candidate --> Applying: commit
Applying --> Running: success (no confirm)
Applying --> Pending: success + commit-confirmed
Applying --> Running: failure → previous config re-applied
Pending --> Running: confirm
Pending --> Rollback: timeout / "roll back now"
Rollback --> Running
Candidate configuration¶
- Every edit is validated as a whole: a change that would leave the configuration inconsistent (unknown object, overlapping ports, a deleted address still used by a policy…) is rejected with precise field errors.
- The change journal records who changed what.
- An optional lock (
POST /api/v1/commit/lock) prevents other administrators from editing the candidate; super admins can break it.
Commit¶
A commit:
- validates the candidate;
- renders all subsystems;
- pre-checks with native tools (
nft -c -f,dnsmasq --test); - writes only changed files atomically and reloads only affected subsystems in a safe order (sysctl → links → nftables → networkd → fast path → DHCP → DNS → Wi-Fi → VPN → NTP → SSH);
- stores a new version.
If any step fails, the previous running configuration is re-applied and the commit is reported as failed.
Commit-confirmed and automatic rollback¶
With commit-confirmed (default, 5 minutes) the new version is marked
pending-confirm. You must confirm it from the web banner, execute confirm in the
CLI or POST /api/v1/commit/confirm. Otherwise fr0ntier re-applies the previous version.
The pending state is persisted: if the daemon restarts or the box reboots during the window, the rollback still happens at boot.
When to use it
Always when changing interfaces, routes, WAN/VPN, administrative access, trusted hosts or the HTTPS port. A typo can no longer lock you out of a remote firewall.
Versions¶
System → Configuration Versions shows the last N versions (default 10, up to 50): date, administrator, kind (initial, commit, rollback, auto-rollback, restore), status, number of changes and comment.
| Action | Effect |
|---|---|
| Diff | Structured and JSON diff against the running configuration |
| Load | Copies the version into the candidate for review (nothing is applied) |
| Roll back | Applies the version immediately (creates a new version) |
| Download | Exports the JSON |
CLI equivalents: execute revision list, execute revision diff 7 9,
execute load-revision 7, execute rollback 7.