I don’t know what I did but now when I use the bridge network doesn’t work in the containers (in the host network works). Before I used ethernet → VLAN → bridge → lxc container interface. When I try to ping gateway I get a timeout error. So, then I removed the bridge and used just macvlan network. It works.
I assumed there is a problem with my bridge and then I created a new profile and attached the default lxd bridge network to create a profile. I can ping the gateway of the bridge but the network doesn’t work.
I tested different os images and when I used macvlan + bridge I saw ARP records on all sides - container, host, router. I have a second host with installed lxd containers with the same network settings. In containers, the network works.
Solved. SELinux had been blocked connections in lxc containers.