TLDR: How do you add persistent promiscuous mode in Debian 12?
I'm running a Proxmox server with a few virtual machines and each VM is running separate Docker containers for different tasks. Previously I've had no problem with promiscuous mode in Debian 11 cloudinit image, but Debian 12 seems to work differently. I've tested this behaviour also in Debian 12 "normal" installation, so problem is probably not cloudinit related.
For cloudinit template creation I used this guide from OchoaProjects
Debian 11 allowed automatic promiscuous mode with this line in /etc/network/interfaces:
up ip link set eth0 promisc on
down ip link set eth0 promisc off
Also, ip link set eth0 promisc on still works on Debian 12.