Please can you try with LXD 3.22 that has support for nftables in case that is the reason your iptables rules are not being matched.