Config parsing error - security.ipv4_filtering

Hello everyone,

I’m trying to adjust default LXD profile and add Bridged NIC security parameters. Unfortunately, I get following error every time I want to save it: Config parsing error: Unknown configuration key: security.mac_filtering The error pop up for each of those parameters.

config:
  security.mac_filtering: "true"
  security.ipv4_filtering: "true"
  security.ipv6_filtering: "true"
description: Custom LXD profile
devices:
  eth0:
    name: eth0
    network: lxdbr0
    type: nic
  root:
    path: /
    pool: btrfs-pool
    type: disk
name: custom-test
used_by: []

Is it even possible to set these parameters via LXD profile please?
Not sure if it’s related, but just in case - I disabled LXD’s firewall rules and added the bridge to trusted zone.

Thank you

Those config keys need to be against the instance NIC device not the instance.

In other words, it can be set only following way: lxc config device override <instance> <NIC> security.mac_filtering=true and not generally via LXD profile?

Yes it can be set on the instance the way you describe.
But it can also be added to the profile using lxc profile device {add|set} ...

OK, understand. Thank you, Thomas.