r/linuxadmin • u/enforzaGuy • Jul 08 '26
I built a free web GUI for managing nftables firewalls (Cockpit plugin) — homelab-friendly, with per-rule logging and confirm-or-revert
I got tired of hand-editing nft rulesets on my home server and cloud VMs, so I built enforza-cockpit — a free, open-source (MIT) web GUI for managing local nftables firewalls.
It's a Cockpit plugin, so it lives in the same web console you might already use for the rest of the box.
What it does:
- Visual rule editor split into three intuitive sections — Management (traffic to the host), Network (traffic through it), and Local (traffic from it), which map cleanly onto nftables' input/forward/output hooks.
- Reusable objects — define named network (CIDR) and port sets once, reference them as u/web, u/mgmt, etc. across any rule.
- Per-rule logging — tick a box and matches land in syslog/journal tagged with a plain verdict word (
ALLOW/DENY/REJECT) plus your rule comment, sogrep 'enforza.*DENY'just works. - Confirm-or-revert apply — after you apply, you get 60 seconds to confirm or the previous ruleset auto-restores. Means a bad rule can't permanently lock you out (we've all done it).
- Flip on IP forwarding + SNAT and a single box becomes a working router/NAT gateway you manage entirely from the browser. No agent, no cloud account, no controller — all state stays on the machine.
Runs on Debian/Ubuntu, Fedora, RHEL/Rocky/Alma, openSUSE. There's a bootstrap script that installs the deps and a getting-started walkthrough in the README.
Repo: https://github.com/enforza/enforza-cockpit
Happy to answer questions / take feedback
-----
EDIT
- nobody is forcing you to use this! nobody is ramming this down your throat!
- yes, AI had a hand in writing it - was ported from our commercial product!
- no, if you can do this with other tools and are an nft god, you don't need this!
- constructive criticism good, outright DM abuse isn't - be kind, be decent!
In summary, after 3 days of abuse, negativity, I wish I hadn't have bothered sharing something that maybe of use to someone!
4
u/Automatic_Beat_1446 Jul 08 '26
damn, (claude) dumped all of this into a repo within 2 days, and you're already shilling it for your paid product.
i dont actually care if people use AI for development, and frontends for internal/personal projects are a good use case for AI assisted development, but do people really feel the need to advertise their own claude version of the 300000th TUI/UI frontend for some generic thing?
3
u/InnerBank2400 Jul 08 '26
The confirm-or-revert apply is the feature that would make me take this seriously. Firewall UIs are only useful if they make lockout harder, not easier.
One thing I would look for is an easy way to view/export the raw
nft list rulesetoutput and compare the before/after rules before confirming.2
u/RandolfRichardson Jul 10 '26
Why should I go to the trouble of compiling, installing, and configuring a GUI when I can simply edit /etc/nftables.conf directly with existing tools to make any changes I need and with exacting control?
1
u/balrog50000 Jul 12 '26
Whether it’s “vibe coded” or not, personal time was invested to create something meaningful for others—and in this case, even based on a product that already exists. Honestly, the bread doesn’t taste any better or worse just because it comes from a machine rather than from a baker who kneaded the dough by hand. Thanks anyway—I’d love to take a closer look at this!
2
u/pred135 Jul 17 '26
Looks nice man, keep up the good work!
Also don't mind any of the negative comments about it being made with AI, i'm finding that the vast majority of developers/critics these days are either in denial about the capabilities of AI, or they're in the middle of some personal existential crisis about their self-worth/added value now that AI is here. But like the old saying goes, adapt or die! and this project is a good example of AI being used, not by some vibe coder who doesn't know their ass from their elbow, but by someone who is an actual developer and recognizes the value of AI
1
u/SlowZeck Jul 08 '26
👍
0
u/[deleted] Jul 08 '26
[deleted] — view deleted comment