mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 02:42:58 +02:00
BUG12301: Iptables “host/network ‘none’ not found”
Fixes: #12301 When using hosts with MAC-addresses in a hostgroup, the rule won't be generated if those hosts are selected as target. There is a hint but due to a wrong hashparameter the hint was not shown. With this patch the hint is shown again. Additionally the rule is skipped when rules.pl creates rules. There are no bootmessages with failed target "none" anymore. Acked-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
8a44818619
commit
feef6aca68
@@ -643,7 +643,7 @@ sub checktarget
|
||||
&General::readhasharray("$confighost", \%customhost);
|
||||
foreach my $grpkey (sort keys %customgrp){
|
||||
foreach my $hostkey (sort keys %customhost){
|
||||
if ($customgrp{$grpkey}[2] eq $customhost{$hostkey}[0] && $customgrp{$grpkey}[2] eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $customhost{$hostkey}[1] eq 'mac'){
|
||||
if ($customgrp{$grpkey}[2] eq $customhost{$hostkey}[0] && $customgrp{$grpkey}[0] eq $fwdfwsettings{$fwdfwsettings{'grp2'}} && $customhost{$hostkey}[1] eq 'mac'){
|
||||
$hint=$Lang::tr{'fwdfw hint mac'};
|
||||
return $hint;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user