Skip to contentSkip to conversation

Improve description of compat-mode

PATCH Superseded Arne Schwabe 3 participants 4 messages Mar 1, 2023 – Mar 21, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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
---
 doc/man-sections/generic-options.rst | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)
doc/man-sections/generic-options.rst +15 -6
index c827651d6..ae20a261a 100644
@@ -53,10 +53,16 @@ which mode OpenVPN is configured as.
   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 convient 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.
+
+  The version specified is the version of OpenVPN peer OepnVPN should try
+  to 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 option even in these cases.
 
   Note: Using this option reverts defaults to no longer recommended
   values and should be avoided if possible.
@@ -67,12 +73,15 @@ which mode OpenVPN is configured as.
   - 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 needed, this is option should be avoided. Setting this option can
+  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.
Signature · 1 line
2.37.1 (Apple Git-137.1)
#1 lore raw

PATCH v2 1/1 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.

Patch v2: Improve grammar.
Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543

Change-Id If4fb45b3426f5e0dbe6c87d5bd05681b9d733827
---
 doc/man-sections/generic-options.rst | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)
doc/man-sections/generic-options.rst +16 -6
index c827651d6..97e1b5aa6 100644
@@ -53,10 +53,17 @@ which mode OpenVPN is configured as.
   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 option.
+  However, there might be some edge cases that still require this option even
+  in these cases.
 
   Note: Using this option reverts defaults to no longer recommended
   values and should be avoided if possible.
@@ -67,12 +74,15 @@ which mode OpenVPN is configured as.
   - 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 can
+  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.
Signature · 1 line
2.37.1 (Apple Git-137.1)
Acked-by on v2 1/1
#2 lore raw
Quoted 7 lines · Arne Schwabe

Explicitly say that the version specified is the one of the peer and not the version we try to emulate.

Patch v2: Improve grammar.
Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543

Change-Id: If4fb45b3426f5e0dbe6c87d5bd05681b9d733827

How did you end up with two change ids?

Quoted 4 lines
---
 doc/man-sections/generic-options.rst | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

Review happened in Gerrit.

Regards,

Signature · 1 line
  Frank Lichtenheld
#3 lore raw
In reply to Arne Schwabe

Nothing to test here :-)

Your patch has been applied to the master and release/2.6 branch.

commit daf66f4013d8facc085ea6cfaaf8a42f4d45a461 (master) commit 92827ad84eb3a5b7ca70f3e7f34800d25790b10d (release/2.6)

Author: Arne Schwabe
Date:   Mon Mar 20 17:55:38 2023 +0100
     Improve description of compat-mode

     Signed-off-by: Arne Schwabe <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg26445.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering