mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
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:
committed by
Michael Tremer
parent
99e698d033
commit
8794629653
@@ -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=();
|
||||
|
||||
Reference in New Issue
Block a user