summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authoriTeV <iTeV@fs0ciety.xyz>2019-04-14 15:39:39 +0200
committeriTeV <iTeV@fs0ciety.xyz>2019-04-14 15:39:39 +0200
commit9376754a1324331ff6b31a16c98e5ef5d678309c (patch)
tree3bcc4ce26fed1ddeeb3ca139ba8ec4f76c7ccf58 /docs
parent0ad923a7470ed7f79f06750367ce5ed55ab442ef (diff)
downloadvyos-documentation-9376754a1324331ff6b31a16c98e5ef5d678309c.tar.gz
vyos-documentation-9376754a1324331ff6b31a16c98e5ef5d678309c.zip
Added some newlines and a new codeblock.
Diffstat (limited to 'docs')
-rw-r--r--docs/nat.rst16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/nat.rst b/docs/nat.rst
index a69cffbe..6951a6b1 100644
--- a/docs/nat.rst
+++ b/docs/nat.rst
@@ -13,13 +13,16 @@ host systems communicate to the Internet using a single or subset of IP
addresses.
To setup SNAT, we need to know:
-* The internal IP addresses we want to translate
-* The outgoing interface to perform the translation on
-* The external IP address to translate to
+
+* The internal IP addresses we want to translate;
+* The outgoing interface to perform the translation on;
+* The external IP address to translate to.
In the example used for the Quick Start configuration above, we demonstrate
the following configuration:
+.. code-block:: sh
+
set nat source rule 100 outbound-interface 'eth0'
set nat source rule 100 source address '192.168.0.0/24'
set nat source rule 100 translation address 'masquerade'
@@ -139,9 +142,10 @@ In this example, we will be using the example Quick Start configuration above
as a starting point.
To setup a destination NAT rule we need to gather:
-* The interface traffic will be coming in on
-* The protocol and port we wish to forward
-* The IP address of the internal system we wish to forward traffic to
+
+* The interface traffic will be coming in on;
+* The protocol and port we wish to forward;
+* The IP address of the internal system we wish to forward traffic to.
In our example, we will be forwarding web server traffic to an internal web
server on 192.168.0.100. HTTP traffic makes use of the TCP protocol on port 80.