Reload nftables configuration and wait for user confirmation. After a timeout the previous configuration is restored. This should help prevent admins from locking themselves out of a system.
Original Author: https://sanjuroe.dev/nft-safe-reload
This version contains proper shell quoting and restores the old configuration when interrupted.
# nft-safe-reload
Do you want to accept the new firewall configuration? [y/n] y
Accepted new configuration
# nft-safe-reload
Do you want to accept the new firewall configuration? [y/n] Restored old configuration