Exec update-alternatives to use iptables-legacy. nftables replaces iptables on Debian 10

This commit is contained in:
billz 2020-03-20 16:18:42 +00:00
parent f2e0841970
commit 8dfed88ed3
1 changed files with 1 additions and 0 deletions

View File

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