aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArne Schwabe2022-11-09 16:48:09 +0100
committerGert Doering2022-11-14 11:53:34 +0100
commit01aed6a5df193a09d8d3c28c5a1580241e0a5e05 (patch)
treed85c616e2153654bfa7c1caf4eae339f320e5567 /doc
parent115559aa34c0ae20ba5628e8becf09af990fc97f (diff)
downloadopenvpn-01aed6a5df193a09d8d3c28c5a1580241e0a5e05.zip
openvpn-01aed6a5df193a09d8d3c28c5a1580241e0a5e05.tar.gz
Allow tun-mtu to be pushed
This allows tun-mtu to pushed but only up to the size of the preallocated buffers. This is not a perfect solution but should allow most of the use cases where the mtu is close enough to 1500 (or smaller). Signed-off-by: Arne Schwabe <arne@rfc2549.org> Patch v4: rebase for check_session_cipher name change Patch v5: remove mention of change of default mtu, remove leftover code from an earlier approach. Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20221109154810.1268403-1-arne@rfc2549.org> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg25498.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/man-sections/client-options.rst4
-rw-r--r--doc/man-sections/vpn-network-options.rst6
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/man-sections/client-options.rst b/doc/man-sections/client-options.rst
index 5a90689..0765147 100644
--- a/doc/man-sections/client-options.rst
+++ b/doc/man-sections/client-options.rst
@@ -363,6 +363,10 @@ configuration.
The client announces the list of supported ciphers configured with the
``--data-ciphers`` option to the server.
+ :code:`IV_MTU=<max_mtu>`
+ The client announces the support of pushable MTU and the maximum MTU
+ it is willing to accept.
+
:code:`IV_GUI_VER=<gui_id> <version>`
The UI version of a UI if one is running, for example
:code:`de.blinkt.openvpn 0.5.47` for the Android app.
diff --git a/doc/man-sections/vpn-network-options.rst b/doc/man-sections/vpn-network-options.rst
index 72cf906..4b2c4a7 100644
--- a/doc/man-sections/vpn-network-options.rst
+++ b/doc/man-sections/vpn-network-options.rst
@@ -540,6 +540,12 @@ routing.
It's best to use the ``--fragment`` and/or ``--mssfix`` options to deal
with MTU sizing issues.
+--tun-max-mtu maxmtu
+ This configures the maximum MTU size that a server can push to ``maxmtu``,
+ by configuring the internal buffers to allow at least this packet size.
+ The default for ``maxmtu`` is 1600. Currently, only increasing beyond 1600
+ is possible, and attempting to reduce max-mtu below 1600 will be ignored.
+
--tun-mtu-extra n
Assume that the TUN/TAP device might return as many as ``n`` bytes more
than the ``--tun-mtu`` size on read. This parameter defaults to 0, which