mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 11:35:54 +02:00
Firewall: fixed rules.pl (no INPUT rules where created when using port and prot "all")
This is a bug which was raised due to the last commit
This commit is contained in:
@@ -538,10 +538,12 @@ sub get_prot
|
||||
}
|
||||
}elsif($$hash{$key}[11] eq 'ON' && $SRC_TGT eq ''){
|
||||
if ($$hash{$key}[14] eq 'TGT_PORT'){
|
||||
if ($$hash{$key}[15] ne ''){
|
||||
return "$$hash{$key}[8]";
|
||||
if ($$hash{$key}[15] ne '' && $$hash{$key}[8] eq ''){
|
||||
return "TCP,UDP";
|
||||
}elsif($$hash{$key}[13] ne ''){
|
||||
return "$$hash{$key}[8]";
|
||||
}elsif($$hash{$key}[15] ne ''){
|
||||
return "$$hash{$key}[8]";
|
||||
}else{
|
||||
return "$$hash{$key}[8]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user