]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/init.d/firewall
firewall: Fix rule generation for protocols without ports.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / firewall
index a67af7056486ad4e93db4786100d0a83ea80d100..246be37b9cde98b554210201902e65ec84abc624 100644 (file)
@@ -311,7 +311,10 @@ iptables_red() {
 
                # Outgoing masquerading (don't masqerade IPSEC (mark 50))
                iptables -t nat -A REDNAT -m mark --mark 50 -o $IFACE -j RETURN
-               iptables -t nat -A REDNAT -o $IFACE -j MASQUERADE
+
+               if [ "$IFACE" != "$GREEN_DEV" ]; then
+                       iptables -t nat -A REDNAT -o $IFACE -j MASQUERADE
+               fi
 
        fi