TMAegisBeta
更多 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