Commit d9f40d4f authored by Roberto Bonafiglia's avatar Roberto Bonafiglia Committed by Roberto Bonafiglia

Update install script to clean iptables rules before start

parent 0c683720
...@@ -967,6 +967,15 @@ service_enable_and_start() { ...@@ -967,6 +967,15 @@ service_enable_and_start() {
return return
fi fi
if command -v iptables-save &> /dev/null && command -v iptables-restore &> /dev/null
then
$SUDO iptables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO iptables-restore
fi
if command -v ip6tables-save &> /dev/null && command -v ip6tables-restore &> /dev/null
then
$SUDO ip6tables-save | grep -v KUBE- | grep -v CNI- | grep -iv flannel | $SUDO ip6tables-restore
fi
[ "${HAS_SYSTEMD}" = true ] && systemd_start [ "${HAS_SYSTEMD}" = true ] && systemd_start
[ "${HAS_OPENRC}" = true ] && openrc_start [ "${HAS_OPENRC}" = true ] && openrc_start
return 0 return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment