TMAegis베타
docker 관련 규칙 더 보기

Docker

TMA-DOCKER-7.2

Ensure that swarm services are bound to a specific host interface

보통레벨 1수동 검토docker

설명

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. Reported as a manual review item: the audit needs a site-specific judgement.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

You should check the network listener on port 2377 (the default for docker swarm) and 7946 (container network discovery), and confirm that it is only listening on specific interfaces. For example, in this could be done using the following command: ss -lp | grep -iE ':2377|:7946'

조치 방법

조치 방식: 가이드 또는 인프라 패치

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

속성

운영 체제
모두
태그
dockermanual
참고 자료
CIS Docker Benchmark v1.9.0 - 7.2 Ensure that swarm services are bound to a specific host interface