Real/Remote IP forwarded into Container with Docker behind UFW (in Linux Debian)

Hi all,

I have followed a guide on setting up Docker to be put behind UFW firewall (having iptables=false):

https://svenv.nl/unixandlinux/dockerufw/

… however when traffic is passed through UFW for the container the client IP is always [172.17.0.1] regardless of the actual remote IP.

Some have made use of userland-proxy=false - but didn’t manage to hit the container…

I was wondering if anyone knows how to forward the real IPs onto the container KEEPING Docker BEHIND the firewall?

Thanks.