Cannot connect to OpenCCU via "Homematic IP(local) for OpenCCU" add on

I’m running HomeAssistant in a qemu VM on a linux server. On the same server I’m running OpenCCU (docker). HomeAssistant uses a virtual subnet and OpenCCU has an additional IP address in the subnet of the server that is also reachable from external devices.

The problem is that from Home Assistant I cannot reach OpenCCU. Checking the network traffic I can see that when the add on tries to access the OpenCCU this access cannot be routet to its (virtual) destination. Strangely other (real) devices on the same subnet can be reached and OpenCCU can also be reached directly from the server and even from external devices.

Any help or tips how to analyze this further would be appreciated.

I did not get it to work by using the suggested setup script for the OpenCCU docker container. This script chose macvlan networking. By modifying the script to use bridge networking (and forwarding the necessary ports from the host to docker) everything works just find without changing anything else.

One drawback might be that the documentations states that macvlan might be needed if you use wired devices. As I don’t have any and am not indending to change that I think I can live with bridged networking. Unfortunately there is no option in the setup script.