Show the complete nftables ruleset with handles
nft list ruleset | show all firewall rules nftables | delete nftables rule by handle | nftables | nft | firewall | rulesnft -a list rulesetShows the entire active ruleset in the netfilter kernel, including rules created by ufw, Fail2Ban, Docker or iptables-nft. The -a option appends # handle N to each rule. With this number, a single rule can be removed via nft delete rule <familie> <tabelle> <kette> handle N (family, table, chain).
Note: On Debian 12 and Ubuntu 24.04, iptables is only a translation layer on top of nftables, which is why iptables rules appear here as tables ip filter or ip6 filter.
Also searched as
- nft list ruleset
- show all firewall rules nftables
- delete nftables rule by handle