<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/interface-definitions/include/vpp/nat_protocol.xml.i, 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>2025-04-25T10:44:45+00:00</updated>
<entry>
<title>T7181: VPP Static and dynamic NAT</title>
<updated>2025-04-25T10:44:45+00:00</updated>
<author>
<name>Nataliia Solomko</name>
<email>natalirs1985@gmail.com</email>
</author>
<published>2025-04-23T12:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=fa293316e679645e6397697428cee96e32e346fc'/>
<id>urn:sha1:fa293316e679645e6397697428cee96e32e346fc</id>
<content type='text'>
New CLI for static and dynamic NAT:
```
set vpp nat44 interface outside &lt;interface&gt;                     # multi
set vpp nat44 interface inside &lt;interface&gt;                      # multi
set vpp nat44 address-pool translation interface &lt;interface&gt;    # multi
set vpp nat44 address-pool translation address &lt;address&gt;        # multi
set vpp nat44 address-pool twice-nat interface &lt;interface&gt;      # multi
set vpp nat44 address-pool twice-nat address &lt;address&gt;                  # multi

set vpp nat44 static rule &lt;rule&gt; external address &lt;address&gt;
set vpp nat44 static rule &lt;rule&gt; external port &lt;port&gt;
set vpp nat44 static rule &lt;rule&gt; local address &lt;address&gt;
set vpp nat44 static rule &lt;rule&gt; local port &lt;port&gt;
set vpp nat44 static rule &lt;rule&gt; protocol &lt;protocol&gt;
set vpp nat44 static rule &lt;rule&gt; options twice-nat
set vpp nat44 static rule &lt;rule&gt; options self-twice-nat
set vpp nat44 static rule &lt;rule&gt; options out-to-in-only
set vpp nat44 static rule &lt;rule&gt; options twice-nat-address &lt;address&gt;

set vpp nat44 exclude rule &lt;rule&gt; protocol &lt;protocol&gt;
set vpp nat44 exclude rule &lt;rule&gt; local-port &lt;port&gt;
set vpp nat44 exclude rule &lt;rule&gt; local-address &lt;address&gt;
set vpp nat44 exclude rule &lt;rule&gt; external-interface &lt;interface&gt;
```
Settings:
```
set vpp settings nat44 session-limit &lt;limit&gt;            # default 64512
set vpp settings nat44 timeout udp &lt;sec&gt;                # default 300
set vpp settings nat44 timeout tcp-established &lt;sec&gt;    # default 7440
set vpp settings nat44 timeout tcp-transitory &lt;sec&gt;     # default 240
set vpp settings nat44 timeout icmp &lt;sec&gt;               # default 60
set vpp settings nat44 workers &lt;list&gt;
set vpp settings nat44 no-forwarding
```
</content>
</entry>
</feed>
