nftables: save ruleset before editing
Before manual firewall edits, keep a copy of the current ruleset.
sudo nft list ruleset > nftables-$(date +%F_%H%M).rules
sudo nft -c -f /etc/nftables.conf
Verify the result
nft -c should pass before applying changes.