New Kernel Firewall Nftables to Succeed Netfilter
The Netfilter team has long been mulling over rework of firewall code in the Linux kernel. Now team lead Patrick McHardy ends months of work by announcing nftables.
The history of all hitherto existing firewall subsystems is the history of struggles over more flexibility and compatibility. The nftables firewall ranks so far as the last revolution after ipfw, ipfadm, ipchains and netfilter. As the same team is working on the code, there is hope for users that there is continuing support for it.
The rework was necessary because the reliably operating netfilter was getting ever more extensions that many admins were finding unwieldy. Much of the discussion was around the interface between the userland tools and the kernel. Whereas the tools in netfilter up to now could only exchange a rule as a binary blob over the netlink interface, incremental rule changes are now possible.
[Furthermore, ] the developers moved the majority of the kernel ruleset evalutation from kernel to userspace, McHardy says. in his lwn.net mailing. Moreover, users get to use a new rule syntax that allows them more configuration freedom, unlike the previous netfilter that depended on complicated command line calls. The userland tools create the rules with help of a library to load into the kernel, which simply executes them.
The nftables firewall also introduces a few standardizations such that the subsystem is now independent of the protocol family and IPv4 in the same way as IPv6 and link-layer packets.. It also provides direct access to many packet data through its syntax that is like a mix of Wireshark filter rules and Perl associative arrays. One user request Mchardy rejected, though: Compatibility layers that map the
old rules to new ones are not feasible, he regretted.
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.