From: "flichtenheld (Code Review)" Date: Tue, 12 Sep 2023 10:52:43 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="fScbkjg3I0g="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Improve description of compat-mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: openvpn-devel , plaisthos --fScbkjg3I0g= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. plaisthos has uploaded this change for review. ( http://gerrit.openvpn.net/= c/openvpn/+/34?usp=3Demail ) Change subject: Improve description of compat-mode ...................................................................... Improve description of compat-mode Explicitly say that the version specified is the one of the peer and not the version we try to emulate. Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543 --- M doc/man-sections/generic-options.rst 1 file changed, 16 insertions(+), 6 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/34/34/3 diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/generi= c-options.rst index c827651..97e1b5a 100644 --- a/doc/man-sections/generic-options.rst +++ b/doc/man-sections/generic-options.rst @@ -53,10 +53,17 @@ need for /dev/urandom to be available. --compat-mode version - This option provides a way to alter the default of OpenVPN to be more - compatible with the version ``version`` specified. All of the changes - this option does can also be achieved using individual configuration - options. + This option provides a convenient way to alter the defaults of OpenVPN + to be more compatible with the version ``version`` specified. All of + the changes this option applies can also be achieved using individual + configuration options. + + The version specified with this option is the version of OpenVPN peer + OpenVPN should try to be compatible with. In general OpenVPN should be + compatible with the last two previous version without this option. E.g. + OpenVPN 2.6.0 should be compatible with 2.5.x and 2.4.x without this opt= ion. + However, there might be some edge cases that still require this option e= ven + in these cases. Note: Using this option reverts defaults to no longer recommended values and should be avoided if possible. @@ -67,12 +74,15 @@ - 2.5.x or lower: ``--allow-compression asym`` is automatically added to the configuration if no other compression options are present. - 2.4.x or lower: The cipher in ``--cipher`` is appended to - ``--data-ciphers`` + ``--data-ciphers``. - 2.3.x or lower: ``--data-cipher-fallback`` is automatically added with - the same cipher as ``--cipher`` + the same cipher as ``--cipher``. - 2.3.6 or lower: ``--tls-version-min 1.0`` is added to the configuration when ``--tls-version-min`` is not explicitly set. + If not required, this is option should be avoided. Setting this option c= an + lower security or disable features like data-channel offloading. + --config file Load additional config options from ``file`` where each line corresponds to one command line option, but with the leading :code:`--` removed. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/34?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543 Gerrit-Change-Number: 34 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --fScbkjg3I0g= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

plaisthos has uploaded this change for review.

View Change<= /a>

Improve description of compat-mode

Explicitly say that the versi= on specified is the one of the peer and not
the version we try to emulat= e.

Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543
---
M = doc/man-sections/generic-options.rst
1 file changed, 16 insertions(+), 6= deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn ref=
s/changes/34/34/3
diff --git a/doc/man-sections/generic-options.rst=
 b/doc/man-sections/generic-options.rst
index c827651..97e1= b5a 100644
--- a/doc/man-sections/generic-options.rst
+++ b/doc/man-sections/generic-options.rst
@@ -5= 3,10 +53,17 @@
need for /dev/urandom to be available.

--compat-mode version
- This option provides a way to alter the = default of OpenVPN to be more
- compatible with the version ``version`` specified. All of the cha= nges
- this option doe= s can also be achieved using individual configuration
- options.
+ This option provides a convenient way to alter the= defaults of OpenVPN
= + to be more compatible with the version ``version`` specified. All of
+ the changes this opti= on applies can also be achieved using individual
+ configuration options.
+
+ The version specified with this option is the version of O= penVPN peer
+ OpenVP= N should try to be compatible with. In general OpenVPN should be
= + compatible with the last two= previous version without this option. E.g.
+ OpenVPN 2.6.0 should be compatible with 2.5.x and= 2.4.x without this option.
+ However, there might be some edge cases that still require this o= ption even
+ in thes= e cases.

Note: Using this option rever= ts defaults to no longer recommended
values and should b= e avoided if possible.
@@ -67,12 +74,15 @@
= - 2.5.x or lower: ``--allow-compression asym`` is automatically added
to the configuration if no other compression options are= present.
- 2.4.x or lower: The cipher in ``--cipher`` i= s appended to
- ``--= data-ciphers``
+ `= `--data-ciphers``.
- 2.3.x or lower: ``--data-cipher-fal= lback`` is automatically added with
- the same cipher as ``--cipher``
+ the same cipher as ``--cipher``. - 2.3.6 or lower: ``--tls-version-min 1.0`` is added to the conf= iguration
when ``--tls-version-min`` is not explicitly= set.

+ If not required, this is option should be avoided. Setting this optio= n can
+ lower securi= ty or disable features like data-channel offloading.
+
--config file Load additional config options from ``file`` where each line corr= esponds
to one command line option, but with the leading= :code:`--` removed.

To view, visit change 34= . To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3bd27a8d34d8cb4896a3b78508b= 7d16911571543
Gerrit-Change-Number: 34
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newchange
--fScbkjg3I0g=--