Docker Community Forums

Share and learn in the Docker community.

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):

… however when traffic is passed through UFW for the container the client IP is always [] 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?