mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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';
|
$grp2='std_net_tgt';
|
||||||
$target='ALL';
|
$target='ALL';
|
||||||
}
|
}
|
||||||
if($configline[8] ne ''){
|
if($configline[8] ne '' && $configline[3] ne 'gre' && $configline[3] ne 'esp'){
|
||||||
my @values=();
|
my @values=();
|
||||||
my @parts=split(",",$configline[8]);
|
my @parts=split(",",$configline[8]);
|
||||||
foreach (@parts){
|
foreach (@parts){
|
||||||
@@ -389,7 +389,6 @@ sub process_rules
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$port=join("|",@values);
|
$port=join("|",@values);
|
||||||
@values=();
|
@values=();
|
||||||
|
|||||||
Reference in New Issue
Block a user