]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: outgoing converter is now ble to set default policy correctly
authorAlexander Marx <amarx@ipfire.org>
Tue, 19 Feb 2013 05:48:00 +0000 (06:48 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:08:22 +0000 (14:08 +0200)
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