From: "mattock (Code Review)" Date: Wed, 26 Mar 2025 12:24:10 +0000 In-Reply-To: References: Reply-To: sasepp@...2783..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: <050873f8bc9fb3881181a123c8c731ade95d06bb-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="bQXV5h9fcLo="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: t_server_null_default.rc: Add some tests with --data-ciphers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --bQXV5h9fcLo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. mattock has posted comments on this change. ( http://gerrit.openvpn.net/c/o= penvpn/+/847?usp=3Demail ) Change subject: t_server_null_default.rc: Add some tests with --data-ciphers ...................................................................... Patch Set 2: (3 comments) Patchset: PS2: I believe this works as intended. I added a comment about the inconsistency= in order of the ciphers (see below), but I think that does not cause any p= roblems in practice File tests/t_server_null_default.rc: http://gerrit.openvpn.net/c/openvpn/+/847/comment/fd61574c_bf9c83bc : PS2, Line 109: CLIENT_CONF_4a=3D"${CLIENT_CONF_BASE} --remote 127.0.0.1 119= 4 udp --proto udp --cipher AES-128-CBC --data-ciphers AES-192-CBC:DEFAULT" The inconsistency in --data-ciphers between server (DEFAULT:AES-192-CBC) an= d this client (AES-192-CBC:DEFAULT) looked off, so I checked the implicatio= ns just in case. The --data-ciphers setting is expanded as AES-256-GCM:AES-128-GCM:AES-192-C= BC (server) and AES-192-CBC:AES-256-GCM:AES-128-GCM (client). The man page tells this: "For servers, the first cipher from cipher-list that is also supported by t= he client will be pushed to clients that support cipher negotiation." Also, in OpenVPN 2.6.0 and later (as in here), the --cipher setting is igno= red in TLS mode. As --cipher is different for the server and this client, t= his seems to test the "does --cipher get ignored" part. If I'm reading this= right, the server tries to push AES-256-GCM first and as the client also h= as AES-256-GCM, that cipher is chosen. AES-192-CBC, despite being in both l= ists, is not chosen. http://gerrit.openvpn.net/c/openvpn/+/847/comment/346e5108_279f06cb : PS2, Line 123: CLIENT_CONF_4c=3D"${CLIENT_CONF_BASE} --remote 127.0.0.1 119= 6 udp --proto udp --cipher AES-192-CBC --data-ciphers AES-128-CBC" This seems to fail correctly, as server does not have AES-128-CBC enabled. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/847?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: I47d95eee8a00b9878331fd6cd6a7db12665f5537 Gerrit-Change-Number: 847 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: mattock Gerrit-Reviewer: plaisthos Gerrit-CC: cron2 Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Wed, 26 Mar 2025 12:24:10 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --bQXV5h9fcLo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

View C= hange

3 comments:

To view, visit change 847. To unsubscribe, or for help writing mail filt= ers, visit settings.

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I47d95eee8a00b9878331fd6cd6a= 7db12665f5537
Gerrit-Change-Number: 847
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: mattock <sasepp@...2783...= >
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: cron2 <gert@...1296...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Wed, 26 Mar 2025 12:24:10= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--bQXV5h9fcLo=--