libnftnl

Netfilter library providing interface to the nf_tables subsystem

brewmacoslinux
Try with needOr install directly
Source

About

Netfilter library providing interface to the nf_tables subsystem

Commands

libnftnl

Examples

Display nftables ruleset in JSON format for parsing$ nft list ruleset -j | jq '.nftables'
Verify libnftnl installation and check library version$ pkg-config --modversion libnftnl
Link C program against libnftnl for nftables manipulation$ gcc -o nft_prog program.c $(pkg-config --cflags --libs libnftnl)