User Tools

Site Tools


linux:nftables

Table of Contents

Netfilter usage

Nefilter configuration in my environment is managed via Ansible. This page is a quick reference for command line usage and other tips.

Examples

# show active netfilter rules
nft list ruleset

Testing

You can easily validate your rules using nmap:

# testing DHCP service is accessible
sudo nmap --script broadcast-dhcp-discover
linux/nftables.txt · Last modified: 2021-01-31 18:50 by gabriel