Add rule to prevent bridged traffic getting pushed through the host's iptables rules if requested (do_not_firewall_bridged_traffic).

This commit is contained in:
2017-08-15 14:04:18 +02:00
parent 968dedbe65
commit 6966eff903
4 changed files with 44 additions and 6 deletions

View File

@ -142,6 +142,20 @@ echo
# -------------
# --- Prevent bridged traffic getting pushed through the host's iptables rules
# -------------
echononl "\tPrevent bridged traffic getting pushed through the host's iptables rules"
if $do_not_firewall_bridged_traffic ; then
$ip6t -I FORWARD -m physdev --physdev-is-bridged -j ACCEPT
echo_done
else
echo_skipped
fi
# -------------
# ------------ Stopping firewall if only flushing was requested (parameter flush)
# -------------