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
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.
-
New Pentesting Distribution to Compete with Kali Linux
SnoopGod is now available for your testing needs
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.