]> git.ipfire.org Git - people/amarx/ipfire-2.x.git/commitdiff
BUG12301: Iptables “host/network ‘none’ not found” BUG12301
authorAlexander Marx <alexander.marx@ipfire.org>
Thu, 1 Apr 2021 12:47:18 +0000 (14:47 +0200)
committerAlexander Marx <alexander.marx@ipfire.org>
Thu, 1 Apr 2021 12:47:18 +0000 (14:47 +0200)
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.

html/cgi-bin/firewall.cgi

index 1483e779ff22ba7b8db2c2309f0dc5788e3b3b53..b0851dd3e877c69b4a38b79ca1cf0878ff1a53f6 100644 (file)
@@ -592,7 +592,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;
                                }