7.2 Ensure that swarm services are bound to a specific host interface

Information

By default, Docker swarm services will listen on all interfaces on the host. This 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 swarm services will listen on all interfaces on the host. If a host has multiple network interfaces this may be undesirable as it could expose swarm services to networks which are not involved with 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.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Resolving this issues requires re-initialization of the swarm, specifying a specific interface for the --listen-addr parameter.

Impact:

None

See Also

https://workbench.cisecurity.org/benchmarks/16041

Item Details

Category: SECURITY ASSESSMENT AND AUTHORIZATION, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CA-9, 800-53|SC-7, 800-53|SC-7(5), CSCv7|9

Plugin: Unix

Control ID: 0470fe3b257903cb14e40e5411fc961968a1abebd1725819a1a83ad679818a70