]> git.ipfire.org Git - thirdparty/openvpn.git/commit
dco linux: avoid sending local port to ovpn
authorRalf Lici <ralf@mandelbit.com>
Wed, 25 Jun 2025 16:26:31 +0000 (18:26 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 25 Jun 2025 16:33:35 +0000 (18:33 +0200)
commit6c2bd6be4f8ac4f0b25aa05e2d5eb9bf6b736cd1
tree69ff24dd842bc3adbf58679e924b1b998155bfc6
parent1d3c2b67a73a0aa011c13e62f876d24e49d41df0
dco linux: avoid sending local port to ovpn

When sending an OVPN_CMD_NEW_PEER netlink message to ovpn, we currently
attempt to include the local port along with the local address. However,
`dco_multi_get_localaddr()` does not record the port, so we end up
sending a zero value. This zero is rejected by ovpn's netlink policy,
leading to an error and aborted connection.

Since openvpn does not actually need to send the local port because the
module retrieves it directly from the socket, this commit ensures that
only the local address is sent.

Change-Id: I5d9535d46e5a5488f4a2b637a6fcb99aad668fee
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Acked-by: Antonio Quartulli <antonio@mandelbit.com>
Message-Id: <20250625162638.7769-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg31971.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/dco_linux.c