From: "plaisthos (Code Review)" Date: Tue, 5 Aug 2025 12:22:11 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <8390654e74e78b1c6c5f074bf1b49d08a5521628-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="x04Sl0PU2lU="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: multipeer: introduce asymmetric peer-id List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: its_Giaan Cc: flichtenheld , openvpn-devel --x04Sl0PU2lU= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, its_Giaan. plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c= /openvpn/+/1089?usp=3Demail ) Change subject: multipeer: introduce asymmetric peer-id ...................................................................... Patch Set 2: (2 comments) File src/openvpn/push.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/098ded6f_b8a7adfd : PS2, Line 657: tls_multi->rx_peer_id); > ok but what about the mapping? we're using the current peer-id assigned b= y the server as index to ke [=E2=80=A6] Yes, but the idea of the protocol is: - server pushes peer-id: client uses *same* peer-id for send and receive. - server pushes nothing but has ID=3D in its own peer-info, client reconigs= es that the peer is supporting assymetric peer-id and uses the peer's ID fo= r sending packets and expecting the id the ID it send in peerinfo for incom= ing packets. File src/openvpn/ssl_ncp.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/d2c5201c_e34ffb2d : PS2, Line 474: multi->rx_peer_id =3D (peerid[0] << 16) + (p= eerid[1] << 8) + peerid[2]; > So you're saying we should keep the peer_id field and also the rx_peer_id= and tx_peer_id but use the [=E2=80=A6] I missing the code that implements the asymmetric peer-id here completely i= s what I am saying. Either the code to parse the ID=3Dxyz of the peer is co= mpletely missing or I overlooked it. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1089?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: I0a13ee90b6706acf20eabcee3bab3f2dff639bf9 Gerrit-Change-Number: 1089 Gerrit-PatchSet: 2 Gerrit-Owner: its_Giaan Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: its_Giaan Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 05 Aug 2025 12:22:11 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: plaisthos Comment-In-Reply-To: its_Giaan Gerrit-MessageType: comment --x04Sl0PU2lU= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, its_Giaan.

View = Change

2 comments:

  • File src/openvpn/push.c:

    • Patch Set #2, Line 657:= tl= s_multi->rx_peer_id);

      ok but what about the mappin= g? we're using the current peer-id assigned by the server as index to k= e [=E2=80=A6]

      Yes, but the idea of the protocol is:

      • server pushe= s peer-id: client uses *same* peer-id for send and receive.
      • server = pushes nothing but has ID=3D in its own peer-info, client reconigses that t= he peer is supporting assymetric peer-id and uses the peer's ID for sen= ding packets and expecting the id the ID it send in peerinfo for incoming p= ackets.
  • Fil= e src/openvpn/ssl_ncp.c:

      Patch Set #2, Line 474: multi->rx_peer_id =3D (peerid[0] << 16) + = (peerid[1] << 8) + peerid[2];

      So you're say= ing we should keep the peer_id field and also the rx_peer_id and tx_peer_id= but use the [=E2=80=A6]

      I missing the code that implements the asymmetric = peer-id here completely is what I am saying. Either the code to parse the I= D=3Dxyz of the peer is completely missing or I overlooked it.

    =

To view, visit change 1089. To unsubscribe, or for help writing ma= il filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0a13ee90b6706acf20eabcee3ba= b3f2dff639bf9
Gerrit-Change-Number: 1089
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: its_Giaan <gianmarco@...1665...= 726...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 05 Aug 2025 12:22:11= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: plaisthos <arne-openvp= n@...1227...>
Comment-In-Reply-To: its_Giaan <gianmarco@...220...= ..2726...>
Gerrit-MessageType: comment
--x04Sl0PU2lU=--