From 8dfed88ed3589b782287ca72bc77aedd5af0c241 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 20 Mar 2020 16:18:42 +0000 Subject: [PATCH] Exec update-alternatives to use iptables-legacy. nftables replaces iptables on Debian 10 --- installers/common.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/installers/common.sh b/installers/common.sh index edbf6c18..4c9ee2c2 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -288,6 +288,7 @@ function default_configuration() { if [ ! -f "/etc/systemd/system/iptables.service" ]; then echo "Enabling iptables.service" sudo cp "$webroot_dir/installers/iptables.service" /etc/systemd/system/ || install_error "Unable to move iptables.service file" + sudo update-alternatives --set iptables /usr/sbin/iptables-legacy || install_error "Unable to execute update-alternatives" sudo systemctl daemon-reload sudo systemctl enable iptables.service || install_error "Failed to enable iptables.service" sudo systemctl start iptables.service || install_error "Unable to start iptables.service"