nftables
Replace iptables on recent distributions.
List tables
nft list tables
List rules of a table
Here is for filter
table
nft list table filter
List all rules
nft list ruleset
Import from iptables
# transform to nftables
iptables-restore-translate -f /etc/iptables/rule.v4 > ruleset.nft
# load it (add -c to check if its valide rules)
nft -f ruleset.nft
# save it
nft list ruleset >/etc/nftables.conf
Flush
nft flush ruleset