diff options
author | Miguel Borges de Freitas <miguel-r-freitas@alticelabs.com> | 2022-10-19 23:21:20 +0100 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2022-10-24 16:19:59 +0000 |
commit | 92ab02e8c0f31da37a3844d62f298c2cc0eeff3c (patch) | |
tree | d54542bb9003268eae227ad424cc055a23ffc4a2 /src | |
parent | f06253edb0fad24e5299796623a478b3e72a0f74 (diff) |
docs: update cnat docs to current vpp version
The documentation for the cnat plugin is highly outdated specially on
the snat section.
Type: docs
Signed-off-by: Miguel Borges de Freitas <miguel-r-freitas@alticelabs.com>
Change-Id: I30b0c6295d3c812b636374753af3c37f29b0cc53
(cherry picked from commit 938bff8084d6f79b368fabd4a60b49117cad11be)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/cnat/cnat.rst | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/plugins/cnat/cnat.rst b/src/plugins/cnat/cnat.rst index cdb751416db..a177bc10aa2 100644 --- a/src/plugins/cnat/cnat.rst +++ b/src/plugins/cnat/cnat.rst @@ -75,8 +75,8 @@ To show existing translations and sessions you can use .. code-block:: console - cnat show session verbose - cant show translation + show cnat session verbose + show cnat translation SourceNATing outgoing traffic @@ -94,10 +94,18 @@ address assigned to an interface) .. code-block:: console - cnat snat with 30.0.0.1 - cnat snat exclude 20.0.0.0/24 + set cnat snat-policy addr 30.0.0.1 + set cnat snat-policy if-pfx + set cnat snat-policy if table include-v4 tap0 + set cnat snat-policy prefix 20.0.0.0/24 set interface feature tap0 cnat-snat-ip4 arc ip4-unicast +To show the enforced snat policies: + +.. code-block:: console + + show cnat snat-policy + Other parameters ---------------- @@ -105,7 +113,7 @@ In vpp's startup file, you can also configure the bihash sizes for * the translation bihash ``(proto, port) -> translation`` * the session bihash ``src_ip, src_port, dest_ip, dest_port, proto -> new_src_ip, new_src_port, new_dest_ip, new_dest_port`` -* the snat bihash for searching ``snat exclude`` prefixes +* the snat bihash for searching ``snat-policy`` excluded prefixes .. code-block:: console |