]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Forward Firewall: added Policymode for OUTGOING to converterscript
authorAlexander Marx <amarx@ipfire.org>
Tue, 19 Feb 2013 05:34:48 +0000 (06:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:08:21 +0000 (14:08 +0200)
config/forwardfw/convert-outgoingfw

index edb1fd0a8cd19be450736aee300f1edd3e203422..3c11f92fe8b8118cfb29290b398bf507e3b56fb7 100755 (executable)
@@ -249,6 +249,7 @@ sub process_rules
        &General::readhash($fwdfwsettings,\%fwdsettings);
        if($fwdsettings{'POLICY'} ne $outsettings{'POLICY'}){
                $fwdsettings{'POLICY'}=$outsettings{'POLICY'};
        &General::readhash($fwdfwsettings,\%fwdsettings);
        if($fwdsettings{'POLICY'} ne $outsettings{'POLICY'}){
                $fwdsettings{'POLICY'}=$outsettings{'POLICY'};
+               $fwdsettings{'POLICY1'}='MODE2';
                &General::writehash($fwdfwsettings,\%fwdsettings);
        }
        #open LOG
                &General::writehash($fwdfwsettings,\%fwdsettings);
        }
        #open LOG