For years every box I ran had a slightly different pile of iptables rules, some written by hand, some generated by whatever tool was fashionable that year. This autumn I finally moved all of them to plain nftables with a single /etc/nftables.conf per host.
The biggest win is that a ruleset is loaded atomically. Either the whole file parses and replaces the old table, or nothing changes. No more half-applied rules after a typo.
Replace your own table, not the world
A lot of examples start with flush ruleset. That is fine on a fresh machine, but it also wipes tables owned by other software such as fail2ban. Declaring the table, deleting it, and then defining it again only touches what you own:
table inet filter
delete table inet filter
table inet filter { ... }
Always arm a rollback
When you change firewall rules over SSH, schedule an automatic undo first. A transient systemd timer is perfect for this: if you lock yourself out, the rules disappear after three minutes and you can log in again. If everything works, just stop the timer.
The best firewall change is the one you can undo without opening a VNC console.
After the migration every host boots with the same structure: established traffic first, loopback, a handful of explicitly opened ports, and a default drop policy. Reviewing a server now takes seconds instead of minutes.