<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/interface-definitions/nat_cgnat.xml.in, branch rolling</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=rolling'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2024-06-10T11:11:02+00:00</updated>
<entry>
<title>T6442: CGNAT add log for address allocation</title>
<updated>2024-06-10T11:11:02+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2024-06-10T11:11:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=d6108d6e0a14f32d7ee28df01b5a4fcd678acada'/>
<id>urn:sha1:d6108d6e0a14f32d7ee28df01b5a4fcd678acada</id>
<content type='text'>
Add the configuration command to log current CGNAT allocation

set nat cgnat log-allocation
</content>
</entry>
<entry>
<title>T5169: Allow to set CGNAT multiple internal pools</title>
<updated>2024-05-18T15:13:44+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2024-05-18T15:13:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=2371c26b55db133b3864e54f460a046898e55abf'/>
<id>urn:sha1:2371c26b55db133b3864e54f460a046898e55abf</id>
<content type='text'>
Allow to set multiple CGNAT internal pools
```
set nat cgnat pool internal int-01 range '100.64.0.0/28'
set nat cgnat pool internal int-01 range '100.64.222.11-100.64.222.14'
```
</content>
</entry>
<entry>
<title>T5169: Add PoC for generating CGNAT rules rfc6888</title>
<updated>2024-04-09T15:36:43+00:00</updated>
<author>
<name>Viacheslav Hletenko</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2024-04-07T14:15:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=6f9e6159be265ca91f873576d15ccbbc061fed8d'/>
<id>urn:sha1:6f9e6159be265ca91f873576d15ccbbc061fed8d</id>
<content type='text'>
Add PoC for generating CGNAT rules
https://datatracker.ietf.org/doc/html/rfc6888
Not all requirements are implemented, but some of them.
Implemented:

REQ-2
```
A CGN MUST have a default "IP address pooling" behavior of "Paired"
CGN must use the same external IP
      address mapping for all sessions associated with the same internal
      IP address, be they TCP, UDP, ICMP, something else, or a mix of
      different protocols.
```

REQ-3
```
The CGN function SHOULD NOT have any limitations on the size
      or the contiguity of the external address pool
```

REQ-4
```
A CGN MUST support limiting the number of external ports (or,
      equivalently, "identifiers" for ICMP) that are assigned per
      subscriber
```

CLI:
```
set nat cgnat pool external ext1 external-port-range '1024-65535'
set nat cgnat pool external ext1 per-user-limit port '1000'
set nat cgnat pool external ext1 range 192.0.2.222/32
set nat cgnat pool internal int1 range '100.64.0.0/28'
set nat cgnat rule 10 source pool 'int1'
set nat cgnat rule 10 translation pool 'ext1'
```
</content>
</entry>
</feed>
