Linux

nft

Cautionnftables rules

nft list ruleset

Lists/edits nftables — iptables' successor. On new distros the iptables command is just an nft shim.

Examples

  • nft list ruleset | grep -A3 'dport 22'Rules touching SSH

Syntax

nft list ruleset / nft add rule ...

Before you run it

Rule edits can cut your own SSH.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store