Docker Community Forums

Share and learn in the Docker community.

IPtables inside container in Swarm mode

swarm

(Masterfqf) #1

Hello there.

I have a requirement to manage iptables/firewall rules between different services/networks in a Swarm cluster. After searching quite a lot the only solution I found was running with the NET_ADMIN option, but it is not supported in Swarm mode.

I find it hard to believe that there isn’t a way to manage firewall/iptables between Swarm services or Overlay networks. Is there any good way to do this or to at least allow IPtables inside containers in Swarm mode?

Thanks ahead!