Skip to content

Commit

Permalink
modify nat descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
oilbeater committed Aug 17, 2023
1 parent 9f3dddd commit 9b084a9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/guide/vpc.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 7 additions & 1 deletion docs/guide/vpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ spec:

### 创建 EIP

EIP 为外部网络段的某个 IP 分配给 VPC 网关后可进行浮动 IP,SNAT 和 DNAT 操作。
EIP 为外部网络段的某个 IP 分配给 VPC 网关后可进行 DNAT,SNAT 和浮动 IP 操作。

随机分配一个地址给 EIP:

Expand Down Expand Up @@ -268,6 +268,8 @@ spec:

### 创建 DNAT 规则

通过 DNAT 规则,外部可以通过一个 EIP 加端口的方式来访问 VPC 内的一个 IP 和端口。

```yaml
kind: IptablesEIP
apiVersion: kubeovn.io/v1
Expand All @@ -291,6 +293,8 @@ spec:

### 创建 SNAT 规则

通过 SNAT 规则,VPC 内的 Pod 访问外部的地址时将会通过对应 EIP 进行 SNAT。

```yaml
---
kind: IptablesEIP
Expand All @@ -311,6 +315,8 @@ spec:

### 创建浮动 IP

通过浮动 IP 规则,VPC 内的一个 IP 会和 EIP 进行完全映射,外部可以通过这个 EIP 方位 VPC 内的 IP,VPC 内的这个 IP 访问外部地址时也会 SNAT 成这个 EIP。

```yaml
---
kind: IptablesEIP
Expand Down

0 comments on commit 9b084a9

Please sign in to comment.