[pve-devel] pve-firewall : ipv6 + ebtables

Stefan Priebe - Profihost AG s.priebe at profihost.ag
Tue Jul 15 11:06:04 CEST 2014


Seems git am did not apply all patches - no idea why. Please ignore this
one.
Am 15.07.2014 11:00, schrieb Stefan Priebe - Profihost AG:
> 
> Am 15.07.2014 09:57, schrieb Alexandre Derumier:
>> ipv6 + ebtables
> 
> I get an error that there is a default chain not beeing an arrayref.
> 
> pve-firewall[7262]: status update error: Not an ARRAY reference at
> /usr/share/perl5/PVE/Firewall.pm line
> 
> 
> This is the result of:
> $pve_std_chains->{6} = {
>     'PVEFW-SET-ACCEPT-MARK' => [
>         "-j MARK --set-mark 1",
>     ],
>     'PVEFW-DropBroadcast' => [
> 
> sub generate_std_chains {
> 
> has the following code:
> 
>    foreach my $chain (keys %$pve_std_chains) {
>         ruleset_create_chain($ruleset, $chain);
>         foreach my $rule (@{$pve_std_chains->{$chain}}) {
>             if (ref($rule)) {
>                 ruleset_generate_rule($ruleset, $chain, $rule);
>             } else {
>                 ruleset_addrule($ruleset, $chain, $rule);
>             }
>         }
>     }
> 
> 
> So foreach my $rule (@{$pve_std_chains->{$chain}}) { expects an arrayref
> but {6} is a hashref.
> 
> Stefan
> 
>  _______________________________________________
>> pve-devel mailing list
>> pve-devel at pve.proxmox.com
>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
> 



More information about the pve-devel mailing list