Redesign of the nft firewall based on an existing Ansible playbook for the same purpose.
This commit is contained in:
@@ -73,8 +73,13 @@ backup_then_remove /usr/local/sbin/fw-stop
|
||||
say "Removing template..."
|
||||
backup_then_remove /etc/nftables.conf.in
|
||||
|
||||
say "Removing default config..."
|
||||
backup_then_remove /etc/default/nft-fw
|
||||
say "Removing config..."
|
||||
backup_then_remove /etc/nftables.conf.d/nft-fw.conf
|
||||
backup_then_remove /etc/nftables.conf
|
||||
|
||||
if ! rmdir /etc/nftables.conf.d 2>/dev/null; then
|
||||
say "Directory '/etc/nftables.conf.d' could not be deleted because it is not empty."
|
||||
fi
|
||||
|
||||
say "Removing systemd unit file..."
|
||||
backup_then_remove /etc/systemd/system/nft-fw.service
|
||||
|
||||
Reference in New Issue
Block a user