Hello Hendrik,
So it looks like the port forwarding done by
podman always forwards the traffic as IPv4. Is that the correct?
Yes this is mostly correct, the rootlessport process forwards all traffic to one ip address.
Podman can specify which ip is used for that. In the past 127.0.0.1 was used
but this caused security issues with some containers, see
CVE-2021-20199.
So when the container only has ipv6 addresses it will use ipv6 to connect to your service.
I think it is possible to support your use case, I recommend opening a feature request for it on github.
There is also the slirp4netns port forwarder but this doesn't support ipv6 at all AFAIK so not suitable for this use case.
Paul