summaryrefslogtreecommitdiff
path: root/docs/configuration
diff options
context:
space:
mode:
authorSquirePug <42793435+SquirePug@users.noreply.github.com>2022-10-06 15:21:36 +1100
committerGitHub <noreply@github.com>2022-10-06 15:21:36 +1100
commit11e42fb21d31ed94e1cd43fb3fa6842ad2c50244 (patch)
tree58b674a25af8c243d82bbdfc4afd1b54279437f7 /docs/configuration
parent545156f64a907ec33561a6f5c7df08a696bb4722 (diff)
downloadvyos-documentation-11e42fb21d31ed94e1cd43fb3fa6842ad2c50244.tar.gz
vyos-documentation-11e42fb21d31ed94e1cd43fb3fa6842ad2c50244.zip
Add MSS clamp example
Diffstat (limited to 'docs/configuration')
-rw-r--r--docs/configuration/policy/examples.rst29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/configuration/policy/examples.rst b/docs/configuration/policy/examples.rst
index 2d44f4bc..ca860945 100644
--- a/docs/configuration/policy/examples.rst
+++ b/docs/configuration/policy/examples.rst
@@ -182,3 +182,32 @@ Add multiple source IP in one rule with same priority
set policy local-route rule 101 source '203.0.113.253'
set policy local-route rule 101 source '198.51.100.0/24'
+###########################
+Clamp MSS for a specific IP
+###########################
+
+This example shows how to target an MSS clamp (in our example to 1360 bytes)
+to a specific destination IP.
+
+.. code-block:: none
+
+ set policy route IP-MSS-CLAMP rule 10 description 'Clamp TCP session MSS to 1360 for NN.NNN.NNN.NNN'
+ set policy route IP-MSS-CLAMP rule 10 destination address 'NN.NNN.NNN.NNN/32'
+ set policy route IP-MSS-CLAMP rule 10 protocol 'tcp'
+ set policy route IP-MSS-CLAMP rule 10 set tcp-mss '1360'
+ set policy route IP-MSS-CLAMP rule 10 tcp flags 'SYN'
+
+To apply this policy to the correct interface, configure it on the
+interface the inbound local host will send through to reach our
+destined target host (in our example eth1).
+
+.. code-block:: none
+
+ set interfaces ethernet eth1 policy route IP-MSS-CLAMP
+
+You can view that the policy is being correctly (or incorrectly) utilised
+with the following command:
+
+.. code-block:: none
+
+ show policy route statistics