]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Forward Firewall: edited convert-outgoingfw.
authorAlexander Marx <amarx@ipfire.org>
Sat, 19 Jan 2013 20:21:18 +0000 (21:21 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 9 Aug 2013 12:08:12 +0000 (14:08 +0200)
When a Protocol ESP or GRE is used AND a Port is selected (in old system), the rule was not converted successfully.

config/forwardfw/convert-outgoingfw

index e94692abe7c378a50b94a046c41dff6348863409..0f33396c2872a51323504f24d7d476b802908b10 100644 (file)
@@ -365,7 +365,7 @@ sub process_rules
                                $grp2='std_net_tgt';
                                $target='ALL';
                        }
-                       if($configline[8] ne ''){
+                       if($configline[8] ne '' && $configline[3] ne 'gre' && $configline[3] ne 'esp'){
                                my @values=();
                                my @parts=split(",",$configline[8]);
                                foreach (@parts){
@@ -389,7 +389,6 @@ sub process_rules
                                                        next;
                                                } 
                                         }
-                                        
                                 }
                                $port=join("|",@values);
                                @values=();