From: "cron2 (Code Review)" Date: Mon, 8 Dec 2025 13:59:49 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="5jhT0dwUba4="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Documentation: Various syntax fixes and text improvements List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --5jhT0dwUba4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/14= 14?usp=3Demail ) Change subject: Documentation: Various syntax fixes and text improvements ...................................................................... Documentation: Various syntax fixes and text improvements This started as a fix for OpenVPN/openvpn#606 but while reviewing the documentation referenced from there I identified more and more issues. There a few classes of changes in here: - Fix wrong `...` syntax, which makes no sense in rst. - Remove some very old references to OpenVPN v1 behavior. - Fix typos or other small text issues. Note: The usage of ``...`` vs :code:`...` is very inconsistent, but fixing that is outside of the scope of this patch. I have tried to make it at least locally consistent. Github: Fixes OpenVPN/openvpn#606 Change-Id: Iee535f1502ab3dcb7bde7f2593c2e122d27d9189 Signed-off-by: Frank Lichtenheld Acked-by: Gert Doering Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1414 Message-Id: <20251208114224.10223-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34= 878.html Signed-off-by: Gert Doering --- M doc/man-sections/cipher-negotiation.rst M doc/man-sections/client-options.rst M doc/man-sections/example-fingerprint.rst M doc/man-sections/examples.rst M doc/man-sections/protocol-options.rst M doc/man-sections/script-options.rst M doc/man-sections/server-options.rst M doc/man-sections/signals.rst M doc/man-sections/tls-options.rst M doc/man-sections/virtual-routing-and-forwarding.rst M doc/openvpn.8.rst M src/openvpn/ssl.c 12 files changed, 52 insertions(+), 69 deletions(-) diff --git a/doc/man-sections/cipher-negotiation.rst b/doc/man-sections/cip= her-negotiation.rst index 1285e82..1023236 100644 --- a/doc/man-sections/cipher-negotiation.rst +++ b/doc/man-sections/cipher-negotiation.rst @@ -30,13 +30,13 @@ and still had some quirks. Its main goal was "upgrade to AES-256-GCM when = possible". An OpenVPN 2.4 client that is built against a crypto library that supports= AES in GCM mode and does not have ``--ncp-disable`` will always announce support for -`AES-256-GCM` and `AES-128-GCM` to a server by sending :code:`IV_NCP=3D2`. +``AES-256-GCM`` and ``AES-128-GCM`` to a server by sending :code:`IV_NCP= =3D2`. This only causes a problem if ``--ncp-ciphers`` option has been changed fr= om the default of :code:`AES-256-GCM:AES-128-GCM` to a value that does not include -these two ciphers. When an OpenVPN server tries to use `AES-256-GCM` or -`AES-128-GCM` the connection will then fail. It is therefore recommended to -always have the `AES-256-GCM` and `AES-128-GCM` ciphers to the ``--ncp-cip= hers`` +these two ciphers. When an OpenVPN server tries to use ``AES-256-GCM`` or +``AES-128-GCM`` the connection will then fail. It is therefore recommended= to +always have the ``AES-256-GCM`` and ``AES-128-GCM`` ciphers to the ``--ncp= -ciphers`` options to avoid this behaviour. OpenVPN 3 clients @@ -45,7 +45,7 @@ do not have a configurable ``--ncp-ciphers`` or ``--data-ciphers`` option.= Newer versions by default disable legacy AES-CBC, BF-CBC, and DES-CBC ciphers. These clients will always announce support for all their supported AEAD ci= phers -(`AES-256-GCM`, `AES-128-GCM` and in newer versions also `Chacha20-Poly130= 5`). +(``AES-256-GCM``, ``AES-128-GCM`` and in newer versions also ``Chacha20-Po= ly1305``). To support OpenVPN 3.x based clients at least one of these ciphers needs t= o be included in the server's ``--data-ciphers`` option. @@ -66,12 +66,12 @@ OpenVPN 2.4 server `````````````````` -When a client indicates support for `AES-128-GCM` and `AES-256-GCM` +When a client indicates support for ``AES-128-GCM`` and ``AES-256-GCM`` (with ``IV_NCP=3D2``) an OpenVPN 2.4 server will send the first cipher of the ``--ncp-ciphers`` to the OpenVPN client regardless of what the cipher is. To emulate the behaviour of an OpenVPN 2.4 client as close as possible and have compatibility to a setup that depends on this quirk, -adding `AES-128-GCM` and `AES-256-GCM` to the client's ``--data-ciphers`` +adding ``AES-128-GCM`` and ``AES-256-GCM`` to the client's ``--data-cipher= s`` option is required. OpenVPN 2.5+ will only announce the ``IV_NCP=3D2`` fla= g if those ciphers are present. @@ -90,10 +90,10 @@ Blowfish in CBC mode (BF-CBC) deprecation ````````````````````````````````````````` -The ``--cipher`` option defaulted to `BF-CBC` in OpenVPN 2.4 and older +The ``--cipher`` option defaulted to ``BF-CBC`` in OpenVPN 2.4 and older version. The default was never changed to ensure backwards compatibility. In OpenVPN 2.5 this behaviour has now been changed so that if the ``--ciph= er`` -is not explicitly set it does not allow the weak `BF-CBC` cipher any more +is not explicitly set it does not allow the weak ``BF-CBC`` cipher any more and needs to explicitly added as ``--cipher BFC-CBC`` or added to ``--data-ciphers``. diff --git a/doc/man-sections/client-options.rst b/doc/man-sections/client-= options.rst index e8523d9..ca4c8e9 100644 --- a/doc/man-sections/client-options.rst +++ b/doc/man-sections/client-options.rst @@ -437,8 +437,8 @@ This may be set by the client UI/GUI using ``--setenv``. On Windows systems it is automatically determined by openvpn itself. On other platforms OpenVPN will default to sending - the information returned by the `uname()` system call in - the `release` field, which is usually the currently running + the information returned by the ``uname()`` system call in + the ``release`` field, which is usually the currently running kernel version. This is highly system specific, though. :code:`UV_=3D` diff --git a/doc/man-sections/example-fingerprint.rst b/doc/man-sections/ex= ample-fingerprint.rst index 31ca0c1..7bd322d 100644 --- a/doc/man-sections/example-fingerprint.rst +++ b/doc/man-sections/example-fingerprint.rst @@ -12,29 +12,26 @@ ------------ 1. Install openvpn - Compile from source-code (see `INSTALL` file) or install via a distribu= tion (apt/yum/ports) + Compile from source-code (see ``INSTALL`` file) or install via a distri= bution (apt/yum/ports) or via installer (Windows). =20 -2. Generate a self-signed certificate for the server: - :: +2. Generate a self-signed certificate for the server:: openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -key= out server.key -out server.crt -nodes -sha256 -days 3650 -subj '/CN=3Dserve= r' 3. Generate SHA256 fingerprint of the server certificate Use the OpenSSL command line utility to view the fingerprint of just - created certificate: - :: + created certificate:: openssl x509 -fingerprint -sha256 -in server.crt -noout - This outputs something similar to: - :: + This outputs something similar to:: SHA256 Fingerprint=3D00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff:= 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff -4. Write a server configuration (`server.conf`):: +4. Write a server configuration (``server.conf``):: # The server certificate we created in step 1 cert server.crt @@ -73,10 +70,8 @@ 5. Add at least one client as described in the client section. 6. Start the server. - - On systemd based distributions move `server.crt`, `server.key` and - `server.conf` to :code:`/etc/openvpn/server` and start it via system= ctl - - :: + - On systemd based distributions move ``server.crt``, ``server.key`` a= nd + ``server.conf`` to ``/etc/openvpn/server`` and start it via systemct= l:: sudo mv server.conf server.key server.crt /etc/openvpn/server @@ -94,8 +89,7 @@ openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -k= eyout - -nodes -sha256 -days 3650 -subj '/CN=3Dalice' This generate a certificate and a key for the client. The output of the= command will look - something like this: - :: + something like this:: -----BEGIN PRIVATE KEY----- [base64 content] @@ -107,9 +101,7 @@ 3. Create a new client configuration file. In this example we will name th= e file - `alice.ovpn`: - - :: + ``alice.ovpn``:: # The name of your server to connect to remote yourserver.example.net @@ -146,24 +138,19 @@ 4. Generate the fingerprint of the client certificate. For that we will let OpenSSL read the client configuration file as the x509 command will - ignore anything that is not between the begin and end markers of the ce= rtificate: - - :: + ignore anything that is not between the begin and end markers of the ce= rtificate:: openssl x509 -fingerprint -sha256 -noout -in alice.ovpn - This will again output something like - :: + This will again output something like:: SHA256 Fingerprint=3Dff:ee:dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:= 00:ff:ee:dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:00 -5. Edit the `server.conf` configuration file and add this new client +5. Edit the ``server.conf`` configuration file and add this new client fingerprint as additional line between :code:`` and :code:`` - After adding *two* clients the part of configuration would look like th= is: - - :: + After adding *two* clients the part of configuration would look like th= is:: ff:ee:dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:00:ff:ee:dd:cc:bb:aa:99= :88:77:66:55:44:33:22:11:00 @@ -172,15 +159,13 @@ 6. (optional) if the client is an older client that does not support the :code:`peer-fingerprint` (e.g. OpenVPN 2.5 and older, OpenVPN Connect 3= .3 - and older), the client config `alice.ovpn` can be modified to still wor= k with + and older), the client config ``alice.ovpn`` can be modified to still w= ork with these clients. Remove the line starting with :code:`peer-fingerprint`. Then add a new :code:`` section at the end of the configuration file - with the contents of the :code:`server.crt` created in step 2 of the - server setup. The end of `alice.ovpn` file should like: - - :: + with the contents of the ``server.crt`` created in step 2 of the + server setup. The end of ``alice.ovpn`` file should look like:: [...] # Beginning of the file skipped diff --git a/doc/man-sections/examples.rst b/doc/man-sections/examples.rst index 94cc726..80ef2df 100644 --- a/doc/man-sections/examples.rst +++ b/doc/man-sections/examples.rst @@ -132,7 +132,7 @@ ping 10.4.0.1 -Note: This example use a elliptic curve (`secp384`), which allows +Note: This example use a elliptic curve (``secp384``), which allows ``--dh`` to be set to ``none``. Example 3: A tunnel with full PKI and TLS-based security diff --git a/doc/man-sections/protocol-options.rst b/doc/man-sections/proto= col-options.rst index 6eac14c..52ce5a8 100644 --- a/doc/man-sections/protocol-options.rst +++ b/doc/man-sections/protocol-options.rst @@ -185,7 +185,7 @@ :code:`AES-192-CBC`. Cipher negotiation is enabled in client-server mode only. I.e. if - ``--mode`` is set to `server` (server-side, implied by setting + ``--mode`` is set to ``server`` (server-side, implied by setting ``--server`` ), or if ``--pull`` is specified (client-side, implied by setting ``--client``). diff --git a/doc/man-sections/script-options.rst b/doc/man-sections/script-= options.rst index cadd464..58baf1e 100644 --- a/doc/man-sections/script-options.rst +++ b/doc/man-sections/script-options.rst @@ -149,7 +149,7 @@ :code:`auth_pending_file`. The first line must be the timeout in seconds, the required method on the second line (e.g. crtext) and third line must be the EXTRA as documented in the - ``client-pending-auth`` section of `doc/management.txt`. + ``client-pending-auth`` section of ``doc/management.txt``. This directive is designed to enable a plugin-style interface for extending OpenVPN's authentication capabilities. @@ -588,7 +588,7 @@ *--auth-user-pass username* Same as Common Name, with one exception: - starting with OpenVPN 2.0.1, the username is passed to the + The username is passed to the :code:`OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY` plugin in its raw form, without string remapping. @@ -597,11 +597,9 @@ a character which will cause the C library isprint() function to return true. -*--client-config-dir filename as derived from common name or`username* - Alphanumeric, underbar ('\_'), dash ('-'), and dot ('.') except for "." - or ".." as standalone strings. As of v2.0.1-rc6, the at ('@') character - has been added as well for compatibility with the common name character - class. +*--client-config-dir filename as derived from common name or username* + Alphanumeric, underbar ('\_'), dash ('-'), at ('@'), and dot ('.') + except for "." or ".." as standalone strings. *Environmental variable names* Alphanumeric or underbar ('\_'). @@ -620,7 +618,7 @@ Once set, a variable is persisted indefinitely until it is reset by a new value or a restart, -As of OpenVPN 2.0-beta12, in server mode, environmental variables set by +In server mode, environmental variables set by OpenVPN are scoped according to the client objects they are associated with, so there should not be any issues with scripts having access to stale, previously set variables which refer to different client @@ -861,7 +859,7 @@ :code:`route_ipv6_{parm}_{n}` A set of variables which define each IPv6 route to be added, and are - set prior to **--up** script execution. + set prior to ``--up`` script execution. ``parm`` will be one of :code:`network`, :code:`gateway` or :code:`metric`. ``route_ipv6_network_{n}`` contains :code:`netmask` @@ -877,9 +875,9 @@ :code:`route_redirect_gateway_ipv4` :code:`route_redirect_gateway_ipv6` - Set to `1` if the corresponding default gateway should be redirected - into the tunnel, and to `2` if also the local LAN segment should be - blocked (`block-local`). Not set otherwise. Set prior to **--up** sc= ript + Set to :code:`1` if the corresponding default gateway should be redire= cted + into the tunnel, and to :code:`2` if also the local LAN segment should= be + blocked (:code:`block-local`). Not set otherwise. Set prior to ``--u= p`` script execution. :code:`script_context` diff --git a/doc/man-sections/server-options.rst b/doc/man-sections/server-= options.rst index 3760694..370c670 100644 --- a/doc/man-sections/server-options.rst +++ b/doc/man-sections/server-options.rst @@ -509,7 +509,7 @@ ``--rcvbuf``, ``--session-timeout`` Note: using ``--push`` requires OpenVPN to run in ``--mode server`` (or - using of one of `--server`, `--server-bridge` helper directives). + using of one of ``--server``, ``--server-bridge`` helper directives). --push-remove opt Selectively remove all ``--push`` options matching "opt" from the option diff --git a/doc/man-sections/signals.rst b/doc/man-sections/signals.rst index 01e8e5b..35617aa 100644 --- a/doc/man-sections/signals.rst +++ b/doc/man-sections/signals.rst @@ -7,7 +7,7 @@ connections. :code:`SIGUSR1` - Like :code:`SIGHUP``, except don't re-read configuration file, and + Like :code:`SIGHUP`, except don't re-read configuration file, and possibly don't close and reopen TUN/TAP device, re-read key files, preserve local IP address/port, or preserve most recently authenticated remote IP address/port based on ``--persist-tun``, ``--persist-local-i= p`` diff --git a/doc/man-sections/tls-options.rst b/doc/man-sections/tls-option= s.rst index 63cb32f..846dfdd 100644 --- a/doc/man-sections/tls-options.rst +++ b/doc/man-sections/tls-options.rst @@ -220,7 +220,7 @@ Local peer's private key in .pem format or a URI. Use the private key which was generated when you built your peer's certificate (see ``--cert file`` above). URI is supported only when built with OpenSSL 3.0 - or later and any required providers are loaded. (See `--cert` for more d= etails). + or later and any required providers are loaded. (See ``--cert`` for more= details). --pkcs12 file Specify a PKCS #12 file containing local private key, local certificate, @@ -390,7 +390,7 @@ by using ``--ecdh-curve``, the groups for ecdh will also be picked from this list. - OpenVPN maps the curve name `secp256r1` to `prime256v1` to allow + OpenVPN maps the curve name ``secp256r1`` to ``prime256v1`` to allow specifying the same tls-groups option for mbedTLS and OpenSSL. Warning: this option not only affects elliptic curve certificates @@ -404,7 +404,7 @@ The following profiles are supported: :code:`insecure` - Identical for mbed TLS to `legacy` + Identical for mbed TLS to :code:`legacy` :code:`legacy` (default) SHA1 and newer, RSA 2048-bit+, any elliptic curve. @@ -433,7 +433,7 @@ OpenVPN will migrate to 'preferred' as default in the future. Please ensure that your keys already comply. -*WARNING:* ``--tls-ciphers``, ``--tls-ciphersuites`` and ``tls-groups`` +*WARNING:* ``--tls-cipher``, ``--tls-ciphersuites`` and ``tls-groups`` These options are expert features, which - if used correctly - can improve the security of your VPN connection. But it is also easy to unwittingly use them to carefully align a gun with your foot, or just @@ -442,7 +442,7 @@ --tls-cipher l A list ``l`` of allowable TLS ciphers delimited by a colon (":code:`:`"). - These setting can be used to ensure that certain cipher suites are used + This setting can be used to ensure that certain cipher suites are used (or not used) for the TLS connection. OpenVPN uses TLS to secure the control channel, over which the keys that are used to protect the actual VPN traffic are exchanged. @@ -452,7 +452,7 @@ OpenSSL and/or mbed TLS documentation for details on the cipher list interpretation. - For OpenSSL, the ``--tls-cipher`` is used for TLS 1.2 and below. + For OpenSSL, the ``--tls-cipher`` option is used for TLS 1.2 and below. Use ``--show-tls`` to see a list of TLS ciphers supported by your crypto library. @@ -466,7 +466,7 @@ Same as ``--tls-cipher`` but for TLS 1.3 and up. mbed TLS has no TLS 1.3 support yet and only the ``--tls-cipher`` setting is used. - The default for `--tls-ciphersuites` is to use the crypto library's + The default for ``--tls-ciphersuites`` is to use the crypto library's default. --tls-client diff --git a/doc/man-sections/virtual-routing-and-forwarding.rst b/doc/man-= sections/virtual-routing-and-forwarding.rst index db5f1ab..bb599fc 100644 --- a/doc/man-sections/virtual-routing-and-forwarding.rst +++ b/doc/man-sections/virtual-routing-and-forwarding.rst @@ -35,7 +35,7 @@ ip link set master vrf_external dev eth0 Any prefixes configured on :code:`eth0` will be moved from the :code`main` -routing table into routing table `1023` +routing table into routing table :code:`1023` =20 VRF setup with ifupdown diff --git a/doc/openvpn.8.rst b/doc/openvpn.8.rst index 81cfe27..65130b1 100644 --- a/doc/openvpn.8.rst +++ b/doc/openvpn.8.rst @@ -161,7 +161,7 @@ COPYRIGHT =3D=3D=3D=3D=3D=3D=3D=3D=3D -Copyright (C) 2002-2020 OpenVPN Inc This program is free software; you +Copyright (C) 2002-2025 OpenVPN Inc This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl.c index 8501693..741f40a 100644 --- a/src/openvpn/ssl.c +++ b/src/openvpn/ssl.c @@ -4108,8 +4108,8 @@ show_available_tls_ciphers_list(cipher_list, tls_cert_profile, false); printf("\n" - "Be aware that that whether a cipher suite in this list can act= ually work\n" - "depends on the specific setup of both peers. See the man page = entries of\n" + "Note: Whether a cipher suite in this list can actually work de= pends\n" + "on the specific setup of both peers. See the man page entries = of\n" "--tls-cipher and --show-tls for more details.\n\n"); } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1414?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Iee535f1502ab3dcb7bde7f2593c2e122d27d9189 Gerrit-Change-Number: 1414 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --5jhT0dwUba4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

Documentation: Various syntax fixes and text imp=
rovements

This started as a fix for OpenVPN/openvpn#606 but whilereviewing the documentation referenced from there I
identified more and= more issues.

There a few classes of changes in here:
- Fix wrong= `...` syntax, which makes no sense in rst.
- Remove some very old refer= ences to OpenVPN v1 behavior.
- Fix typos or other small text issues.
Note: The usage of ``...`` vs :code:`...` is very
inconsistent, but= fixing that is outside of the scope
of this patch. I have tried to make= it at least
locally consistent.

Github: Fixes OpenVPN/openvpn#60= 6
Change-Id: Iee535f1502ab3dcb7bde7f2593c2e122d27d9189
Signed-off-by:= Frank Lichtenheld <frank@...2641...>
Acked-by: Gert Doering <g= ert@...1296...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/14= 14
Message-Id: <20251208114224.10223-1-gert@...1296...>
URL: ht= tps://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg34878.htm= l
Signed-off-by: Gert Doering <gert@...1296...>
---
M doc/ma= n-sections/cipher-negotiation.rst
M doc/man-sections/client-options.rst<= br>M doc/man-sections/example-fingerprint.rst
M doc/man-sections/example= s.rst
M doc/man-sections/protocol-options.rst
M doc/man-sections/scri= pt-options.rst
M doc/man-sections/server-options.rst
M doc/man-sectio= ns/signals.rst
M doc/man-sections/tls-options.rst
M doc/man-sections/= virtual-routing-and-forwarding.rst
M doc/openvpn.8.rst
M src/openvpn/= ssl.c
12 files changed, 52 insertions(+), 69 deletions(-)

diff --git a/doc/man-sections/cipher-negotiation.rst b/doc/man-sections/=
cipher-negotiation.rst
index 1285e82..1023236 100644=
--- a/doc/man-sections/cipher-negotiation.rst
+++= b/doc/man-sections/cipher-negotiation.rst
@@ -30,13 +30,13= @@
and still had some quirks. Its main goal was "upg= rade to AES-256-GCM when possible".
An OpenVPN 2.4 cl= ient that is built against a crypto library that supports AES in GCM=
mode and does not have ``--ncp-disable`` will always announce su= pport for
-`AES-256-GCM= ` and `AES-128-GCM` to a server by sending :code:`IV_NCP=3D2`.
+``AES-256-GCM`` and ``AES-128-GC= M`` to a server by sending :code:`IV_NCP=3D2`.

= This only causes a problem if ``--ncp-ciphers`` option has been chan= ged from the
default of :code:`AES-256-GCM:AES-128-GCM` to= a value that does not include
-these two ciphers. When an OpenVPN server tries to use `AES-256-GC= M` or
-`AES-128-GCM` th= e connection will then fail. It is therefore recommended to
-always have the `AES-256-GCM` and `AE= S-128-GCM` ciphers to the ``--ncp-ciphers``
+these two ciphers. When an OpenVPN server tries to = use ``AES-256-GCM`` or
+always have th= e ``AES-256-GCM`` and ``AES-128-GCM`` ciphers to the ``--ncp-ciphers``
options to avoid this behaviour.

<= span> OpenVPN 3 clients

@@ -45,7 +45,7 @@
= do not have a configurable ``--ncp-ciphers`` or ``--data-ciphers`` option. = Newer
versions by default disable legacy AES-CBC, BF-CBC, = and DES-CBC ciphers.
These clients will always announce su= pport for all their supported AEAD ciphers
-(`AES-256-GCM`, `AES-128-GCM` and in newer versions al= so `Chacha20-Poly1305`).
+(``AES-256-GCM``, ``AES-128-GCM`` and in newer versions also ``Chacha2= 0-Poly1305``).

To support OpenVPN 3.x ba= sed clients at least one of these ciphers needs to be
incl= uded in the server's ``--data-ciphers`` option.
@@ -66,= 12 +66,12 @@

OpenVPN 2.4 server ``````````````````
-When a client indicates support for `AES-128-GCM` and `AES-256-GCM`
+When a client indicat= es support for ``AES-128-GCM`` and ``AES-256-GCM``
(with `= `IV_NCP=3D2``) an OpenVPN 2.4 server will send the first
c= ipher of the ``--ncp-ciphers`` to the OpenVPN client regardless of what

the cipher is. To emulate the behaviour of an OpenVPN 2.4 cli= ent as close
as possible and have compatibility to a setup= that depends on this quirk,
-adding `AES-128-GCM` and `AES-256-GCM` to the client's ``--data= -ciphers``
+adding ``= AES-128-GCM`` and ``AES-256-GCM`` to the client's ``--data-ciphers``
option is required. OpenVPN 2.5+ will only announce the ``IV= _NCP=3D2`` flag if
those ciphers are present.

@@ -90,10 +90,10 @@

Blowfish in CBC mode (BF-CBC) deprecation
``````````````= ```````````````````````````
-The ``--cipher`` option defaulted to `BF-CBC` in OpenVPN 2.4 and olde= r
+The ``--cipher`` o= ption defaulted to ``BF-CBC`` in OpenVPN 2.4 and older
ver= sion. The default was never changed to ensure backwards compatibility.
In OpenVPN 2.5 this behaviour has now been changed so that if = the ``--cipher``
-is no= t explicitly set it does not allow the weak `BF-CBC` cipher any more=
+is not explicitly set it d= oes not allow the weak ``BF-CBC`` cipher any more
and need= s to explicitly added as ``--cipher BFC-CBC`` or added to
= ``--data-ciphers``.

diff --git a/doc/man-= sections/client-options.rst b/doc/man-sections/client-options.rstindex e8523d9..ca4c8e9 100644
--- a/doc/man-sections= /client-options.rst
+++ b/doc/man-sections/client-options.r= st
@@ -437,8 +437,8 @@
This may be= set by the client UI/GUI using ``--setenv``.
On W= indows systems it is automatically determined by openvpn
= itself. On other platforms OpenVPN will default to sending- the information return= ed by the `uname()` system call in
- the `release` field, which is usually the currently ru= nning
+ the in= formation returned by the ``uname()`` system call in
+ the ``release`` field, which is u= sually the currently running
kernel version. This= is highly system specific, though.

:c= ode:`UV_<name>=3D<value>`
diff --git a/doc/man-= sections/example-fingerprint.rst b/doc/man-sections/example-fingerprint.rst=
index 31ca0c1..7bd322d 100644
--- a/doc/ma= n-sections/example-fingerprint.rst
+++ b/doc/man-sections/e= xample-fingerprint.rst
@@ -12,29 +12,26 @@
= ------------
1. Install openvpn
<= br>- Compile from source-code (= see `INSTALL` file) or install via a distribution (apt/yum/ports)+ Compile from source-code (= see ``INSTALL`` file) or install via a distribution (apt/yum/ports)<= br> or via installer (Windows).

-2. Generate a self-signed certificate = for the server:
- ::<= /span>
+2. Generate a self-s= igned certificate for the server::

o= penssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -keyout se= rver.key -out server.crt -nodes -sha256 -days 3650 -subj '/CN=3Dserver&= #39;

3. Generate SHA256 fingerprint of t= he server certificate

Use the OpenSSL= command line utility to view the fingerprint of just
- created certificate:
- ::
+ created certificate::

openssl x509 -fingerprint -sha256 -in server.crt -noout

=
- This output= s something similar to:
- ::
+ This outp= uts something similar to::

SHA256 F= ingerprint=3D00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff:00:11:22:33:44= :55:66:77:88:99:aa:bb:cc:dd:ee:ff


-4. Write a server configura= tion (`server.conf`)::
- - On systemd based distributions move `server= .crt`, `server.key` and
- `server.conf` to :code:`/etc/openvpn/server` and start it via syste= mctl
-
- ::
+ - On systemd based distributions move ``serve= r.crt``, ``server.key`` and
+ ``server.conf`` to ``/etc/openvpn/server`` and start it via s= ystemctl::

sudo mv server.conf= server.key server.crt /etc/openvpn/server

@@ -94,8 +89,7 @@
openssl req -x509 -newkey ec -pk= eyopt ec_paramgen_curve:secp384r1 -keyout - -nodes -sha256 -days 3650 -subj= '/CN=3Dalice'

This generate = a certificate and a key for the client. The output of the command will look=
- something like thi= s:
- ::
+ something like this::
-----BEGIN PRIVATE KEY-----
[base64 content]
@@ -107,9 +101,7 @@


3. Create a new client configuratio= n file. In this example we will name the file
- `alice.ovpn`:
-
- = ::
+ ``alice.ovpn`= `::

# The name of your server to c= onnect to
remote yourserver.example.net
@@ -146,24 +138,19 @@

4. Generate th= e fingerprint of the client certificate. For that we will
= let OpenSSL read the client configuration file as the x509 command will<= /span>
- ignore anything tha= t is not between the begin and end markers of the certificate:
-

- ::
+ ignore anything that is not between the begin and end markers of t= he certificate::

openssl x509 -fin= gerprint -sha256 -noout -in alice.ovpn

- This will again output something like=
- ::
+ This will again output something= like::

SHA256 Fingerprint=3Dff:= ee:dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:00:ff:ee:dd:cc:bb:aa:99:88:77:66:= 55:44:33:22:11:00

-5. Edit the `server.conf` configuration file and add this new= client
+5. Edit the = ``server.conf`` configuration file and add this new client
= fingerprint as additional line between :code:`<peer-fingerprint>= `
and :code:`</peer-fingerprint>`

- After adding *tw= o* clients the part of configuration would look like this:
-
- ::
+ After adding *two* clients the part of configuration would look like t= his::

<peer-fingerprint>

ff:ee:dd:cc:bb:aa:99:88:77:66:55:44:33:22:11:00:ff:ee:d= d:cc:bb:aa:99:88:77:66:55:44:33:22:11:00
@@ -172,15 +159,13= @@

6. (optional) if the client is an ol= der client that does not support the
:code:`peer-finger= print` (e.g. OpenVPN 2.5 and older, OpenVPN Connect 3.3
- and older), the client config `alice.o= vpn` can be modified to still work with
+ and older), the client config ``alice.ovpn`` can be = modified to still work with
these clients.

Remove the line starting with :code:`peer-fingerp= rint`. Then
add a new :code:`<ca>` section at the= end of the configuration file
- with the contents of the :code:`server.crt` created in step 2 o= f the
- server setup.= The end of `alice.ovpn` file should like:
-
-= ::
+ with the co= ntents of the ``server.crt`` created in step 2 of the
+ server setup. The end of ``alice.ovpn`= ` file should look like::

[...] #= Beginning of the file skipped
</cert><= br>diff --git a/doc/man-sections/examples.rst b/doc/man-sections/exam= ples.rst
index 94cc726..80ef2df 100644
--- = a/doc/man-sections/examples.rst
+++ b/doc/man-sections/exam= ples.rst
@@ -132,7 +132,7 @@

ping 10.4.0.1

-Note: This example use a elliptic curve (`secp384`), whic= h allows
+Note: This = example use a elliptic curve (``secp384``), which allows
`= `--dh`` to be set to ``none``.

Example 3= : A tunnel with full PKI and TLS-based security
diff --git = a/doc/man-sections/protocol-options.rst b/doc/man-sections/protocol-options= .rst
index 6eac14c..52ce5a8 100644
--- a/do= c/man-sections/protocol-options.rst
+++ b/doc/man-sections/= protocol-options.rst
@@ -185,7 +185,7 @@
= :code:`AES-192-CBC`.

Cipher negotiati= on is enabled in client-server mode only. I.e. if
- ``--mode`` is set to `server` (server-side, i= mplied by setting
+ = ``--mode`` is set to ``server`` (server-side, implied by setting
= ``--server`` ), or if ``--pull`` is specified (client-side, implie= d by
setting ``--client``).

= diff --git a/doc/man-sections/script-options.rst b/doc/man-sections/s= cript-options.rst
index cadd464..58baf1e 100644
<= span>--- a/doc/man-sections/script-options.rst
+++ b/doc/ma= n-sections/script-options.rst
@@ -149,7 +149,7 @@ :code:`auth_pending_file`. The first line must be the timeout in<= /span>
seconds, the required method on the second line (e.g. cr= text) and
third line must be the EXTRA as documented in = the
- ``client-pending= -auth`` section of `doc/management.txt`.
+ ``client-pending-auth`` section of ``doc/management.= txt``.

This directive is designed to e= nable a plugin-style interface for
extending OpenVPN'= ;s authentication capabilities.
@@ -588,7 +588,7 @@<= br>
*--auth-user-pass username*
= Same as Common Name, with one exception:
- starting with OpenVPN 2.0.1, the username is passed = to the
+ The userna= me is passed to the
:code:`OPENVPN_PLUGIN_AUTH_USER_PAS= S_VERIFY` plugin in its raw form,
without string remapp= ing.

@@ -597,11 +597,9 @@
a character which will cause the C library isprint() function to
return true.

-*--client-config-dir filename as derived from commo= n name or`username*
- = Alphanumeric, underbar ('\_'), dash ('-'), and dot ('.= ') except for "."
- or ".." as standalone strings. As of v2.0.1-rc6, the= at ('@') character
- has been added as well for compatibility with the common name char= acter
- class.=
+*--client-config-dir filen= ame as derived from common name or username*
+ Alphanumeric, underbar ('\_'), dash (&#= 39;-'), at ('@'), and dot ('.')
+ except for "." or "..&q= uot; as standalone strings.

*Environment= al variable names*
Alphanumeric or underbar ('\_= 9;).
@@ -620,7 +618,7 @@
Once set, a varia= ble is persisted indefinitely until it is reset by a
new v= alue or a restart,

-As of OpenVPN 2.0-beta12, in server mode, environmental vari= ables set by
+In serv= er mode, environmental variables set by
OpenVPN are scoped= according to the client objects they are associated
with,= so there should not be any issues with scripts having access to
= stale, previously set variables which refer to different client

@@ -861,7 +859,7 @@

:code:`r= oute_ipv6_{parm}_{n}`
A set of variables which define = each IPv6 route to be added, and are
- set prior to **--up** script execution.
+ set prior to ``--up`` script exe= cution.

``parm`` will be one of :cod= e:`network`, :code:`gateway` or
:code:`metric`. ``rout= e_ipv6_network_{n}`` contains :code:`netmask`
@@ -877,9 +87= 5,9 @@
:code:`route_redirect_gateway_ipv4`

:code:`route_redirect_gateway_ipv6`
- Set to `1` if the corresponding defau= lt gateway should be redirected
- into the tunnel, and to `2` if also the local LAN segment sho= uld be
- blocked (`b= lock-local`). Not set otherwise. Set prior to **--up** script
<= span style=3D"color: hsl(120, 100%, 40%);">+ Set to :code:`1` if the cor= responding default gateway should be redirected
+ into the tunnel, and to :code:`2` if also t= he local LAN segment should be
+ blocked (:code:`block-local`). Not set otherwise. Set prio= r to ``--up`` script
execution.

:code:`script_context`
diff --git a/doc/man-se= ctions/server-options.rst b/doc/man-sections/server-options.rst
<= span>index 3760694..370c670 100644
--- a/doc/man-sections/s= erver-options.rst
+++ b/doc/man-sections/server-options.rst=
@@ -509,7 +509,7 @@
``--rcvbuf``, ``--s= ession-timeout``

Note: using ``--push`= ` requires OpenVPN to run in ``--mode server`` (or
- using of one of `--server`, `--server-bridge= ` helper directives).
+ using of one of ``--server``, ``--server-bridge`` helper directives).

--push-remove opt
Sele= ctively remove all ``--push`` options matching "opt" from the opt= ion
diff --git a/doc/man-sections/signals.rst b/doc/man-sec= tions/signals.rst
index 01e8e5b..35617aa 100644
<= span>--- a/doc/man-sections/signals.rst

+++ b/doc/man-secti= ons/signals.rst
@@ -7,7 +7,7 @@
connec= tions.

:code:`SIGUSR1`
- Like :code:`SIGHUP``, except don= 9;t re-read configuration file, and
+ Like :code:`SIGHUP`, except don't re-read configura= tion file, and
possibly don't close and reopen TUN= /TAP device, re-read key files,
preserve local IP addr= ess/port, or preserve most recently authenticated
remo= te IP address/port based on ``--persist-tun``, ``--persist-local-ip``
diff --git a/doc/man-sections/tls-options.rst b/doc/man-sections= /tls-options.rst
index 63cb32f..846dfdd 100644
--- a/doc/man-sections/tls-options.rst

+++ b/doc/man-se= ctions/tls-options.rst
@@ -220,7 +220,7 @@
= Local peer's private key in .pem format or a URI. Use the private ke= y
which was generated when you built your peer's cer= tificate (see
``--cert file`` above). URI is supported o= nly when built with OpenSSL 3.0
- or later and any required providers are loaded. (See `--cert` f= or more details).
+ = or later and any required providers are loaded. (See ``--cert`` for more de= tails).

--pkcs12 file
= Specify a PKCS #12 file containing local private key, local certificate,
@@ -390,7 +390,7 @@
by using ``--ecdh-c= urve``, the groups for ecdh will also be picked
from t= his list.

- OpenVPN maps the curve name `secp256r1` to `prime256v1` to allow<= /span>
+ OpenVPN maps the= curve name ``secp256r1`` to ``prime256v1`` to allow
s= pecifying the same tls-groups option for mbedTLS and OpenSSL.

Warning: this option not only affects elliptic cu= rve certificates
@@ -404,7 +404,7 @@
The= following profiles are supported:

:co= de:`insecure`
- Id= entical for mbed TLS to `legacy`
+ Identical for mbed TLS to :code:`legacy`

:code:`legacy` (default)
SHA1 = and newer, RSA 2048-bit+, any elliptic curve.
@@ -433,7 +43= 3,7 @@
OpenVPN will migrate to 'preferred' as de= fault in the future. Please
ensure that your keys alread= y comply.

-*WARNING:* ``--tls-ciphers``, ``--tls-ciphersuites`` and ``tls-groups= ``
+*WARNING:* ``--tl= s-cipher``, ``--tls-ciphersuites`` and ``tls-groups``
= These options are expert features, which - if used correctly - can improve the security of your VPN connection. But it is also ea= sy to
unwittingly use them to carefully align a gun wi= th your foot, or just
@@ -442,7 +442,7 @@
= --tls-cipher l
A list ``l`` of allowable TLS ciphers del= imited by a colon (":code:`:`").

- These setting can be used to ensur= e that certain cipher suites are used
+ This setting can be used to ensure that certain cipher = suites are used
(or not used) for the TLS connection. Op= enVPN uses TLS to secure the
control channel, over which= the keys that are used to protect the actual
VPN traffi= c are exchanged.
@@ -452,7 +452,7 @@
Ope= nSSL and/or mbed TLS documentation for details on the cipher list interpretation.

- For OpenSSL, the ``--tls-cipher`` is used for TLS 1= .2 and below.
+ For = OpenSSL, the ``--tls-cipher`` option is used for TLS 1.2 and below.<= br>
Use ``--show-tls`` to see a list of TLS ciphe= rs supported by your crypto
library.
@@ = -466,7 +466,7 @@
Same as ``--tls-cipher`` but for TLS 1.= 3 and up. mbed TLS has no
TLS 1.3 support yet and only t= he ``--tls-cipher`` setting is used.

- The default for `--tls-ciphersuites` is = to use the crypto library's
+ The default for ``--tls-ciphersuites`` is to use the crypto l= ibrary's
default.

= --tls-client
diff --git a/doc/man-sections/virtual-routing= -and-forwarding.rst b/doc/man-sections/virtual-routing-and-forwarding.rst
index db5f1ab..bb599fc 100644
--- a/doc/man-= sections/virtual-routing-and-forwarding.rst
+++ b/doc/man-s= ections/virtual-routing-and-forwarding.rst
@@ -35,7 +35,7 @= @
ip link set master vrf_external dev eth0
Any prefixes configured on :code:`eth0` will be m= oved from the :code`main`
-routing table into routing table `1023`
+routing table into routing table :code:`1023`


VRF setup with ifupdown
diff --git a/doc/openvpn.8.rst b/doc/openvpn.8.rst
<= span>index 81cfe27..65130b1 100644

--- a/doc/openvpn.8.rst<= /span>
+++ b/doc/openvpn.8.rst
@@ -161,7 +161,7 @@=
COPYRIGHT
=3D=3D=3D=3D=3D=3D=3D=3D=3D

-Copyri= ght (C) 2002-2020 OpenVPN Inc This program is free software; you
= +Copyright (C) 2002-2025 OpenVP= N Inc This program is free software; you
can redistribute = it and/or modify it under the terms of the GNU General
Pub= lic License version 2 as published by the Free Software Foundation.<= br>
diff --git a/src/openvpn/ssl.c b/src/openvpn/ssl= .c
index 8501693..741f40a 100644
--- a/src/= openvpn/ssl.c
+++ b/src/openvpn/ssl.c
@@ -4= 108,8 +4108,8 @@
show_available_tls_ciphers_list(ciphe= r_list, tls_cert_profile, false);

pr= intf("\n"
- = "Be aware that that whether a cipher suite in this list can a= ctually work\n"
- = "depends on the specific setup of both peers. See the man pa= ge entries of\n"
+ "Note: Whether a cipher suite in this list can actually w= ork depends\n"
+= "on the specific setup of both peers. See the man page entr= ies of\n"
"--tls-cipher and --show-tl= s for more details.\n\n");
}
=

To view, visit change 1414. To unsubscribe, or fo= r help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iee535f1502ab3dcb7bde7f2593c= 2e122d27d9189
Gerrit-Change-Number: 1414
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --5jhT0dwUba4=--