summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique <rick.0x00@gmail.com>2022-10-21 14:16:07 -0300
committerGitHub <noreply@github.com>2022-10-21 14:16:07 -0300
commitcfdb5368c83d7405ed97c6bfbc1bd9bea11d87f1 (patch)
treefb025e63518ac7174ced13e716e4ad9a702f7635
parent1ba53d2138964b96fa4bd866dcc86b3b1d59c5b1 (diff)
downloadvyos-documentation-cfdb5368c83d7405ed97c6bfbc1bd9bea11d87f1.tar.gz
vyos-documentation-cfdb5368c83d7405ed97c6bfbc1bd9bea11d87f1.zip
adjust commands to set nat nptv6
-rw-r--r--docs/configuration/nat/nptv6.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/configuration/nat/nptv6.rst b/docs/configuration/nat/nptv6.rst
index c09c8336..cffb2a14 100644
--- a/docs/configuration/nat/nptv6.rst
+++ b/docs/configuration/nat/nptv6.rst
@@ -44,12 +44,12 @@ NPTv6 support has been added in VyOS 1.2 (Crux) and is available through
.. code-block:: none
- set rule 10 source prefix 'fc00:dead:beef::/48'
- set rule 10 outbound-interface 'eth1'
- set rule 10 translation prefix '2001:db8:e1::/48'
- set rule 20 source prefix 'fc00:dead:beef::/48'
- set rule 20 outbound-interface 'eth2'
- set rule 20 translation prefix '2001:db8:e2::/48'
+ set nat nptv6 rule 10 source prefix 'fc00:dead:beef::/48'
+ set nat nptv6 rule 10 outbound-interface 'eth1'
+ set nat nptv6 rule 10 translation prefix '2001:db8:e1::/48'
+ set nat nptv6 rule 20 source prefix 'fc00:dead:beef::/48'
+ set nat nptv6 rule 20 outbound-interface 'eth2'
+ set nat nptv6 rule 20 translation prefix '2001:db8:e2::/48'
Resulting in the following ip6tables rules: