2.17 Bind swarm services to a specific host interface

Information

By default, the docker swarm services will listen to all interfaces on the host, which may
not be necessary for the operation of the swarm where the host has multiple network
interfaces.When a swarm is initialized the default value for the --listen-addr flag is 0.0.0.0:2377
which means that the swarm services will listen on all interfaces on the host. If a host has
multiple network interfaces this may be undesirable as it may expose the docker swarm
services to networks which are not involved in the operation of the swarm.By passing a specific IP address to the --listen-addr, a specific network interface can be
specified limiting this exposure.

Solution

Remediation of this requires re-initialization of the swarm specifying a specific interface
for the --listen-addr parameter.Impact-NoneDefault Value-By default, docker swarm services listen on all available host interfaces.

See Also

https://workbench.cisecurity.org/files/517

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-7(13)

Plugin: Unix

Control ID: 9fe3c70d0b9c61baec936ca9d8af4bdea223357a5b555fb7d72cf2139aea1398