Follow a published port from PREROUTING to DNAT to MASQUERADE and the filter table, plus the docker-proxy, hairpin NAT, and how to read the real iptables output.