Redesign of the nft firewall based on an existing Ansible playbook for the same purpose.

This commit is contained in:
2025-12-29 17:49:12 +01:00
parent 13893f6cd9
commit f03b0c7ab3
10 changed files with 247 additions and 189 deletions

View File

@@ -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