Firewalling Linux: nft

Show all tables

nft list tables
table ip filter
table ip6 filter

table inet firewalld
table ip firewalld
table ip6 firewalld

Show all chains in a certain table

nft list table ip filter
table ip filter {
chain INPUT {
type filter hook input priority filter; policy accept;
}
chain INPUT {
type filter hook input priority filter; policy accept;
}
}

Get all rules from a specific chain inside a specific table

nft list table inet firewalld | sed -n '/chain filter_IN_public_allow {/,/}/p' | grep "88.99.145.35"