From: "flichtenheld (Code Review)"
Date: Tue, 27 May 2025 09:24:35 +0000
In-Reply-To:
References:
Reply-To: frank@...2641..., arne-openvpn@...1227...,
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="TJn1njTMEpE="; 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 , stipa
--TJn1njTMEpE=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, plaisthos.
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 (#2).
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, 117 insertions(+), 34 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/32/1032/2
diff --git a/Changes.rst b/Changes.rst
index e297334..e3359c1 100644
--- a/Changes.rst
+++ b/Changes.rst
@@ -2,25 +2,54 @@
=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).
+
+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 +59,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 +73,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 +122,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 +141,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 +153,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 +171,26 @@
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 if the SSL library supports it,
+ which is the case for many OpenSSL 3 providers.
+
+- 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: 2
Gerrit-Owner: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: cron2
Gerrit-CC: openvpn-devel
Gerrit-CC: stipa
Gerrit-Attention: plaisthos
Gerrit-Attention: cron2
Gerrit-Attention: flichtenheld
Gerrit-MessageType: newpatchset
--TJn1njTMEpE=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, plaisthos. <=
/p>
flichtenheld uploaded patch set #2 to this change.
diff --git a/C=
hanges.rst b/Changes.rst index e297334..e3359c1 100644 --- a/Changes.rst +++ b/Changes.rst <=
span>@@ -2,25 +2,54 @@ =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=
span> - 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 Firewall=
, + making sure pac=
kets can't be sent to the local network. + This provides stronger protection against Tunne=
lCrack-style attacks. + +Windows network a=
dapters are now generated on demand + This means that on systems that run multiple OpenVPN con=
nections at + the s=
ame time the users don't need to manually create enough network<=
br>+ adapters anymore (in add=
ition to the ones created by the installer). + +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.<=
/span> + OpenVPN 2.7 will=
only support the new API. The new module is called + ``ovpn``. Out-of-tree builds for olde=
r 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. <=
span> Enforcement of AES-GCM usage limit OpenVPN will =
now enforce the usage limits on AES-GCM with the same @@ -3=
0,11 +59,6 @@ https://datatracker.ie=
tf.org/doc/draft-irtf-cfrg-aead-limits/ -Default ciphers in ``--data-ciphers``=
span> - Ciphers in ``--data=
-ciphers`` can contain the string DEFAULT that is - replaced by the default ciphers used by Ope=
nVPN, making it easier to - add an allowed cipher without having to spell out the default ciphe=
rs. - =
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 +73,46 @@ - IV constructed with XOR instead of conc=
atenation to not have (parts) of the real IV on the =
wire +Default ciphers in ``--data-ciphers`` + Ciphers in ``--data-ciphers`` can contain the stri=
ng DEFAULT that is + =
replaced by the default ciphers used by OpenVPN, making it easier to + add an allowed ciph=
er without having to spell out the default ciphers. + +TLS alerts + OpenVPN 2.7 will send out TLS alerts to peers informing them if t=
he TLS + session s=
huts down or when the TLS implementation informs the peer about <=
span style=3D"color: hsl(120, 100%, 40%);">+ 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.=
span> + +Support for tun/tap via unix domain sock=
et and lwipovpn support + To allow better testing and emulating a full client with a full + network stack OpenV=
PN now allows a program executed to provide + a tun/tap device instead of opening a device.=
span> + + The co-developed lwipovpn program ba=
sed on lwIP stack allows to + simulate full IP stack. An OpenVPN client using + ``--dev-node unix:/path/to/lwip=
ovpn`` can emulate a full client that + can be pinged, can serve a website and more without r=
equiring any + ele=
vated 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-us=
ername`` This is intended to allow using auth-gen-toke=
n 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 loggin=
g of IPv6 addresses were fixed. The feature now allows + IPv6 connections towards the proxy r=
eceiver. + =
+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) i=
s no longer considered "good and secure enough" =
for today's requirements. Use TLS mode instead. If deploying a PK=
I CA is considered "too complicated", using =
``--peer-fingerprint`` makes @@ -67,6 +122,14 @@ =
``--allow-deprecated-insecure-static-crypto`` but will be remove=
d in OpenVPN 2.8. +Support for wintun Windows driver has =
been removed. + Op=
enVPN 2.6 added support for the new dco-win driver, so it supported<=
br>+ three different device =
drivers: dco-win, wintun, and tap-windows6. + OpenVPN 2.7 now drops the support for wintun dr=
iver. 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 proxie=
s has been removed. This is considered an insecure met=
hod of authentication that uses obsolete crypto algori=
thms. @@ -78,21 +141,11 @@ ``persist-key``=
option has been enabled by default. All the keys will=
be kept in memory across restart. -Default for ``--topology`` changed to ``sub=
net`` for ``--mode server`` - Previous releases always used ``net30`` as default. This only aff=
ects - configs with =
``--mode server`` or ``--server`` (the latter implies the - former), and ``--dev tun``, and onl=
y if IPv4 is enabled. -=
Note that this changes the semantics of ``--ifconfig``, so if you have<=
/span> - manual settings fo=
r 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 p=
ushed 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. <=
span> OpenVPN 2.7 will never compress data before sending. Decompressio=
n of received data is still supported. ``--allow-compression yes`` is now an alias for @@ -1=
00,6 +153,16 @@ User-visible Changes -------------------- +- Default for ``--topology`` changed to ``subnet`` for ``--m=
ode server``. + Prev=
ious releases always used ``net30`` as default. This only affects + configs with ``--mode serve=
r`` or ``--server`` (the latter implies the + former), and ``--dev tun``, and only if IPv4 is e=
nabled. + 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 + ``--topolo=
gy net30`` to the config should fix the problem. + By default ``--topology`` is pushed from ser=
ver to client. + - ``--x509-username-field`` will no longer automatically conve=
rt fieldnames to uppercase. This is deprecated since Ope=
nVPN 2.4, and has now been removed. @@ -1=
08,6 +171,26 @@ And finite field Diffie Hellman is in th=
e proces of being deprecated (see draft-ietf-tls-depreca=
te-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.<=
/span> + +- ``--static-challenge`` option now has=
a third parameter ``format`` that + can change how password and challenge response should be c=
ombined. + =
+- ``--key`` and ``--cert`` now=
accept URIs if the SSL library supports it, + which is the case for many OpenSSL 3 providers.<=
/span> + +- TLS handshake debugging information c=
ontains much more details now when + using recent versions of OpenSSL. + +- The ``IV_PLAT_VER`` variable sent by Windows clients now c=
ontains the + full W=
indows build version to make it possible to determine the + Windows 10 or Windows 11 version us=
ed. + 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.