]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - config/forwardfw/convert-outgoingfw
Forward Firewall: outgoing converter is now ble to set default policy correctly
[people/teissler/ipfire-2.x.git] / config / forwardfw / convert-outgoingfw
index 3c11f92fe8b8118cfb29290b398bf507e3b56fb7..f279a6c5bf8a735be43141e28f6b8323b9f9f754 100755 (executable)
@@ -248,8 +248,8 @@ sub process_rules
 {
        &General::readhash($fwdfwsettings,\%fwdsettings);
        if($fwdsettings{'POLICY'} ne $outsettings{'POLICY'}){
+               if ($outsettings{'POLICY'} eq 'MODE0'){$outsettings{'POLICY'}='MODE2';}
                $fwdsettings{'POLICY'}=$outsettings{'POLICY'};
-               $fwdsettings{'POLICY1'}='MODE2';
                &General::writehash($fwdfwsettings,\%fwdsettings);
        }
        #open LOG