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
- iptablesManage iptables firewall
- firewall-cmdManage firewalld (RHEL)
- ufwUncomplicated Firewall
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store