Forward Firewall: edited convert-outgoingfw.

When a Protocol ESP or GRE is used AND a Port is selected (in old system), the rule was not converted successfully.
This commit is contained in:
Alexander Marx
2013-01-19 21:21:18 +01:00
committed by Michael Tremer
parent 99e698d033
commit 8794629653

View 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=();