Add rule to prevent LX containers from firewalld on host system.
This commit is contained in:
@ -280,6 +280,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
|
||||
|
||||
$ip6t -I FORWARD -p all -d $_ip -j ACCEPT
|
||||
$ip6t -I FORWARD -p all -s $_ip -j ACCEPT
|
||||
|
||||
done
|
||||
echo_done
|
||||
else
|
||||
echo_skipped
|
||||
fi
|
||||
echo
|
||||
|
||||
|
||||
# -------------
|
||||
# ---- Log given IP Addresses
|
||||
# -------------
|
||||
|
Reference in New Issue
Block a user