Skip to content

Commit d0407c5

Browse files
committed
docs: refine validator Docker port guidance
1 parent 6bca2b9 commit d0407c5

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/content/docs/network/nodes/validator-node/deploy-nodes/using-docker.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ and VFN will be deployed on separate machines.
159159
containers. In Docker deployments, a host firewall rule alone may not block a port that is still published by
160160
Compose. Publish only the ports each node role needs, keep REST/admin/inspection ports private unless explicitly
161161
required, and verify from a machine outside your host or VPC that ports meant to stay closed are not reachable.
162+
Keep the validator/VFN link port (`6181`) on a private network only; do not publish it on a public interface.
162163
If a Compose file publishes `8080:8080` (or similar for `9101` / `9102`) and you do not want external access, either
163164
remove that entry or bind it to a trusted interface, e.g., `127.0.0.1:8080:8080`.
164165
</Aside>

src/content/docs/zh/network/nodes/validator-node/deploy-nodes/using-docker.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ import { Aside } from '@astrojs/starlight/components';
139139

140140
<Aside type="caution">
141141
**Docker 网络与已发布端口**<br />
142-
在启动容器之前,请检查 `docker-compose.yaml``docker-compose-fullnode.yaml` 中的 `ports:` 配置.在 Docker 部署中,如果端口仍由 Compose 发布,仅靠主机防火墙规则可能不足以阻止访问.只发布每种节点角色确实需要的端口,除非您明确需要,否则应保持 REST API / 管理 / 检查服务端口为私有,并从主机或 VPC 外部的机器验证本应关闭的端口确实无法访问.如果 Compose 文件里发布了 `8080:8080`(或 `9101` / `9102` 的类似映射),而您又不希望外部访问,请删除该条目,或者将其绑定到受信任的接口,例如 `127.0.0.1:8080:8080`.
142+
在启动容器之前,请检查 `docker-compose.yaml``docker-compose-fullnode.yaml` 中的 `ports:` 配置.在 Docker 部署中,如果端口仍由 Compose 发布,仅靠主机防火墙规则可能不足以阻止访问.只发布每种节点角色确实需要的端口,除非您明确需要,否则应保持 REST API / 管理 / 检查服务端口为私有,并从主机或 VPC 外部的机器验证本应关闭的端口确实无法访问.验证器与 VFN 之间的链路端口(`6181`)应只保留在私有网络上,不要发布到公共接口.如果 Compose 文件里发布了 `8080:8080`(或 `9101` / `9102` 的类似映射),而您又不希望外部访问,请删除该条目,或者将其绑定到受信任的接口,例如 `127.0.0.1:8080:8080`.
143143
</Aside>
144144

145145
7. 要启动验证器节点,在您的工作目录中运行以下命令:

src/content/docs/zh/network/nodes/validator-node/node-requirements.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ Aptos 有三种网络类型:
129129
**暴露服务**<br />
130130
检查服务端口(`9101`),管理服务端口(`9102`)和REST API端口(`80``8080`)
131131
可能对您的内部网络有用,例如,应用开发和调试.然而,检查服务端口和管理服务端口永远不应公开暴露,因为它们容易被滥用.同样,如果您选择公开暴露REST API端点,您应该部署额外的认证或速率限制机制以防止滥用.
132-
133-
检查服务端口(`9101`),管理服务端口(`9102`)以及 REST API 端口(`80``8080`)在您的内部网络中,可能会非常有用,比如说用于应用开发和调试时.但是,检查服务端口和管理服务端口绝对不能公开,因为这会很容易被滥用.同样,如果您决定将 REST API 端口公开,那么您应当部署额外的认证或限速措施,以避免滥用.
134132
</Aside>
135133

136134
## 软件要求

0 commit comments

Comments
 (0)