summaryrefslogtreecommitdiff
path: root/docs/vpp/configuration/nat/index.md
blob: 2591a791e56f8ae222d903a36e86d95a03012fdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
lastproofread: '2026-03-05'
---

(vpp-config-nat-index)=

```{include} /_include/need_improvement.txt
```

# VPP NAT Configuration

```{toctree}
:includehidden: true
:maxdepth: 1

cgnat
nat44
```

VPP Dataplane in VyOS supports two types of NAT:

## NAT44

This type is a classic NAT implementation where you can configure static
and dynamic NAT rules. It supports both source and destination NAT. While the
configuration may look a bit unusual compared to traditional NAT
implementations, it provides flexibility in network configurations.

## CGNAT

CGNAT is a special type of NAT44, which is highly useful when you have
multiple local customers and a limited number of public IP addresses. It
shares the public IP address space fairly between customers by using a
combination of IP address and port number to distinguish between them.

ISPs often use this NAT type to provide internet access to customers.

It supports only source NAT.

CGNAT also supports exclude rules (identity mappings) to bypass translation
for selected local addresses or protocol/port tuples.