Skip to content

Reload nftables configuration with user confirmation

Notifications You must be signed in to change notification settings

HendrikF/nft-safe-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

Reload nftables configuration with user confirmation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages