From 356290f194f172d6f071f60ff6ed8fc15a3570cf Mon Sep 17 00:00:00 2001 From: Roberto Bonafiglia Date: Wed, 12 Apr 2023 11:17:36 +0200 Subject: [PATCH] Update install script to clean iptables rules before start Signed-off-by: Roberto Bonafiglia --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 520f39513631..ea6578054f68 100755 --- a/install.sh +++ b/install.sh @@ -967,6 +967,9 @@ service_enable_and_start() { return fi + $SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore + $SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore + [ "${HAS_SYSTEMD}" = true ] && systemd_start [ "${HAS_OPENRC}" = true ] && openrc_start return 0