mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
firewall: fix disable MASQERADE in green only mode.
using MASQERADE_GREEN="off" will not work because "NETWORK_GREEN" is not correctly defined in green only mode. Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -352,8 +352,8 @@ iptables_red_up() {
|
||||
# Outgoing masquerading (don't masqerade IPSEC (mark 50))
|
||||
iptables -t nat -A REDNAT -m mark --mark 50 -o $IFACE -j RETURN
|
||||
|
||||
if [ "$IFACE" = "$GREEN_DEV" ]; then
|
||||
MASQUERADE_GREEN="off"
|
||||
if [ "${IFACE}" = "${GREEN_DEV}" ]; then
|
||||
iptables -t nat -A REDNAT -i "${GREEN_DEV}" -o "${IFACE}" -j RETURN
|
||||
fi
|
||||
|
||||
local NO_MASQ_NETWORKS
|
||||
|
||||
Reference in New Issue
Block a user