From: "ralf_lici (Code Review)"
Date: Fri, 17 Oct 2025 15:20:56 +0000
In-Reply-To:
References:
Reply-To: ralf@...2726..., arne-openvpn@...1227...,
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="Mr0w6o7xt1o="; charset=UTF-8
Subject: [Openvpn-devel] [S] Change in openvpn[master]: options: warn and
ignore --reneg-bytes/pkts when DCO is enabled
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: plaisthos , flichtenheld
Cc: openvpn-devel
--Mr0w6o7xt1o=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos.
Hello flichtenheld, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/1280?usp=3Demail
to look at the new patch set (#3).
Change subject: options: warn and ignore --reneg-bytes/pkts when DCO is ena=
bled
......................................................................
options: warn and ignore --reneg-bytes/pkts when DCO is enabled
Thresholds specified by --reneg-bytes and --reneg-pkts cannot be
enforced when DCO is enabled, as it only provides global statistics.
Rather than adding complexity to support these options, ignore them when
DCO is enabled. Print a warning to inform users and update the manpage
accordingly.
Change-Id: I7b718a14b81e3759398e7a52fe151102494cc821
Signed-off-by: Ralf Lici
---
M doc/man-sections/renegotiation.rst
M src/openvpn/options.c
2 files changed, 23 insertions(+), 4 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/80/1280/3
diff --git a/doc/man-sections/renegotiation.rst b/doc/man-sections/renegoti=
ation.rst
index 1e7c340..f5eb90d 100644
--- a/doc/man-sections/renegotiation.rst
+++ b/doc/man-sections/renegotiation.rst
@@ -19,10 +19,18 @@
the SWEET32 attack vector. For more information see the ``--cipher``
option.
+ When data channel offload (DCO) is enabled, this option is ignored. DCO
+ does not support configurable renegotiation thresholds; automatic key
+ renegotiation mechanisms are sufficient for modern ciphers.
+
--reneg-pkts n
Renegotiate data channel key after **n** packets sent and received
(disabled by default).
+ When data channel offload (DCO) is enabled, this option is ignored. DCO
+ does not support configurable renegotiation thresholds; automatic key
+ renegotiation mechanisms are sufficient for modern ciphers.
+
--reneg-sec args
Renegotiate data channel key after at most ``max`` seconds
(default :code:`3600`) and at least ``min`` seconds (default is 90% of
diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 44f68c7..65c6b3b 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -3317,11 +3317,22 @@
dns_options_verify(M_FATAL, &o->dns_options);
- if (dco_enabled(o) && o->enable_c2c)
+ if (dco_enabled(o))
{
- msg(M_WARN, "Note: --client-to-client has no effect when using dat=
a "
- "channel offload: packets are always sent to the VPN "
- "interface and then routed based on the system routing=
table");
+ if (o->enable_c2c)
+ {
+ msg(M_WARN, "Note: --client-to-client has no effect when using=
data "
+ "channel offload: packets are always sent to the V=
PN "
+ "interface and then routed based on the system rou=
ting table");
+ }
+
+ if (o->renegotiate_bytes > 0 || o->renegotiate_packets)
+ {
+ msg(M_WARN, "Note: '--reneg-bytes' and '--reneg-pkts' are not =
supported "
+ "by data channel offload; automatic key renegotiat=
ion "
+ "mechanisms are sufficient for modern ciphers. "
+ "Ignoring these options.");
+ }
}
}
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1280?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings?usp=3Demail
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7b718a14b81e3759398e7a52fe151102494cc821
Gerrit-Change-Number: 1280
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
--Mr0w6o7xt1o=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld, plaisthos.
ralf_lici uploaded patch set #3 to this change.
<=
a href=3D"http://gerrit.openvpn.net/c/openvpn/+/1280?usp=3Demail">View Chan=
ge
options: warn and ignore --reneg-bytes/pkts when DC=
O is enabled
Thresholds specified by --reneg-bytes and --reneg-pkts =
cannot be
enforced when DCO is enabled, as it only provides global stati=
stics.
Rather than adding complexity to support these options, ignor=
e them when
DCO is enabled. Print a warning to inform users and update t=
he manpage
accordingly.
Change-Id: I7b718a14b81e3759398e7a52fe151=
102494cc821
Signed-off-by: Ralf Lici <ralf@...2726...>
---
M=
doc/man-sections/renegotiation.rst
M src/openvpn/options.c
2 files c=
hanged, 23 insertions(+), 4 deletions(-)
git pul=
l ssh://gerrit.openvpn.net:29418/openvpn refs/changes/80/1280/3
dif=
f --git a/doc/man-sections/renegotiation.rst b/doc/man-sections/renegotiati=
on.rst
index 1e7c340..f5eb90d 100644
--- a/=
doc/man-sections/renegotiation.rst
+++ b/doc/man-sections/r=
enegotiation.rst
@@ -19,10 +19,18 @@
the=
SWEET32 attack vector. For more information see the ``--cipher``
option.
+ When data channel offload (DCO) is enabled, this option i=
s ignored. DCO
+ doe=
s not support configurable renegotiation thresholds; automatic key+ renegotiation mechanisms a=
re sufficient for modern ciphers.
+
--reneg-pkts n
Renegotia=
te data channel key after **n** packets sent and received
=
(disabled by default).
+ When data channel offload (DCO) is enabled, this o=
ption is ignored. DCO
+ does not support configurable renegotiation thresholds; automatic key=
span>
+ renegotiation mecha=
nisms are sufficient for modern ciphers.
+
--reneg-sec args
=
Renegotiate data channel key after at most ``max`` seconds
=
(default :code:`3600`) and at least ``min`` seconds (default is 90% of=
span>
diff --git a/src/openvpn/options.c b/src/openvpn/options.c=
span>
index 44f68c7..65c6b3b 100644
--- a/src/open=
vpn/options.c
+++ b/src/openvpn/options.c
@=
@ -3317,11 +3317,22 @@
dns_options_v=
erify(M_FATAL, &o->dns_options);
- if (dco_enabled(o) && o->=
;enable_c2c)
+ if =
(dco_enabled(o))
{
- msg(M_WARN, "Note: --client-to-client has no=
effect when using data "
- "channel offload: packets are always sent=
to the VPN "
- =
"interface and then routed based on the system routin=
g table");
+ =
if (o->enable_c2c)
+ {
+ =
msg(M_WARN, "Note: --client-to-client has no effect when using=
data "
+ =
"channel offload: packets are always sent to the VPN =
"
+ =
"interface and then routed based on the system routing tabl=
e");
+ }<=
/span>
+
+ if (o->renegotiate_bytes >=
; 0 || o->renegotiate_packets)
+ {
+ msg(M_WARN, "Note: '--reneg-bytes' and '--=
reneg-pkts' are not supported "
+ "by data channel offload;=
automatic key renegotiation "
+ "mechanisms are sufficient for=
modern ciphers. "
+ "Ignoring these options.");
+ }
=
}
}
<=
p>To view, visit change 1280. To unsubscribe, or for help writing mail filters=
, visit settings=
.
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I7b718a14b81e3759398e7a52fe1=
51102494cc821
Gerrit-Change-Number: 1280
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici <ralf@...2726...>=
;
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...>
=
--Mr0w6o7xt1o=--