[LXD 5.0.0] IP static which disappears

Hello, I have assigned static ip’s to the container, as soon as I activate the firewall with “ufw enable”, the ip’s jump.

I have to do “ufw disabled” and wait 5min for the ip to come back.

Is there a stable solution?

Greetings,
MJ

Thank you,

After applying the 2 rules I can’t run “apt update”

Can you clarify whether you’re talking about from the host or the instance?

Also worth trying this as it sounds like ufw may have changed the default rules: