Linux Netfilter

Useful commands

Get list of netfilter tables

# nft list tables ip | awk '{ print $3 }'
filter
nat
mangle
raw

Get list of netfilter chains

# nft list table ip filter | awk '/\tchain/ { print $2 }'
INPUT
FORWARD
OUTPUT
LOCAL-BLOCK-DROP
LOG-ACCEPT
LOG-DROP
BOGUS-DROP
BOGUS