From: "flichtenheld (Code Review)" Date: Wed, 28 May 2025 09:40:40 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, lstipakov@...277..., gert@...1296... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="RVHt8H2GrG8="; 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 , selvanair , stipa --RVHt8H2GrG8= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, plaisthos, selvanair, stipa. Hello plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1032?usp=3Demail to look at the new patch set (#5). 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, 130 insertions(+), 34 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/32/1032/5 diff --git a/Changes.rst b/Changes.rst index e297334..eb3d65b 100644 --- a/Changes.rst +++ b/Changes.rst @@ -2,25 +2,58 @@ =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. + +On Windows the ``block-local`` flag is now enforced with WFP filters. + The ``block-local`` flag to ``--redirect-gateway`` and + ``--redirect-private`` is now also enforced via the Windows Firewall, + making sure packets can't be sent to the local network. + This provides stronger protection against TunnelCrack-style attacks. + +Windows network adapters are now generated on demand + This means that on systems that run multiple OpenVPN connections at + the same time the users don't need to manually create enough network + adapters anymore (in addition to the ones created by the installer). + +Windows automatic service now runs as an unpriviledged user + All tasks that need privileges are now delegated to 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 +63,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,15 +77,46 @@ - 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 also generate a 'push "auth-token-user newusername"' directives in push replies. +``--port-share`` now properly supports IPv6 + Issues with logging of IPv6 addresses were fixed. The feature now allo= ws + IPv6 connections towards the proxy receiver. + +Support for Haiku OS + 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 +126,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,28 +145,34 @@ ``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 +Support for mbedTLS older than 2.18.0 has been removed. + We now require all SSL libraries to have support for exporting + keying material. The only previously supported library versions + this affects are older mbedTLS releases. + +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 ``--allow-compression asym``. + 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 +181,29 @@ 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. + +- ``--redirect--gateway`` now works correctly if the VPN remote is not + reachable by the default gateway. + +- ``--show-gateway`` now supports querying the gateway for IPv4 addresses. + +- ``--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 implemented in OpenSSL 3 as wel= l as + optional OpenSSL 3 providers loaded using ``--providers`` option. + +- ``--cryptoapicert`` now supports issuer name as well as Windows CA templ= ate + name or OID as selector string. + +- TLS handshake debugging information contains much more details now when + using recent versions of OpenSSL. + +- The ``IV_PLAT_VER`` variable sent by Windows clients now contains the + full Windows build version to make it possible to determine the + Windows 10 or Windows 11 version used. + 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: 5 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-CC: selvanair Gerrit-CC: stipa Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: selvanair Gerrit-Attention: stipa Gerrit-MessageType: newpatchset --RVHt8H2GrG8= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, plaisthos, selvanair, stip= a.

flichtenheld uploaded patch set #5 to this change.

<= p>View C= hange

Changes.rst: Collect, fix, and improve entries for 2.7 release
Change-Id: I80a14b77fcc2fabf51af9f2d5ea0c36362cccb91
Signed-off-by:= Frank Lichtenheld <frank@...2641...>
---
M Changes.rst
1 fi= le changed, 130 insertions(+), 34 deletions(-)

git pull ssh://ger=
rit.openvpn.net:29418/openvpn refs/changes/32/1032/5
diff --git a/C=
hanges.rst b/Changes.rst
index e297334..eb3d65b 100644
--- a/Changes.rst
+++ b/Changes.rst
<= span>@@ -2,25 +2,58 @@

=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 about
- an error in the TLS session (e.g. misma= tching 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.
+Multi-socket support for servers
+ OpenVPN servers now = can listen on multiple sockets at the same time.
+ Multiple ``--local`` statements in the con= figuration can be used to
+ configure this. This way the same server can e.g. listen for UDP<= /span>
+ and TCP connecti= ons at the same time, or listen on multiple addresses
+ and/or ports.

-Support for tun/tap via uni= x domain socket and lwipovpn support
- To allow better testing and emulating a full client with= a full
- network st= ack 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 no= w ship with a default ``dns-updown``
+ script that implements proper handling of DNS configur= ation sent
+ by th= e server. The scripts should work on systems that use
+ ``systemd`` or ``resolveconf`` to man= age the DNS setup, as well as
+ raw ``/etc/resolv.conf`` files. However, the exact features s= upported
+ will de= pend on the configuration method. On Linux this should usually
+ mean that split-DNS configur= ations 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/lwi= povpn`` can emulate a full client that

- can be pinged, can serve a website and more without re= quiring any
- elevat= ed permission. This can make testing OpenVPN much easier.
+ Note that this new script will no= t be used by default if a ``--up``
+ script is already in use to reduce problems with<= br>+ backwards compatibility= .

- = For more details see [lwipovpn on Gihtub](https://github.com/OpenVPN/lwip= ovpn).
+ See docum= entation for ``--dns-updown`` and ``--dns`` for more details.
+

+New client implementation for DNS options sent by se= rver for Windows
+ = The Windows client now uses NRPT (Name Resolution Policy Table) to<= br>+ handle DNS configuratio= ns. This adds support for split-DNS and DNSSEC
+ and improves the compatbility with local DNS= resolvers. Requires the
+ interactive service.
+
+On Window= s the ``block-local`` flag is now enforced with WFP filters.
+ The ``block-local`` flag to ``= --redirect-gateway`` and

+ ``--redirect-private`` is now also enforced via the Windows Firewa= ll,
+ making sure = packets can't be sent to the local network.
+ This provides stronger protection against T= unnelCrack-style attacks.
+
+Windows netwo= rk adapters are now generated on demand
+ This means that on systems that run multiple OpenVP= N connections at
+ = the same time the users don't need to manually create enough network
+ adapters anymore = (in addition to the ones created by the installer).
+
+Windows automatic service now runs as an unpriviledged user<= /span>
+ All tasks that n= eed privileges are now delegated to 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 requir= ed.
+ OpenVPN 2.7 = will only support the new API. The new module is called
+ ``ovpn``. Out-of-tree builds for ol= der 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 wi= ll now enforce the usage limits on AES-GCM with the same
@@= -30,11 +63,6 @@

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

-Default ciphers in ``--data-ciphers`= `

- Ciphers in ``--d= ata-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 c= iphers.
-
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,15 +77,46 @@
- 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
+ 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 about+ an error in the TLS sessi= on (e.g. mismatching TLS versions). This improves
+ the user experience as the client shows a= n error instead of running into
+ a timeout when the server just stops responding completely.=
+
+Support for tun/tap via unix domain so= cket and lwipovpn support
+ To allow better testing and emulating a full client with a full
+ network stack Ope= nVPN 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/lw= ipovpn`` can emulate a full client that

+ can be pinged, can serve a website and more without= requiring any
+ e= levated permission. This can make testing OpenVPN much easier.
+

+ For more details see [lwipovpn on Gihtub](https= ://github.com/OpenVPN/lwipovpn).
+
Allow overriding username with ``--override-= username``
This is intended to allow using auth-gen-to= ken in scenarios where the
clients use certificates an= d multi-factor authentication. This will
also generat= e a 'push "auth-token-user newusername"' directives in
push replies.

+``--port-share`` now properly supports IPv6<= /span>
+ Issues with logg= ing of IPv6 addresses were fixed. The feature now allows
+ IPv6 connections towards the proxy= receiver.
++Support for Haiku OS<= br>+
Deprecate= d features
-------------------
-``secret`` support has been removed by default.
+``secret`` support ha= s been removed (by default).
static key mode (non-TLS)= is no longer considered "good and secure enough"
for today's requirements. Use TLS mode instead. If deploying a = PKI CA

is considered "too complicated", usin= g ``--peer-fingerprint`` makes
@@ -67,6 +126,14 @@ ``--allow-deprecated-insecure-static-crypto`` but will be remo= ved in
OpenVPN 2.8.

+Support for wintun Windows driver ha= s been removed.
+ = OpenVPN 2.6 added support for the new dco-win driver, so it supported
+ three different devic= e 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<= br>+ other cases OpenVPN wil= l fall back automatically to tap-windows6
+ driver.
+
NTLMv1 authentication support for HTTP prox= ies has been removed.
This is considered an insecure m= ethod of authentication that uses
obsolete crypto algo= rithms.
@@ -78,28 +145,34 @@
``persist-key= `` option has been enabled by default.
All the keys wi= ll be kept in memory across restart.

-Default for ``--topology`` changed to ``su= bnet`` for ``--mode server``
- Previous releases always used ``net30`` as default. This only af= fects
- configs with= ``--mode server`` or ``--server`` (the latter implies the
- former), and ``--dev tun``, and on= ly if IPv4 is enabled.
= - Note that this changes the semantics of ``--ifconfig``, so if you have=
- manual settings f= or that in your config but not set ``--topology``
- your config might fail to parse with the ne= w version. Just adding
= - ``--topology net30`` to the config should fix the problem.
<= span style=3D"color: hsl(0, 100%, 40%);">- 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
+Support for mbedTLS older than 2.18.0 has been r= emoved.
+ We now r= equire all SSL libraries to have support for exporting
+ keying material. The only previously= supported library versions
+ this affects are older mbedTLS releases.
+
+Compression on send has been removed.
O= penVPN 2.7 will never compress data before sending. Decompression of=
received data is still supported.
``--a= llow-compression yes`` is now an alias for
``--allow-c= ompression asym``.

+
User-visible Changes
--= ------------------
+-= Default for ``--topology`` changed to ``subnet`` for ``--mode server``.
+ Previous releases al= ways used ``net30`` as default. This only affects
+ configs with ``--mode server`` or ``--serve= r`` (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 th= e config should fix the problem.
+ By default ``--topology`` is pushed from server to client.
+
- `= `--x509-username-field`` will no longer automatically convert fieldnames to=
uppercase. This is deprecated since OpenVPN 2.4, and ha= s now been removed.

@@ -108,6 +181,29 @@<= /span>
And finite field Diffie Hellman is in the proces of bein= g deprecated
(see draft-ietf-tls-deprecate-obsolete-kex)=

+-= ``--lport 0`` does not imply ``--bind`` anymore.
+
+- ``--redirect--gateway`` now works correctly if the VPN remote = is not
+ reachable b= y the default gateway.
+- ``--show-gatew= ay`` now supports querying the gateway for IPv4 addresses.
+
+- ``--static-challenge`` option now has a third paramet= er ``format`` that
+ = can change how password and challenge response should be combined.<= br>+
+- ``--key`` and ``--cert`` now accept URIs imp= lemented in OpenSSL 3 as well as
+ optional OpenSSL 3 providers loaded using ``--providers`` op= tion.
+
+- ``--cryptoapicert`` now support= s issuer name as well as Windows CA template

+ name or OID as selector string.
+
+- TLS handshake debugging information contains much mor= e details now when
+= using recent versions of OpenSSL.
+
+- T= he ``IV_PLAT_VER`` variable sent by Windows clients now contains the=
+ full Windows build versi= on to make it possible to determine the
+ Windows 10 or Windows 11 version used.
+

Overview of chan= ges 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 for help writing ma= il filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I80a14b77fcc2fabf51af9f2d5ea= 0c36362cccb91
Gerrit-Change-Number: 1032
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-CC: selvanair <selva.nair@...277...&= gt;
Gerrit-CC: stipa <lstipakov@...277...> <= /div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: selvanair <selva.nair@...493...= 277...>
Gerrit-Attention: stipa <lstipakov@...1663...= .>
Gerrit-MessageType: newpatchset
--RVHt8H2GrG8=--