1. Home
  2. Security Hardening
  3. CIS Docker 1.13.0 V1.0.0 L1 Docker
  4. Bind swarm services to a specific host interface

Bind swarm services to a specific host interface

Details

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.

Rationale:

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.

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

Solution

Remediation of this requires re-initialization of the swarm specifying a specific interface for the –listen-addr parameter.

Impact:

None

Default Value:

By default,docker swarm services listen on all available host interfaces.

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: System and Communications Protection.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles