nft -f /etc/nftables.conf

Category: Security & Hardening

nft -f /etc/nftables.conf

Load and apply an nftables configuration file

Reads the config file and applies the ruleset atomically, replacing what is in the kernel. This is how you restore a backup or apply edits made offline. If the file has a syntax error, nft reports the line and changes nothing, so it is safe to retry.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.