mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Forward Firewall: deleted comments from converterscript
This commit is contained in:
committed by
Michael Tremer
parent
8f0b047b4b
commit
8b3dd79147
@@ -365,11 +365,9 @@ sub process_rules
|
||||
my @values=();
|
||||
my @parts=split(",",$configline[8]);
|
||||
foreach (@parts){
|
||||
print"PRüfe port $_\n";
|
||||
if (!($_ =~ /^(\d+)\:(\d+)$/)) {
|
||||
if(&General::validport($_)){
|
||||
$useport='ON';
|
||||
print" push single\n";
|
||||
push (@values,$_);
|
||||
$grp3='TGT_PORT';
|
||||
}else{
|
||||
@@ -380,7 +378,6 @@ sub process_rules
|
||||
my ($a1,$a2) = split(/\:/,$_);
|
||||
if (&General::validport($a1) && &General::validport($a2) && $a1 < $a2){
|
||||
$useport='ON';
|
||||
print"push range $_\n";
|
||||
push (@values,"$a1:$a2");
|
||||
$grp3='TGT_PORT';
|
||||
}else{
|
||||
@@ -390,7 +387,6 @@ sub process_rules
|
||||
}
|
||||
}
|
||||
$port=join("|",@values);
|
||||
print"fertig, habe \"$port\"\n";
|
||||
@values=();
|
||||
}
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user