mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 00:42:59 +02:00
Forward Firewall: Minor changes...
1) improved convert-outgoingfw. source was wrong when tun+ interface 2) target had always a ":" in ruletable 3) convert-outgoingfw bugfix: ports where not cleared for next rule
This commit is contained in:
committed by
Michael Tremer
parent
93a5f4a582
commit
99e698d033
@@ -1654,7 +1654,6 @@ sub gettgtport
|
||||
my $key=shift;
|
||||
my $service;
|
||||
my $prot;
|
||||
|
||||
if($hash{$key}[11] eq 'ON' && $hash{$key}[12] ne 'ICMP'){
|
||||
if($hash{$key}[14] eq 'cust_srv'){
|
||||
&General::readhasharray("$configsrv", \%customservice);
|
||||
@@ -1669,8 +1668,9 @@ sub gettgtport
|
||||
$hash{$key}[15]=~ s/\|/,/g;
|
||||
$service=$hash{$key}[15];
|
||||
}
|
||||
|
||||
print": $service";
|
||||
if($service){
|
||||
print": $service";
|
||||
}
|
||||
}elsif($hash{$key}[11] eq 'ON' && $hash{$key}[12] eq 'ICMP'){
|
||||
print":<br>$hash{$key}[13]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user