Import a running firewall
Over SSH or by pasting show configuration json. A self-check proves a push would send exactly the rules already on the box.
FW-GUI is a self-hosted web app for building, visualizing and pushing VyOS firewall rules. Import the firewall you run today, see who can reach what, preview the exact diff, and commit over SSH.
docker pull ghcr.io/ibehren1/fw-gui:latestset firewall, in one place.FW-GUI models the VyOS firewall: interfaces, groups, chains, filters and flowtables. Build it from scratch with Quick start, or import the one you already run.
Over SSH or by pasting show configuration json. A self-check proves a push would send exactly the rules already on the box.
A ready-made WAN/LAN policy for IPv4 and IPv6, and a Getting started page that tracks the build order and your progress.
Compact rule tables with the default action as the last row. Hover a group to see its members. Reorder, duplicate, renumber.
Packet flow, reference map, a zone matrix that tells you who can talk to whom (and why), and a rule sankey. Overlay real log hits from Graylog. Export as SVG.
View Diffs runs your change in a real configure session and shows exactly what would change. Rejected lines come back with VyOS’s own error.
Run show commands from the browser. Tables become sortable; show firewall gets per-rule counters, the change since the last run, and last-used times.
Paste set firewall lines into an existing config. Merged the way VyOS would, previewed first, snapshotted before it’s written.
See which rules your traffic actually hits. A plain syslog input is enough; no extractors to configure.
Manage a configuration per firewall. Tag snapshots with a reason, compare any two, roll back; loading one snapshots the working copy first.
Target stable or a rolling build per config. Newer features such as rule last-used are only generated when your build supports them.
Local and S3 backups, plus an automatic weekly full backup with retention, set up from Admin Settings.
Dense tables, monospace where it matters, and a dark theme that matches your terminal. A light theme is one click away.
Packet flow. Interfaces into the filter hooks, the chain each rule jumps to, rule by rule, and the groups the rules use. The chain nothing jumps to is flagged.
Zone matrix. Who can talk to whom, worked out from the rules and each interface's subnets. Click a cell to see why.
Reference map. What depends on what. Orphan chains and unused groups stand out.
Rule sankey. Interfaces flow into the chains they jump to, then split by what each rule does.
Import report. What came in, what was kept verbatim as extra configuration, and the check that a push would send exactly the firewall's current rules.
Add set commands. Pasted set firewall lines, previewed as the exact commands a push gains or loses, before anything is saved.
FW-GUI keeps your policy as structured data, generates the VyOS commands, and talks to the firewall in one configure session over SSH. Nothing is committed unless the firewall accepted every line.
Interfaces, groups, chains and filters in forms and tables, or imported from the device.
# chain WAN-IN, rule 10 action accept state established related log disable
Runs compare in a real configure session, then discards it.
[edit firewall ipv4 name WAN-IN] + rule 20 { + action accept + destination { port 443 } + }
Commits and saves only if every line was accepted and something changed.
host key SHA256:9f2c…e1 matches pin ✓ 12 lines accepted, 0 rejected ✓ commit ✓ save
One Python process and one database. No agent on the firewall, no cloud service in the path: FW-GUI talks to VyOS over SSH, the same way you do.
Each firewall is a MongoDB document with IPv4 and IPv6 roots. generate_config renders it to VyOS set commands; anything FW-GUI doesn’t model is kept verbatim as extra configuration.
View Diffs and Commit run as a single vbash script over Paramiko, with a marker per line. VyOS exits 0 even when it rejects a line, so FW-GUI reads the output and refuses to commit on any error.
Zone verdicts, orphan detection and group resolution are computed and unit-tested server-side; the browser only lays out and draws.
generate_configData model to VyOS set firewall commands.
config_sessionThe diff/commit script, line safety checks and output parsing.
config_importshow configuration json to a config document, with a round-trip self-check.
set_mergePasted set lines merged the way VyOS would.
visualize_functionsThe model behind the four Visualize views.
host_key_storeSSH host key pinning on first use.
FW-GUI holds credentials to your network edge, and it was designed around that fact.
The first connection pins the firewall's SSH host key. A changed key is refused before any credentials are sent.
SSH keys are Fernet-encrypted at upload. The encryption key is shown to you once and never stored.
bcrypt password hashes, server-side sessions, accounts disabled rather than deleted, and a switch to close registration.
Device output from imports and address pulls is parsed in memory and never written to the logs.
2-5), never exactDetails: SSH, password, key & cookie handling · telemetry payload
Pick stable or the oldest rolling build you run. FW-GUI only generates what that build accepts.
| Release | Status | Notes |
|---|---|---|
| VyOS 1.5 Stream | Primary target | The current quarterly stream release; where development and testing are aimed. |
| VyOS 1.5 rolling | Supported | Minimal testing, no known issues. Daily builds may be deprioritized. |
| VyOS 1.4 Sagitta | Best effort | Designed for 1.4 and heavily tested in 2024. No known issues. |
| VyOS 1.3 Equuleus | Untested | Not supported. |
Rolling builds: turn on Target a VyOS rolling release per configuration and pick the oldest build you run. Aug 2026+ builds unlock rule last-used tracking, and show firewall … detail then gets a sortable Last used column.
One container plus MongoDB. Runs on a Raspberry Pi or a Kubernetes cluster.
services:
fw-gui:
image: ghcr.io/ibehren1/fw-gui:latest
depends_on: [mongodb]
environment:
- APP_SECRET_KEY=change-me # e.g. openssl rand -hex 32
- MONGODB_URI=mongodb
- MONGODB_DATABASE=fwgui_database
- DISABLE_REGISTRATION=False
ports: ["8080:8080/tcp"]
restart: unless-stopped
volumes: [data:/opt/fw-gui/data]
mongodb:
image: mongo:8 # no ports: reachable only by fw-gui
restart: always
volumes: [mongo-data:/data/db, mongo-config:/data/configdb]
volumes: {data: {}, mongo-data: {}, mongo-config: {}}Minimal stack. Set a unique APP_SECRET_KEY first. The recommended stack, with Nginx Proxy Manager for TLS, is in the deployment guide.
git clone https://github.com/ibehren1/fw-gui.git
cd fw-gui
helm install fw-gui ./chart/fw-guiDeploys FW-GUI and MongoDB with persistent volumes. Values are in chart/fw-gui/values.yaml.
git clone https://github.com/ibehren1/fw-gui.git
cd fw-gui
cp examples/.env.prod .env # set APP_SECRET_KEY, MONGODB_URI
uv sync
uv run python app.pyNeeds Python 3.14+ and a reachable MongoDB. Settings come from the environment or a .env file.
The demo is a full FW-GUI instance. Register an account, run Quick start, and open Visualize.
Open demo.fw-gui.comShared public instance. Data may be reset at any time. Don't reuse a real password, and don't point it at a production firewall.
.cfgMessages become GitHub issues, so the answer helps the next person too. You review it on GitHub before anything is posted.