From: "cron2 (Code Review)" Date: Mon, 13 Oct 2025 10:42:09 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., marco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <7dfe87d83129a1168c51f1fa9a3c258227b7dedf-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="nrUIKVsAals="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: PUSH_UPDATE server: remove old IP(s) from vhash after sending a messa... List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mrbff Cc: plaisthos , flichtenheld , openvpn-devel --nrUIKVsAals= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, mrbff, plaisthos. cron2 has posted comments on this change by mrbff. ( http://gerrit.openvpn.= net/c/openvpn/+/1253?usp=3Demail ) The change is no longer submittable: Code-Review is unsatisfied now. Change subject: PUSH_UPDATE server: remove old IP(s) from vhash after sendi= ng a message containing ifconfig(-ipv6) ...................................................................... Patch Set 4: Code-Review-1 (1 comment) Patchset: PS4: Aaaah, partly there. So, the *first* "PUSH_UPDATE,ifconfig..." works as expected - new IP address is pinging - old IP address is logged as "unlearn_addr()" - packets for new IP are sent to the client, packets for old IP are no lon= ger sent (verified with tcpdump on the client tun) This works for both IPv4 and IPv6. Then, another "PUSH_UPDATE,ifconfig..." and it correctly learns the "new ne= w" IP address, but does not unlearn the second address, and tcpdump shows p= ackets for 2 IPs arrive (.99 is the "first PUSH_UPDATE", .146 is the "secon= d PUSH_UPDATE") ``` 12:39:48.791099 IP 10.204.2.1 > 10.204.2.99: ICMP echo request, id 50521, s= eq 90, length 64 12:39:48.791109 IP 10.204.2.1 > 10.204.2.99: ICMP echo request, id 50521, s= eq 90, length 64 12:39:48.791122 IP 10.204.2.1 > 10.204.2.146: ICMP echo request, id 64784, = seq 90, length 64 ``` packets are logged twice because the client has routing enabled and just se= nds the packet back (the server will then log `MULTI: bad source address fr= om client [10.204.2.1], packet dropped`). -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1253?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I07a8ddd9026eef64b6f5abde98702a9801616a5f Gerrit-Change-Number: 1253 Gerrit-PatchSet: 4 Gerrit-Owner: mrbff Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: mrbff Gerrit-Comment-Date: Mon, 13 Oct 2025 10:42:09 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --nrUIKVsAals= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, mrbff, plaisthos.

Patch set 4:Code-Review -1=

The change is no longer submittable: Code-Review is unsatisfied now.=

V= iew Change

1 comment:

  • Patchset:

    • Patch Set #4:

      Aaaah, part= ly there.

      So, the *first* "PUSH_UPDATE,ifconfig...&qu=
      ot; works as expected
      - new IP address is pinging
      - old IP address = is logged as "unlearn_addr()"
      - packets for new IP are sent t= o the client, packets for old IP are no longer sent (verified with tcpdump= on the client tun)

      This works for both IPv4 and IPv6.

      Then= , another "PUSH_UPDATE,ifconfig..." and it correctly learns the &= quot;new new" IP address, but does not unlearn the second address, and= tcpdump shows packets for 2 IPs arrive (.99 is the "first PUSH_UPDATE= ", .146 is the "second PUSH_UPDATE")

      ```
      12:39:48.7= 91099 IP 10.204.2.1 > 10.204.2.99: ICMP echo request, id 50521, seq 90, = length 64
      12:39:48.791109 IP 10.204.2.1 > 10.204.2.99: ICMP echo requ= est, id 50521, seq 90, length 64
      12:39:48.791122 IP 10.204.2.1 > 10.2= 04.2.146: ICMP echo request, id 64784, seq 90, length 64
      ```

      packets= are logged twice because the client has routing enabled and just sends the= packet back (the server will then log `MULTI: bad source address from clie= nt [10.204.2.1], packet dropped`).

To view, visit= change = 1253. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I07a8ddd9026eef64b6f5abde987= 02a9801616a5f
Gerrit-Change-Number: 1253
Gerrit-PatchSet: 4
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: mrbff <marco@...2726...&g= t;
Gerrit-Comment-Date: Mon, 13 Oct 2025 10:42:09= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --nrUIKVsAals=--