From: "flichtenheld (Code Review)" Date: Mon, 26 May 2025 14:10:17 +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="enkoLHapZQo="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: Changes.rst: Collect, fix, and improve entries for 2.7 release List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --enkoLHapZQo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1032?usp=3Demail to review the following change. Change subject: Changes.rst: Collect, fix, and improve entries for 2.7 rele= ase ...................................................................... Changes.rst: Collect, fix, and improve entries for 2.7 release Change-Id: I80a14b77fcc2fabf51af9f2d5ea0c36362cccb91 Signed-off-by: Frank Lichtenheld --- M Changes.rst 1 file changed, 88 insertions(+), 34 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/32/1032/1 diff --git a/Changes.rst b/Changes.rst index e297334..c326c0d 100644 --- a/Changes.rst +++ b/Changes.rst @@ -2,25 +2,43 @@ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D New features ------------ -TLS alerts - OpenVPN 2.7 will send out TLS alerts to peers informing them if the TLS - session shuts down or when the TLS implementation informs the peer abo= ut - an error in the TLS session (e.g. mismatching TLS versions). This impr= oves - the user experience as the client shows an error instead of running in= to - a timeout when the server just stops responding completely. +Multi-socket support for servers + OpenVPN servers now can listen on multiple sockets at the same time. + Multiple ``--local`` statements in the configuration can be used to + configure this. This way the same server can e.g. listen for UDP + and TCP connections at the same time, or listen on multiple addresses + and/or ports. -Support for tun/tap via unix domain socket and lwipovpn support - To allow better testing and emulating a full client with a full - network stack OpenVPN now allows a program executed to provide - a tun/tap device instead of opening a device. +Client implementations for DNS options sent by server for Linux/BSD + Linux and BSD versions of OpenVPN now ship with a default ``dns-updown`` + script that implements proper handling of DNS configuration sent + by the server. The scripts should work on systems that use + ``systemd`` or ``resolveconf`` to manage the DNS setup, as well as + raw ``/etc/resolv.conf`` files. However, the exact features supported + will depend on the configuration method. On Linux this should usually + mean that split-DNS configurations are supported out-of-the-box now. - The co-developed lwipovpn program based on lwIP stack allows to - simulate full IP stack and an OpenVPN client using - ``--dev-node unix:/path/to/lwipovpn`` can emulate a full client that - can be pinged, can serve a website and more without requiring any - elevated permission. This can make testing OpenVPN much easier. + Note that this new script will not be used by default if a ``--up`` + script is already in use to reduce problems with + backwards compatibility. - For more details see [lwipovpn on Gihtub](https://github.com/OpenVPN/l= wipovpn). + See documentation for ``--dns-updown`` and ``--dns`` for more details. + +New client implementation for DNS options sent by server for Windows + The Windows client now uses NRPT (Name Resolution Policy Table) to + handle DNS configurations. This adds support for split-DNS and DNSSEC + and improves the compatbility with local DNS resolvers. Requires the + interactive service. + +Support for new version of Linux DCO module + OpenVPN DCO module is moving upstream and being merged into the + main Linux kernel. For this process some API changes were required. + OpenVPN 2.7 will only support the new API. The new module is called + ``ovpn``. Out-of-tree builds for older kernels are available. Please + see the release announcements for futher information. + +Support for server mode in win-dco driver + On Windows the win-dco driver can now be used in server setups. Enforcement of AES-GCM usage limit OpenVPN will now enforce the usage limits on AES-GCM with the same @@ -30,11 +48,6 @@ https://datatracker.ietf.org/doc/draft-irtf-cfrg-aead-limits/ -Default ciphers in ``--data-ciphers`` - Ciphers in ``--data-ciphers`` can contain the string DEFAULT that is - replaced by the default ciphers used by OpenVPN, making it easier to - add an allowed cipher without having to spell out the default ciphers. - Epoch data keys and packet format This introduces the epoch data format for AEAD data channel ciphers in TLS mode ciphers. This new data format has a number of @@ -49,6 +62,31 @@ - IV constructed with XOR instead of concatenation to not have (parts)= of the real IV on the wire +Default ciphers in ``--data-ciphers`` + Ciphers in ``--data-ciphers`` can contain the string DEFAULT that is + replaced by the default ciphers used by OpenVPN, making it easier to + add an allowed cipher without having to spell out the default ciphers. + +TLS alerts + OpenVPN 2.7 will send out TLS alerts to peers informing them if the TLS + session shuts down or when the TLS implementation informs the peer abo= ut + an error in the TLS session (e.g. mismatching TLS versions). This impr= oves + the user experience as the client shows an error instead of running in= to + a timeout when the server just stops responding completely. + +Support for tun/tap via unix domain socket and lwipovpn support + To allow better testing and emulating a full client with a full + network stack OpenVPN now allows a program executed to provide + a tun/tap device instead of opening a device. + + The co-developed lwipovpn program based on lwIP stack allows to + simulate full IP stack. An OpenVPN client using + ``--dev-node unix:/path/to/lwipovpn`` can emulate a full client that + can be pinged, can serve a website and more without requiring any + elevated permission. This can make testing OpenVPN much easier. + + For more details see [lwipovpn on Gihtub](https://github.com/OpenVPN/l= wipovpn). + Allow overriding username with ``--override-username`` This is intended to allow using auth-gen-token in scenarios where the clients use certificates and multi-factor authentication. This will @@ -57,7 +95,7 @@ Deprecated features ------------------- -``secret`` support has been removed by default. +``secret`` support has been removed (by default). static key mode (non-TLS) is no longer considered "good and secure eno= ugh" for today's requirements. Use TLS mode instead. If deploying a PKI CA is considered "too complicated", using ``--peer-fingerprint`` makes @@ -67,6 +105,14 @@ ``--allow-deprecated-insecure-static-crypto`` but will be removed in OpenVPN 2.8. +Support for wintun Windows driver has been removed. + OpenVPN 2.6 added support for the new dco-win driver, so it supported + three different device drivers: dco-win, wintun, and tap-windows6. + OpenVPN 2.7 now drops the support for wintun driver. By default + all modern configs should be supported by dco-win driver. In all + other cases OpenVPN will fall back automatically to tap-windows6 + driver. + NTLMv1 authentication support for HTTP proxies has been removed. This is considered an insecure method of authentication that uses obsolete crypto algorithms. @@ -78,21 +124,11 @@ ``persist-key`` option has been enabled by default. All the keys will be kept in memory across restart. -Default for ``--topology`` changed to ``subnet`` for ``--mode server`` - Previous releases always used ``net30`` as default. This only affects - configs with ``--mode server`` or ``--server`` (the latter implies the - former), and ``--dev tun``, and only if IPv4 is enabled. - Note that this changes the semantics of ``--ifconfig``, so if you have - manual settings for that in your config but not set ``--topology`` - your config might fail to parse with the new version. Just adding - ``--topology net30`` to the config should fix the problem. - By default ``--topology`` is pushed from server to client. - -OpenSSL 1.0.2 support +OpenSSL 1.0.2 support has been removed. Support for building with OpenSSL 1.0.2 has been removed. The minimum supported OpenSSL version is now 1.1.0. -Compression on send +Compression on send has been removed. OpenVPN 2.7 will never compress data before sending. Decompression of received data is still supported. ``--allow-compression yes`` is now an alias for @@ -100,6 +136,16 @@ User-visible Changes -------------------- +- Default for ``--topology`` changed to ``subnet`` for ``--mode server``. + Previous releases always used ``net30`` as default. This only affects + configs with ``--mode server`` or ``--server`` (the latter implies the + former), and ``--dev tun``, and only if IPv4 is enabled. + Note that this changes the semantics of ``--ifconfig``, so if you have + manual settings for that in your config but not set ``--topology`` + your config might fail to parse with the new version. Just adding + ``--topology net30`` to the config should fix the problem. + By default ``--topology`` is pushed from server to client. + - ``--x509-username-field`` will no longer automatically convert fieldname= s to uppercase. This is deprecated since OpenVPN 2.4, and has now been remove= d. @@ -108,6 +154,14 @@ And finite field Diffie Hellman is in the proces of being deprecated (see draft-ietf-tls-deprecate-obsolete-kex) +- ``--lport 0`` does not imply ``--bind`` anymore. + +- ``--static-challenge`` option now has a third parameter ``format`` that + can change how password and challenge response should be combined. + +- ``--key`` and ``--cert`` now accept URIs if the SSL library supports it, + which is the case for many OpenSSL 3 providers. + Overview of changes in 2.6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1032?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: I80a14b77fcc2fabf51af9f2d5ea0c36362cccb91 Gerrit-Change-Number: 1032 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --enkoLHapZQo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

Changes.rst: Collect, fix, and improve entries for 2.7 relea=
se

Change-Id: I80a14b77fcc2fabf51af9f2d5ea0c36362cccb91
Signed-of= f-by: Frank Lichtenheld <frank@...2641...>
---
M Changes.rst1 file changed, 88 insertions(+), 34 deletions(-)

git pull ssh:=
//gerrit.openvpn.net:29418/openvpn refs/changes/32/1032/1
diff --=
git a/Changes.rst b/Changes.rst
index e297334..c326c0d 1006= 44
--- a/Changes.rst
+++ b/Changes.rst
@@ -2,25 +2,43 @@
=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
New fe= atures
------------
-TLS alerts
- OpenVPN 2.7 will send out TLS alerts to peers informing them if the= TLS
- session shuts= down or when the TLS implementation informs the peer about
- an error in the TLS session (e.g.= mismatching TLS versions). This improves

- the user experience as the client shows an error in= stead of running into
-= a timeout when the server just stops responding completely.
<= span style=3D"color: hsl(120, 100%, 40%);">+Multi-socket support for server= s
+ OpenVPN servers= now can listen on multiple sockets at the same time.
+ Multiple ``--local`` statements in the= configuration can be used to
+ configure this. This way the same server can e.g. listen for U= DP
+ and TCP connec= tions at the same time, or listen on multiple addresses
+ and/or ports.

-Support for tun/tap via un= ix domain socket and lwipovpn support
- To allow better testing and emulating a full client wit= h a full
- network s= tack OpenVPN now allows a program executed to provide
- a tun/tap device instead of opening a d= evice.
+Client implem= entations for DNS options sent by server for Linux/BSD
+ Linux and BSD versions of OpenVPN now= ship with a default ``dns-updown``
+ script that implements proper handling of DNS configurat= ion sent
+ by the s= erver. The scripts should work on systems that use
+ ``systemd`` or ``resolveconf`` to manage = the DNS setup, as well as
+ raw ``/etc/resolv.conf`` files. However, the exact features suppor= ted
+ will depend o= n the configuration method. On Linux this should usually
+ mean that split-DNS configurations = are supported out-of-the-box now.

- The co-developed lwipovpn program based= on lwIP stack allows to
- ``--dev-node unix:/path/to/lwipovpn= `` can emulate a full client that
- can be pinged, can serve a website and more without requiri= ng any
- elevated pe= rmission. This can make testing OpenVPN much easier.
+ Note that this new script will not be = used by default if a ``--up``
+ script is already in use to reduce problems with
+ backwards compatibility.

- For m= ore details see [lwipovpn on Gihtub](https://github.com/OpenVPN/lwipovpn).<= /span>
+ See documentation= for ``--dns-updown`` and ``--dns`` for more details.
+
+New client implementation for DNS options sent by server for= Windows
+ The Wind= ows client now uses NRPT (Name Resolution Policy Table) to
+ handle DNS configurations. This a= dds support for split-DNS and DNSSEC
+ and improves the compatbility with local DNS resolvers.= Requires the
+ int= eractive service.
+
+Support for new versi= on of Linux DCO module
+ main Linux kernel. F= or this process some API changes were required.
+ OpenVPN 2.7 will only support the new API. = The new module is called
+ ``ovpn``. Out-of-tree builds for older kernels are available. Plea= se
+ see the relea= se announcements for futher information.
+
+Support for server mode in win-dco driver
+ On Windows the win-dco driver can now be used i= n server setups.

Enforcement of AES-GCM = usage limit
OpenVPN will now enforce the usage limits = on AES-GCM with the same
@@ -30,11 +48,6 @@

https://datatracker.ietf.org/doc/draft-irtf-cfrg-ae= ad-limits/

-Default ciphers in ``--data-ciphers``
- Ciphers in ``--data-ciphers`` can contain the st= ring DEFAULT that is
- = replaced by the default ciphers used by OpenVPN, making it easier to

- add an allowed cipher= without having to spell out the default ciphers.
-
Epoch data keys and packet fo= rmat
This introduces the epoch data format for AEAD da= ta channel
ciphers in TLS mode ciphers. This new data = format has a number of
@@ -49,6 +62,31 @@
= - IV constructed with XOR instead of concatenation to not have (parts) = of
the real IV on the wire
<= br>+Default ciphers in ``--data= -ciphers``
+ Ciphe= rs in ``--data-ciphers`` can contain the string DEFAULT that is
<= span style=3D"color: hsl(120, 100%, 40%);">+ replaced by the default cip= hers used by OpenVPN, making it easier to

+ add an allowed cipher without having to spell out= the default ciphers.
+
+TLS alerts=
+ OpenVPN 2.7 will send = out TLS alerts to peers informing them if the TLS
+ session shuts down or when the TLS implem= entation informs the peer about
+ an error in the TLS session (e.g. mismatching TLS versions)= . This improves
+ = the user experience as the client shows an error instead of running into
+ a timeout when the= server just stops responding completely.
+
+ To allow better testing = and emulating a full client with a full
+ network stack OpenVPN now allows a program executed= to provide
+ a tu= n/tap device instead of opening a device.
+
+ simulate full IP sta= ck. An OpenVPN client using
+ ``--dev-node unix:/path/to/lwipovpn`` can emulate a full client= that
+ can be pin= ged, can serve a website and more without requiring any
+ elevated permission. This can make = testing OpenVPN much easier.
+
+ For mo= re details see [lwipovpn on Gihtub](https://github.com/OpenVPN/lwipovpn).
+
All= ow overriding username with ``--override-username``
Th= is is intended to allow using auth-gen-token in scenarios where the<= br> clients use certificates and multi-factor authentication. Th= is will
@@ -57,7 +95,7 @@

Deprecated features

-------------------
-``secret`` support has been removed by= default.
+``secret``= support has been removed (by default).
static key mod= e (non-TLS) is no longer considered "good and secure enough"
for today's requirements. Use TLS mode instead. If d= eploying a PKI CA
is considered "too complicated&= quot;, using ``--peer-fingerprint`` makes
@@ -67,6 +105,14 = @@
``--allow-deprecated-insecure-static-crypto`` but w= ill be removed in
OpenVPN 2.8.

+Support for wintun Window= s driver has been removed.
+ OpenVPN 2.6 added support for the new dco-win driver, so it supp= orted
+ three diff= erent device drivers: dco-win, wintun, and tap-windows6.
+ OpenVPN 2.7 now drops the support = for wintun driver. By default
+ all modern configs should be supported by dco-win driver. In = all
+ other cases = OpenVPN will fall back automatically to tap-windows6
+ driver.
+
NTLMv1 authentication support f= or HTTP proxies has been removed.
This is considered a= n insecure method of authentication that uses
obsolete= crypto algorithms.
@@ -78,21 +124,11 @@
`= `persist-key`` option has been enabled by default.
All= the keys will be kept in memory across restart.
-Default for ``--topology`` cha= nged to ``subnet`` for ``--mode server``
- Previous releases always used ``net30`` as default. = This only affects
- = configs with ``--mode server`` or ``--server`` (the latter implies the
- former), and ``--dev t= un``, and only if IPv4 is enabled.
- Note that this changes the semantics of ``--ifconfig``, so= if you have
- manua= l settings for that in your config but not set ``--topology``
- your config might fail to parse= with the new version. Just adding

- ``--topology net30`` to the config should fix the problem.=
- By default ``--to= pology`` is pushed from server to client.
-
-O= penSSL 1.0.2 support
= +OpenSSL 1.0.2 support has been removed.
Support for b= uilding with OpenSSL 1.0.2 has been removed. The minimum
= supported OpenSSL version is now 1.1.0.

-Compression on send

+Compression on send has been removed= .
OpenVPN 2.7 will never compress data before sending.= Decompression of
received data is still supported.
``--allow-compression yes`` is now an alias for@@ -100,6 +136,16 @@

User-visibl= e Changes
--------------------
+- Default for ``--topology`` changed to ``subne= t`` for ``--mode server``.
+ Previous releases always used ``net30`` as default. This only affe= cts
+ configs with `= `--mode server`` or ``--server`` (the latter implies the
+ former), and ``--dev tun``, and only= if IPv4 is enabled.
= + Note that this changes the semantics of ``--ifconfig``, so if you have
+ manual settings for= that in your config but not set ``--topology``
+ your config might fail to parse with the new = version. Just adding
= + ``--topology net30`` to the config should fix the problem.
+ By default ``--topology`` is pu= shed from server to client.

+
- ``--x509-username-field`` will no longer automa= tically convert fieldnames to
uppercase. This is depreca= ted since OpenVPN 2.4, and has now been removed.
@@ -108,6 +154,14 @@
And finite field Diffie Hel= lman is in the proces of being deprecated
(see draft-iet= f-tls-deprecate-obsolete-kex)

+- ``--lport 0`` does not imply ``--bind`` anymo= re.
+
+- ``--static-challenge`` option now= has a third parameter ``format`` that

+ can change how password and challenge response should = be combined.
+=
+- ``--key`` and ``--cert``= now accept URIs if the SSL library supports it,
+ which is the case for many OpenSSL 3 provide= rs.
+
Overview of changes in 2.6

=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D


To view, visit change 1032. To unsubscribe, or f= or help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I80a14b77fcc2fabf51af9f2d5ea= 0c36362cccb91
Gerrit-Change-Number: 1032
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newchange
--enkoLHapZQo=--