mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 11:05:54 +02:00
Forward Firewall: bugfix: DNAT now correctly creates rules, when customservice defined as target
This commit is contained in:
committed by
Michael Tremer
parent
28640b7365
commit
6be32fe504
@@ -539,7 +539,11 @@ sub get_port
|
||||
}
|
||||
}elsif($$hash{$key}[14] eq 'cust_srv'){
|
||||
if ($prot ne 'ICMP'){
|
||||
return "--dport ".&fwlib::get_srv_port($$hash{$key}[15],1,$prot);
|
||||
if($$hash{$key}[31] eq 'dnat'){
|
||||
return ":".&fwlib::get_srv_port($$hash{$key}[15],1,$prot);
|
||||
}else{
|
||||
return "--dport ".&fwlib::get_srv_port($$hash{$key}[15],1,$prot);
|
||||
}
|
||||
}elsif($prot eq 'ICMP' && $$hash{$key}[15] ne 'All ICMP-Types'){
|
||||
return "--icmp-type ".&fwlib::get_srv_port($$hash{$key}[15],3,$prot);
|
||||
}elsif($prot eq 'ICMP' && $$hash{$key}[15] eq 'All ICMP-Types'){
|
||||
|
||||
Reference in New Issue
Block a user