From: "plaisthos (Code Review)" Date: Thu, 17 Jul 2025 09:43:55 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="9RPE3IrHrTg="; 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 --9RPE3IrHrTg= 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: Code-Review-2 (6 comments) Patchset: PS2: I think there are still some things that need to be fixed. See comments File src/openvpn/multi.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/7be28da8_ce83b435 : PS2, Line 1816: uint32_t peer_id =3D extract_asymmetric_peer_id(pee= r_info); I am somehow missing the client side/p2p that does the same and also calls = extract_asymmetric_peer_id to figure out what peer-id the server wants to u= se. File src/openvpn/push.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/ad29de27_05d54fe8 : PS2, Line 657: tls_multi->rx_peer_id); This will instruct the client to use that peer-id on both send/receive. The= idea was to *not* push peer-id in this scenario but rather have both sides= see that if the other peer has ID=3D in their peerinfo then they both swit= ch to assymmetric peer-id File src/openvpn/ssl.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/231475b7_833b9982 : PS2, Line 2043: buf_printf(&out, "ID=3D%x\n", peer_id); This need to be guarded by the actual DCO capability. We cannot announce th= is if the DCO module/implementation then cannot actually support assymetric= ID support. File src/openvpn/ssl_ncp.c: http://gerrit.openvpn.net/c/openvpn/+/1089/comment/5800ddd8_05764f00 : PS2, Line 431: multi->tx_peer_id =3D 2033; Why the hardcoded 2033 here? Shouldn't be also 0x76706e; /* 'v' 'p' 'n' */= ? http://gerrit.openvpn.net/c/openvpn/+/1089/comment/5a725408_1afd7517 : PS2, Line 474: multi->rx_peer_id =3D (peerid[0] << 16) + (p= eerid[1] << 8) + peerid[2]; Shouldn't there be code here -- 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: Thu, 17 Jul 2025 09:43:55 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --9RPE3IrHrTg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, its_Giaan.

Patch set 2:Code-Review -2=

V= iew Change

6 comments:

  • Patchset:

    • Patch Set #2:

      I think there are still some things that ne= ed to be fixed. See comments

  • File src/openvpn/multi.c:

    • Patch Set #2, Line 1816: uint32_t peer_id =3D extract_asymmetric_peer_= id(peer_info);

      I am somehow missing the client side/p2p that does the same and al= so calls extract_asymmetric_peer_id to figure out what peer-id the server w= ants to use.

  • File= src/openvpn/push.c:

    • Patch Set #2, Line 657: tls_multi->rx_peer_id);

      This will instruct the c= lient to use that peer-id on both send/receive. The idea was to *not* push = peer-id in this scenario but rather have both sides see that if the other p= eer has ID=3D in their peerinfo then they both switch to assymmetric peer-i= d

  • File src/openvp= n/ssl.c:

    • Patch Set= #2, Line 2043: = buf_printf(&out, "ID=3D%x\n", peer_id);

      This need to be guarded = by the actual DCO capability. We cannot announce this if the DCO module/imp= lementation then cannot actually support assymetric ID support.

    • File src/openvpn/ssl_ncp.c:<= /p>

      • Patch Set #2, Line= 431: multi->= ;tx_peer_id =3D 2033;

        Why the hardcoded 2033 here? Shouldn't be also 0x7670= 6e; /* 'v' 'p' 'n' */ ?

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

        Shouldn't there be code here

    To= view, visit change 1089. To unsubscribe, or for help writing mail filters, vis= it 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: Thu, 17 Jul 2025 09:43:55= +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment
    --9RPE3IrHrTg=--