Add rule to prevent LX containers from firewalld on host system.

This commit is contained in:
2023-05-02 20:45:27 +02:00
parent a2ba79185d
commit ff098ac058
6 changed files with 107 additions and 1 deletions

View File

@ -340,6 +340,26 @@ fi
echo
# -------------
# --- Do not firewall traffic from and to LX Gust Systems
# -------------
echononl "\tDo not firewall traffic from and to LX Gust Systems"
if $do_not_firewall_lx_guest_systems && [[ ${#lxc_guest_ip_arr[@]} -gt 0 ]]; then
for _ip in ${lxc_guest_ip_arr[@]} ; do
$ipt -I FORWARD -p all -d $_ip -j ACCEPT
$ipt -I FORWARD -p all -s $_ip -j ACCEPT
done
echo_done
else
echo_skipped
fi
echo
# -------------
# ---- Log given IP Addresses
# -------------