From: "cron2 (Code Review)" Date: Sat, 4 Apr 2026 15:53:54 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <1583c139ad6d1f93c022b5ff56c49d26aa80a03b-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="dHmZWyOcxDI="; 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 , plaisthos Cc: openvpn-devel --dHmZWyOcxDI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1603?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos 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(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/03/1603/2 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 --=20 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: newpatchset 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 --dHmZWyOcxDI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #2 to the change originally created by flichtenhel= d.

View Change

The following approvals got outdated and were remove= d: Code-Review+2 by plaisthos

doc: Remove some explanations f=
or pre-2.3 configurations

Just streamline the documentation a bit.
Change-Id: Ieaaf3a79642c8f7914f9bfc6762ad601c4f5695b
Signed-off-by= : Frank Lichtenheld <frank@...2641...>
Acked-by: Arne Schwabe <= arne-openvpn@...1227...>
Gerrit URL: https://gerrit.openvpn.net/c/ope= nvpn/+/1603
Message-Id: <20260402120435.39983-1-frank@...2641...><= br>URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/ms= g36434.html
Signed-off-by: Gert Doering <gert@...1296...>
---M doc/man-sections/generic-options.rst
1 file changed, 7 insertions(+)= , 19 deletions(-)

git pull ssh://gerrit.openvpn.=
net:29418/openvpn refs/changes/03/1603/2
diff --git a/doc/man-secti=
ons/generic-options.rst b/doc/man-sections/generic-options.rst
index 8132b48..415b81f 100644
--- a/doc/man-sections/ge= neric-options.rst
+++ b/doc/man-sections/generic-options.rs= t
@@ -43,11 +43,11 @@
however complicati= ons can result when scripts or restarts are executed
aft= er the chroot operation.

- Note: The SSL library will probably need /dev/urando= m 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 some
BSDs implement a getrandom= () or getentropy() syscall that removes the
- need for /dev/urandom to be available.
+ need for ``/dev/urandom`` to b= e available.


--compat-mode version
This option provides a convenient way to alter the defaults o= f OpenVPN
@@ -170,9 +170,7 @@
Note: as s= oon 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 i= n 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.
<= br> Further, using ``--daemon`` together with ``--auth-user-pass`` = (entered
on console) and ``--auth-nocache`` will fail as= soon as key
@@ -330,32 +328,22 @@
OpenV= PN releases before v2.3 also supported a ``method`` flag which
indicated how OpenVPN should call external commands and scripts. Thi= s

could be either :code:`execve` or :code:`system`. As o= f OpenVPN 2.3, this
- = flag is no longer accepted. In most \*nix environments the execve()<= br>- approach has been used with= out any issues.
+ fl= ag is no longer accepted.

Some directi= ves such as ``--up`` allow options to be passed to the
e= xternal 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 s= cript options start.

- To run scripts in Windows in earlier OpenVPN versions yo= u needed to
- either a= dd 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
<= span> interpreter when running non-executables files. This is not needed = for
executable files, such as .exe, .com, .bat or .cmd f= iles. For example,
- i= f you have a Visual Basic script, you must use this syntax now:
<= span style=3D"color: hsl(0, 100%, 40%);">-
- ::
+ 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'
<= span>

Please note the single quote marks and the escapi= ng of the backslashes
-= (\\) and the space character.
-
- The reaso= n the support for the :code:`system` flag was removed is due to
<= span style=3D"color: hsl(0, 100%, 40%);">- the security implications with = shell expansions when executing scripts
- via the :code:`system()` call.
+ (``\\``) and the space character.
--setcon context
Apply SELinu= x ``context`` after initialization. This essentially

To view, visit change 1603. To unsubscribe, or for help writing m= ail filters, visit settings.

<= /div>
Gerrit-MessageType: newpatchset
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>
= --dHmZWyOcxDI=--