Docker Community Forums

Share and learn in the Docker community.

Receiving LAN Broadcast in a Docker Container


(Jenerpeon) #1

Hello,
I am using a dhcp proxy inside a container. Therefore i have to listen on my broadcast address. The problem is, that Broadcast ip packets will never reach my brd addr. behind docker0. I don’t want to delete docker0 in favor of a ‘real’ virtual bridge. I need them running parallel.

As a solution I would like to give a LAN ip address to my container from a dhcp server. Is that possible somehow?

Another approach i can imagine is to forward multicast through linux packet filter with iptables. Has anyone successfully tried that?