netfilter project logo

The "libnftnl" project

What is libnftnl?

libnftnl is a userspace library providing a low-level netlink programming interface (API) to the in-kernel nf_tables subsystem. This library is currently used by nftables.


libnftnl requires libmnl and a kernel that includes the nf_tables subsystem (initial support >= 3.14).

Main Features

  • listing/retrieving rule from the kernel
  • inserting/modifying/deleting rules from the kernel
  • listing/retrieving sets from the kernel
  • inserting/modifying/deleting sets from the kernel


This library is released under GPLv2+.

Git Tree

The current development version of libnftnl can be accessed at


libnftnl has been written by Pablo Neira Ayuso with the help of other fellow hackers.

Copyright © 1999-2024 The Netfilter webmasters . Contact webmaster