New in 4.4 Graylog log hits & Add set commands →

See your VyOS firewall.
Then change it safely.

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:latest
Traffic from the WAN interface enters the forward filter and jumps to chain WAN-IN. Established traffic reaches the LAN, HTTPS reaches the DMZ, and new inbound connections are dropped.eth0WANFILTERforward10 jump WAN-INdefault dropeth1LANeth2DMZest,relatedtcp/443 → WEB✕ drop newchain WAN-IN · 10 accept · 20 accept · default dropset firewall ipv4 name WAN-IN default-action 'drop'
acceptjumpdropeth0 → eth1 · 1,284 pkts
4 viewsflow, map, zone matrix, sankey
IPv4 + IPv6side by side, one config
Stable & rollingVyOS 1.4, 1.5 and daily builds
One containeramd64 & arm64, plus MongoDB
Open sourceMIT licensed, self-hosted
demo.fw-gui.com/chain_view
Features

Everything under set 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.

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.

Quick start

A ready-made WAN/LAN policy for IPv4 and IPv6, and a Getting started page that tracks the build order and your progress.

Chains, filters & groups

Compact rule tables with the default action as the last row. Hover a group to see its members. Reorder, duplicate, renumber.

Visualize the whole policy

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.

Diff before you commit

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.

Operational commands

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.

4.4

Add set commands

Paste set firewall lines into an existing config. Merged the way VyOS would, previewed first, snapshotted before it’s written.

4.4

Graylog log hits

See which rules your traffic actually hits. A plain syslog input is enough; no extractors to configure.

Many configs, snapshots & diffs

Manage a configuration per firewall. Tag snapshots with a reason, compare any two, roll back; loading one snapshots the working copy first.

VyOS rolling features

Target stable or a rolling build per config. Newer features such as rule last-used are only generated when your build supports them.

Backups

Local and S3 backups, plus an automatic weekly full backup with retention, set up from Admin Settings.

Product tour

Built for people who live in the CLI.

Dense tables, monospace where it matters, and a dark theme that matches your terminal. A light theme is one click away.

demo.fw-gui.com/visualize

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.

How it works

Model, preview, commit.

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.

Model the policy

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

View the diff

Runs compare in a real configure session, then discards it.

[edit firewall ipv4 name WAN-IN]
+ rule 20 {
+     action accept
+     destination { port 443 }
+ }

Commit

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
Architecture

Small, boring, auditable.

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.

The browser reaches FW-GUI through a TLS reverse proxy. FW-GUI (Flask on Waitress) keeps everything in MongoDB and connects to VyOS over SSH with Paramiko. Graylog and S3 backups are optional.BrowserReverse proxyTLS · e.g. Nginx PMFW-GUI containerFlask · Waitress :8080Jinja2 · plain JS · uvpackage/generate_configconfig_sessionconfig_import · set_mergevisualize_functionshost_key_storeMongoDBconfigs · snapshotsusers · sessionskeys · instancePyMongoVyOSSSH · vbashParamikoOptionalGraylog API · S3 backups
01

Structured config, not text

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.

02

One configure session

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.

03

Judgment in Python, drawing in JS

Zone verdicts, orphan detection and group resolution are computed and unit-tested server-side; the browser only lays out and draws.

generate_config

Data model to VyOS set firewall commands.

config_session

The diff/commit script, line safety checks and output parsing.

config_import

show configuration json to a config document, with a round-trip self-check.

set_merge

Pasted set lines merged the way VyOS would.

visualize_functions

The model behind the four Visualize views.

host_key_store

SSH host key pinning on first use.

Python 3.14FlaskWaitressMongoDB 8PyMongoParamikoFlask-LoginbcryptFernetJinja2plain JSuvDockerHelmpytestBandit
Security

Your firewall's keys stay yours.

FW-GUI holds credentials to your network edge, and it was designed around that fact.

Host key pinning

The first connection pins the firewall's SSH host key. A changed key is refused before any credentials are sent.

Keys the server can't read

SSH keys are Fernet-encrypted at upload. The encryption key is shown to you once and never stored.

Hardened accounts

bcrypt password hashes, server-side sessions, accounts disabled rather than deleted, and a switch to close registration.

Nothing sensitive logged

Device output from imports and address pulls is parsed in memory and never written to the logs.

Anonymous telemetry sends

  • A random install ID and the FW-GUI version
  • Deployment type, CPU architecture, Python and MongoDB versions
  • Counts in ranges (e.g. 2-5), never exact
  • Yes/no flags for which features are in use

Never sent

  • Usernames, emails, passwords or SSH keys
  • Rule contents, or names of chains, groups and interfaces
  • IP addresses or hostnames from your configurations

Details: SSH, password, key & cookie handling · telemetry payload

VyOS support

Keeps up with VyOS.

Pick stable or the oldest rolling build you run. FW-GUI only generates what that build accepts.

ReleaseStatusNotes
VyOS 1.5 StreamPrimary targetThe current quarterly stream release; where development and testing are aimed.
VyOS 1.5 rollingSupportedMinimal testing, no known issues. Daily builds may be deprioritized.
VyOS 1.4 SagittaBest effortDesigned for 1.4 and heavily tested in 2024. No known issues.
VyOS 1.3 EquuleusUntestedNot 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.

Deploy

Self-host it in five minutes.

One container plus MongoDB. Runs on a Raspberry Pi or a Kubernetes cluster.

  • Multi-arch images on GHCR and Docker Hub
  • Recommended Compose stack adds Nginx Proxy Manager for TLS
  • Helm chart for Kubernetes
  • Runs as an unprivileged user; all state in MongoDB
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.

Live demo

Kick the tires. No install.

The demo is a full FW-GUI instance. Register an account, run Quick start, and open Visualize.

Open demo.fw-gui.com

Shared public instance. Data may be reset at any time. Don't reuse a real password, and don't point it at a production firewall.

  1. Register a username and password
  2. Create a configuration and run Quick start
  3. Explore chains, filters and the zone matrix
  4. Download the generated .cfg
Contact

Questions, bugs, ideas.

Messages become GitHub issues, so the answer helps the next person too. You review it on GitHub before anything is posted.

Topic
Opens a prefilled GitHub issue in a new tab. You need a GitHub account, and issues are public, so leave out anything private.