We may earn an affiliate commission when you visit our partners.

Nftables

Save
May 11, 2024 4 minute read

Nftables, or netfilter, is a framework that provides raw access to the Linux kernel networking layer. It is a dynamic packet filtering and network address translation (NAT) tool, and it is considered the successor to the iptables framework. Nftables provides a number of benefits over iptables, including the ability to create much more complex rulesets, the use of sets and maps to store data, and the ability to use expressions to evaluate conditions.

How Nftables Works

Nftables operates in userspace, where it sets up a database with two main tables: the filter and nat tables. Any inbound or outbound network traffic is matched against these databases continuously. The tables can contain a combination of set and table entries. The firewall evaluates each packet’s characteristics against the rules and system information in these tables to determine whether the packet should be allowed, denied, or altered. The rules in these tables are programmed directly into the Linux kernel, providing significant performance advantages over iptables.

Why Learn Nftables?

There are many reasons why you might want to learn Nftables:

  • Nftables is a powerful tool. It can be used to create complex firewall rulesets, perform NAT, and manage traffic shaping.
  • Nftables is efficient. It uses a kernel-based approach that makes it very efficient, even when handling large amounts of traffic.
  • Nftables is flexible. It can be used to configure a wide variety of networking devices, including routers, switches, and firewalls.
  • Nftables is open source. This means that it is free to use and modify.

How to Learn Nftables

Path to Nftables

Take the first step.
We've curated two courses to help you on your path to Nftables. Use these to develop your skills, build background knowledge, and put what you learn to practice.
Sorted from most relevant to least relevant:

Share

Help others find this page about Nftables: by sharing it with your friends and followers:

Reading list

We've selected three books that we think will supplement your learning. Use these to develop background knowledge, enrich your coursework, and gain a deeper understanding of the topics covered in Nftables.
While this book focuses on iptables, it provides a solid foundation for understanding Nftables as both share many concepts and underlying mechanisms. is valuable for network administrators and security professionals.
Provides a thorough introduction to Netfilter/Iptables, with a focus on packet filtering, but does not cover Nftables in depth.
Covers the fundamentals of Iptables and is particularly useful for those new to network security, but may not be as relevant for those already familiar with firewall management.
Table of Contents
Our mission

OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.

Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.

Find this site helpful? Tell a friend about us.

Affiliate disclosure

We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.

Your purchases help us maintain our catalog and keep our servers humming without ads.

Thank you for supporting OpenCourser.

© 2016 - 2025 OpenCourser