From 9b084a919f632dcb39197798878e3c398a404d9f Mon Sep 17 00:00:00 2001 From: oilbeater Date: Thu, 17 Aug 2023 05:33:28 +0000 Subject: [PATCH] modify nat descriptions --- docs/guide/vpc.en.md | 6 ++++++ docs/guide/vpc.md | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/guide/vpc.en.md b/docs/guide/vpc.en.md index 11d9636a4..d006e901a 100644 --- a/docs/guide/vpc.en.md +++ b/docs/guide/vpc.en.md @@ -272,6 +272,8 @@ spec: ### Create DNAT Rules +Through the DNAT rules, external can access to an IP and port within a VPC through an EIP and port. + ```yaml kind: IptablesEIP apiVersion: kubeovn.io/v1 @@ -295,6 +297,8 @@ spec: ### Create SNAT Rules +Through SNAT rules, when a Pod in the VPC accesses an external address, it will go through the corresponding EIP for SNAT. + ```yaml --- kind: IptablesEIP @@ -315,6 +319,8 @@ spec: ### Create Floating IP +Through floating IP rules, one IP in the VPC will be completely mapped to the EIP, and the external can access the IP in the VPC through this EIP. When the IP in the VPC accesses the external address, it will be SNAT to this EIP + ```yaml --- kind: IptablesEIP diff --git a/docs/guide/vpc.md b/docs/guide/vpc.md index 82a295a1e..b5fe2624b 100644 --- a/docs/guide/vpc.md +++ b/docs/guide/vpc.md @@ -227,7 +227,7 @@ spec: ### 创建 EIP -EIP 为外部网络段的某个 IP 分配给 VPC 网关后可进行浮动 IP,SNAT 和 DNAT 操作。 +EIP 为外部网络段的某个 IP 分配给 VPC 网关后可进行 DNAT,SNAT 和浮动 IP 操作。 随机分配一个地址给 EIP: @@ -268,6 +268,8 @@ spec: ### 创建 DNAT 规则 +通过 DNAT 规则,外部可以通过一个 EIP 加端口的方式来访问 VPC 内的一个 IP 和端口。 + ```yaml kind: IptablesEIP apiVersion: kubeovn.io/v1 @@ -291,6 +293,8 @@ spec: ### 创建 SNAT 规则 +通过 SNAT 规则,VPC 内的 Pod 访问外部的地址时将会通过对应 EIP 进行 SNAT。 + ```yaml --- kind: IptablesEIP @@ -311,6 +315,8 @@ spec: ### 创建浮动 IP +通过浮动 IP 规则,VPC 内的一个 IP 会和 EIP 进行完全映射,外部可以通过这个 EIP 方位 VPC 内的 IP,VPC 内的这个 IP 访问外部地址时也会 SNAT 成这个 EIP。 + ```yaml --- kind: IptablesEIP