Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 728 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 728 Bytes

nft-safe-reload

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.

The new nftables configuration has to be confirmed

# nft-safe-reload 
Do you want to accept the new firewall configuration? [y/n] y
Accepted new configuration

If you cannot confirm it, the previous configuration will be loaded again

# nft-safe-reload 
Do you want to accept the new firewall configuration? [y/n] Restored old configuration