From: "cron2 (Code Review)" Date: Sat, 4 Apr 2026 15:53:57 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <1583c139ad6d1f93c022b5ff56c49d26aa80a03b-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="cphhCVrSGZ0="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: doc: Remove some explanations for pre-2.3 configurations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --cphhCVrSGZ0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/16= 03?usp=3Demail ) Change subject: doc: Remove some explanations for pre-2.3 configurations ...................................................................... doc: Remove some explanations for pre-2.3 configurations Just streamline the documentation a bit. Change-Id: Ieaaf3a79642c8f7914f9bfc6762ad601c4f5695b Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1603 Message-Id: <20260402120435.39983-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 434.html Signed-off-by: Gert Doering --- M doc/man-sections/generic-options.rst 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/generi= c-options.rst index 8132b48..415b81f 100644 --- a/doc/man-sections/generic-options.rst +++ b/doc/man-sections/generic-options.rst @@ -43,11 +43,11 @@ however complications can result when scripts or restarts are executed after the chroot operation. - Note: The SSL library will probably need /dev/urandom to be available + Note: The SSL library will probably need ``/dev/urandom`` to be available inside the chroot directory ``dir``. This is because SSL libraries occasionally need to collect fresh randomness. Newer linux kernels and s= ome BSDs implement a getrandom() or getentropy() syscall that removes the - need for /dev/urandom to be available. + need for ``/dev/urandom`` to be available. --compat-mode version This option provides a convenient way to alter the defaults of OpenVPN @@ -170,9 +170,7 @@ Note: as soon as OpenVPN has daemonized, it can not ask for usernames, passwords, or key pass phrases anymore. This has certain consequences, namely that using a password-protected private key will fail unless the - ``--askpass`` option is used to tell OpenVPN to ask for the pass phrase - (this requirement is new in v2.3.7, and is a consequence of calling - daemon() before initializing the crypto layer). + ``--askpass`` option is used to tell OpenVPN to ask for the pass phrase. Further, using ``--daemon`` together with ``--auth-user-pass`` (entered on console) and ``--auth-nocache`` will fail as soon as key @@ -330,32 +328,22 @@ OpenVPN releases before v2.3 also supported a ``method`` flag which indicated how OpenVPN should call external commands and scripts. This could be either :code:`execve` or :code:`system`. As of OpenVPN 2.3, this - flag is no longer accepted. In most \*nix environments the execve() - approach has been used without any issues. + flag is no longer accepted. Some directives such as ``--up`` allow options to be passed to the external script. In these cases make sure the script name does not contain any spaces or the configuration parser will choke because it can't determine where the script name ends and script options start. - To run scripts in Windows in earlier OpenVPN versions you needed to - either add a full path to the script interpreter which can parse the - script or use the ``system`` flag to run these scripts. As of OpenVPN - 2.3 it is now a strict requirement to have full path to the script + On Windoes it is a strict requirement to have the full path to the script interpreter when running non-executables files. This is not needed for executable files, such as .exe, .com, .bat or .cmd files. For example, - if you have a Visual Basic script, you must use this syntax now: - - :: + if you have a Visual Basic script, you must use this syntax:: --up 'C:\\Windows\\System32\\wscript.exe C:\\Program\ Files\\OpenVPN\= \config\\my-up-script.vbs' Please note the single quote marks and the escaping of the backslashes - (\\) and the space character. - - The reason the support for the :code:`system` flag was removed is due to - the security implications with shell expansions when executing scripts - via the :code:`system()` call. + (``\\``) and the space character. --setcon context Apply SELinux ``context`` after initialization. This essentially -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1603?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ieaaf3a79642c8f7914f9bfc6762ad601c4f5695b Gerrit-Change-Number: 1603 Gerrit-PatchSet: 2 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --cphhCVrSGZ0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

doc: Remove some explanations for pre-2.3 config=
urations

Just streamline the documentation a bit.

Change-Id: = Ieaaf3a79642c8f7914f9bfc6762ad601c4f5695b
Signed-off-by: Frank Lichtenhe= ld <frank@...2641...>
Acked-by: Arne Schwabe <arne-openvpn@...1386...= 227...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1603
Me= ssage-Id: <20260402120435.39983-1-frank@...2641...>
URL: https://w= ww.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36434.html
Si= gned-off-by: Gert Doering <gert@...1296...>
---
M doc/man-secti= ons/generic-options.rst
1 file changed, 7 insertions(+), 19 deletions(-)=

diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/gen=
eric-options.rst
index 8132b48..415b81f 100644
--- a/doc/man-sections/generic-options.rst
+++ b/doc/ma= n-sections/generic-options.rst
@@ -43,11 +43,11 @@ however complications can result when scripts or restarts are ex= ecuted
after the chroot operation.

- Note: The SSL library w= ill probably need /dev/urandom to be available
+ Note: The SSL library will probably need ``/de= v/urandom`` to be available
inside the chroot directory = ``dir``. This is because SSL libraries
occasionally need= to collect fresh randomness. Newer linux kernels and some
= BSDs implement a getrandom() or getentropy() syscall that removes the
- need for /dev/urandom = to be available.
+ n= eed for ``/dev/urandom`` to be available.

--compat-mode version

This option provides a convenien= t way to alter the defaults of OpenVPN
@@ -170,9 +170,7 @@<= /span>
Note: as soon as OpenVPN has daemonized, it can not ask = for usernames,
passwords, or key pass phrases anymore. T= his has certain consequences,
namely that using a passwo= rd-protected private key will fail unless the
- ``--askpass`` option is used to tell OpenVPN to a= sk for the pass phrase
= - (this requirement is new in v2.3.7, and is a consequence of calling
- daemon() before initiali= zing the crypto layer).
+ ``--askpass`` option is used to tell OpenVPN to ask for the pass phra= se.

Further, using ``--daemon`` togeth= er with ``--auth-user-pass`` (entered
on console) and ``= --auth-nocache`` will fail as soon as key
@@ -330,32 +328,2= 2 @@
OpenVPN releases before v2.3 also supported a ``met= hod`` flag which
indicated how OpenVPN should call exter= nal commands and scripts. This
could be either :code:`ex= ecve` or :code:`system`. As of OpenVPN 2.3, this
- flag is no longer accepted. In most \*nix envi= ronments the execve()
-= approach has been used without any issues.
+ flag is no longer accepted.

Some directives such as ``--up`` allow options to be passe= d to the
external script. In these cases make sure the s= cript name does not
contain any spaces or the configurat= ion parser will choke because it
can't determine whe= re the script name ends and script options start.
<= br>- To run scripts in Windows i= n earlier OpenVPN versions you needed to
- either add a full path to the script interpreter which= can parse the
- scrip= t or use the ``system`` flag to run these scripts. As of OpenVPN
= - 2.3 it is now a strict require= ment to have full path to the script
+ On Windoes it is a strict requirement to have the full p= ath to the script
interpreter when running non-executabl= es files. This is not needed for
executable files, such = as .exe, .com, .bat or .cmd files. For example,
- if you have a Visual Basic script, you must use= this syntax now:
-
- ::
+ if you have a Visual Basic script, you= must use this syntax::

--up 'C= :\\Windows\\System32\\wscript.exe C:\\Program\ Files\\OpenVPN\\config\\my-u= p-script.vbs'

Please note the sing= le quote marks and the escaping of the backslashes
- (\\) and the space character.
-

- The reason the support for the :code:`system` flag was = removed is due to
- th= e security implications with shell expansions when executing scripts=
- via the :code:`system()` c= all.
+ (``\\``) and = the space character.

--setcon context
Apply SELinux ``context`` after initialization. This essen= tially

To view, visit change 1603. To unsub= scribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ieaaf3a79642c8f7914f9bfc6762= ad601c4f5695b
Gerrit-Change-Number: 1603
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --cphhCVrSGZ0=--