Container showing 172.23.0.1 as source IP

I’m using nginx inside a docker container.

A lot of entries in the access_log show 172.23.0.1 as the source IP address, only a few show plausible IPs.

ifconfig shows that this is the IP address of an interface called br-d12e89b962b7:

 br-d12e89b962b7 Link encap:Ethernet  HWaddr 01:42:49:df:46:b6
      inet addr:172.23.0.1  Bcast:0.0.0.0  Mask:255.255.0.0

Why does this interface forward packages for outside clients? I assume it is some kind of misconfiguration as it works sometimes.

1 Like

What other IPs do you see?

AFAIK you only see the IPAM gateway as the source IP as per https://github.com/moby/moby/issues/25526