firewall: Fix MAC filter

Packets destined for the firewall coming in from the blue
device where accepted too early to be processed by the
firewall input chain rules.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2016-02-05 10:24:03 +00:00
parent ff43197b01
commit 645378fbb9
2 changed files with 8 additions and 3 deletions

View File

@@ -60,6 +60,11 @@ HAVE_OPENVPN="true"
# Allow access from GREEN
iptables -A POLICYIN -i "${GREEN_DEV}" -j ACCEPT
# Allow access from BLUE
if [ "${HAVE_BLUE}" = "true" ] && [ -n "${BLUE_DEV}" ]; then
iptables -A POLICYIN -i "${BLUE_DEV}" -j ACCEPT
fi
# IPsec INPUT
case "${HAVE_IPSEC},${POLICY}" in
true,MODE1) ;;