[Openvpn-devel] [PATCH applied] Re: Add deferred authentication support to plugin-auth-pam

2020-07-15 Thread Gert Doering
Patch has been applied to the master branch. (Changes.rst hunk and "all other clients" adjusted appropriately) commit c83b197a72a6f909a4ddcded027469f0da5d4a24 Author: Gert Doering Date: Wed Jul 15 11:01:05 2020 +0200 Add deferred authentication support to plugin-auth-pam

[Openvpn-devel] [PATCH 12/16] doc/man: Misc grammar and typo fixes

2020-07-15 Thread David Sommerseth
From: Richard Bonhomme Signed-off-by: Richard Bonhomme Signed-off-by: David Sommerseth --- doc/man-sections/advanced-options.rst| 4 +-- doc/man-sections/client-options.rst | 17 +- doc/man-sections/connection-profiles.rst | 2 +- doc/man-sections/encryption-options.rst |

Re: [Openvpn-devel] [PATCH v6 8/14] client-connect: Add CC_RET_DEFERRED and cope with deferred client-connect

2020-07-15 Thread Arne Schwabe
Am 15.07.2020 um 16:59 schrieb Antonio Quartulli: > Hi, > > On 15/07/2020 16:16, Arne Schwabe wrote: > [CUT] > >> -multi_client_connect_early_setup(m, mi); >> +handler = _connect_handlers[defer_state->cur_handler_index]; >> >> -for (int i = 0; cc_succeeded && handlers[i]; i++) >> +

[Openvpn-devel] [PATCH 00/16] man-page overhaul project

2020-07-15 Thread David Sommerseth
Hi, The time has come to send this pile of patches to the mailing list, which incorporates many improvements by Richard Bonhomme (Thanks a lot!). I do however fear that patch 5/16 and possibly patch 1/16 and 2/16 will be rejected by the sourceforge mailman instance as they might exceed some

[Openvpn-devel] [PATCH 11/16] doc/man: Cleaned up the examples

2020-07-15 Thread David Sommerseth
Removed a lot of outdated information. The loading of the tun module is not needed on current Linux distributions; it is automatically loaded when needed. Also removed all the iptables references and rather refer the reader to figure out how firewalling is configured on their system. The reason

[Openvpn-devel] [PATCH 16/16] doc/man: Minor improvements to the plug-in section

2020-07-15 Thread David Sommerseth
Make the valid syntax clearer and apply proper styling of few reference strings. Signed-off-by: David Sommerseth --- doc/man-sections/plugin-options.rst | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/man-sections/plugin-options.rst

[Openvpn-devel] [PATCH 04/16] doc/man: Remove unsupported options in OpenVPN 2.5

2020-07-15 Thread David Sommerseth
This removes the options from the man page which is enlisted as deprecated options in OpenVPN 2.5. To provide some history, a short summary of why they were removed has been put into a new file which is included into its own "UNSUPPORTED OPTIONS" section in the man page. Signed-off-by: David

[Openvpn-devel] [PATCH 08/16] doc/man: Mark compression options as deprecated

2020-07-15 Thread David Sommerseth
Due to the VORACLE attack vector, compression in general is deprecated. Make this clear in the man page. Also remove an incorrect statement claiming --compress lzo is compatible with --comp-lzo. It is not, as --compress lzo uses a different compression framing than --comp-lzo. Signed-off-by:

[Openvpn-devel] [PATCH 15/16] doc/man: Fix a few typos and improve style usage

2020-07-15 Thread David Sommerseth
The server returns "AUTH_FAILED". Such strings and code related references should use the :code:`SOME_STRING` style. Signed-off-by: David Sommerseth --- doc/man-sections/client-options.rst | 10 +- doc/man-sections/script-options.rst | 2 +- 2 files changed, 6 insertions(+), 6

[Openvpn-devel] [PATCH 07/16] doc/man: Move --dhcp-option from client to vpn-network section

2020-07-15 Thread David Sommerseth
Even though the --dhcp-option is only useful in a client context, it is more related to configuration of the VPN network interface and the related settings. Signed-off-by: David Sommerseth --- doc/man-sections/client-options.rst | 69

[Openvpn-devel] [PATCH 10/16] doc/man: Moved --reneg-* options to its own section

2020-07-15 Thread David Sommerseth
The options related to renegotiation of the data channel encryption key is not really a link option. As the renegotiation is encryption related but doesn't really fit into the generic, tls or pkcs11 sections, add it into its own section. Signed-off-by: David Sommerseth ---

[Openvpn-devel] [PATCH 14/16] doc/man: Update --txqueuelen default setting (Now OS default)

2020-07-15 Thread David Sommerseth
From: Richard Bonhomme Signed-off-by: Richard Bonhomme Signed-off-by: David Sommerseth --- doc/man-sections/advanced-options.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/man-sections/advanced-options.rst b/doc/man-sections/advanced-options.rst index

[Openvpn-devel] [PATCH 09/16] doc/man: Move some options from link to advanced section

2020-07-15 Thread David Sommerseth
Moved --persist-local-ip, --persist-remote-ip, --rcvbuf, --sndbuf and --shaper from the link options section to the advanced section. The rationale is that these options are not common to use and is for more advanced use cases where special tweaking is required. Signed-off-by: David Sommerseth

[Openvpn-devel] [PATCH 13/16] doc/man: Adopt compression documentation

2020-07-15 Thread David Sommerseth
Commit c67e93b25208be2 updated the man page in reagrds to new compression options and improving existing compression options. This adopts those changes into the .rst format. Signed-off-by: David Sommerseth --- doc/man-sections/protocol-options.rst | 52 ++- 1 file

[Openvpn-devel] [PATCH 03/16] doc/man: Move profiles section

2020-07-15 Thread David Sommerseth
The profile documentation has been enlisted in between all the other OpenVPN options. As is not strictly an option by itself but a grouping mechanism, move it into its own section in the man page. This also makes the HTML rendering look much nicer and better structured. Signed-off-by: David

[Openvpn-devel] [PATCH 06/16] doc/man: Move --bind from generic to link section

2020-07-15 Thread David Sommerseth
This is more related to the configuration of the link, plus --nobind is already placed in the link section. Signed-off-by: David Sommerseth --- doc/man-sections/generic-options.rst | 7 --- doc/man-sections/link-options.rst| 7 +++ 2 files changed, 7 insertions(+), 7 deletions(-)

Re: [Openvpn-devel] [PATCH v5 09/14] client-connect: Add deferred support to the client-connect script handler

2020-07-15 Thread Antonio Quartulli
Hi, On 11/07/2020 11:36, Arne Schwabe wrote: > From: Fabian Knittel > > This patch introduces the concept of a return value file for the > client-connect > handlers. (This is very similar to the auth value file used during deferred > authentication.) The file name is stored in the

[Openvpn-devel] [PATCH v3] Add deferred authentication support to plugin-auth-pam

2020-07-15 Thread Gert Doering
If OpenVPN signals deferred authentication support (by setting the internal environment variables "auth_control_file" and "deferred_auth_pam"), do not wait for PAM stack to finish. Instead, the privileged PAM process returns RESPONSE_DEFER via the control socket, which gets turned into

Re: [Openvpn-devel] [PATCH] Support for wolfSSL in OpenVPN

2020-07-15 Thread Juliusz Sosinowicz
Hi Everyone, do you have an update on the latest patch I sent? There have been updates to wolfSSL to fix the remaining issues brought up last time. Thanks Juliusz On 16/06/2020 20:00, Juliusz Sosinowicz wrote: This patch adds support for wolfSSL in OpenVPN. Support is added by using

Re: [Openvpn-devel] [PATCH v5 10/14] client-connect: Move adding inotify watch into its own function

2020-07-15 Thread Antonio Quartulli
Hi, On 11/07/2020 11:36, Arne Schwabe wrote: > This make the code a bit better readable and also prepares resuing > the function for client-connect return files > > Signed-off-by: Arne Schwabe This patch looks good and does what it says. No functional change is implemented, but it's all about

[Openvpn-devel] [PATCH applied] Re: client-connect: Change cas_context from int to enum

2020-07-15 Thread Gert Doering
Your patch has been applied to the master branch. Fixed the typo in the commit message as requested. Tested yesterday on client and server testbed, which tests all these states. I have not modified the "static" hunk - it would be a better fit in another patch, but it's useful, reasonably

Re: [Openvpn-devel] [PATCH v5 08/14] client-connect: Add CC_RET_DEFERRED and cope with deferred client-connect

2020-07-15 Thread Arne Schwabe
Am 14.07.20 um 14:32 schrieb Antonio Quartulli: > can we please add a variable for the index and make all these long lines > saner? Now they are really ugly: > > int idx = defer_state->cur_handler_index; > while (cc_succeeded >&& client_connect_handlers[idx].main != NULL) > > and also

[Openvpn-devel] [PATCH applied] Re: client-connect: Move adding inotify watch into its own function

2020-07-15 Thread Gert Doering
Your patch has been applied to the master branch. (I have merged this out of sequence while we still haggle about the least ugly way for 08 :-) - it's really "just moving this code parts", but due to the reformatting and variable renaming git can't see it. Compared manually. Also applied the

Re: [Openvpn-devel] [PATCH] Fix environment variables for p2mp-assigned IPv6 addresses.

2020-07-15 Thread Gert Doering
Hi, On Wed, Jul 15, 2020 at 01:31:32PM +0200, Gert Doering wrote: > commit a8f8b926718 introduces $ENV{ifconfig_pool_local_ip6} and > $ENV{ifconfig_pool_remote_ip6}, but instead of properly setting them, > the code overwrites the IPv4 variables, $ENV{ifconfig_pool_remote} > and

Re: [Openvpn-devel] [PATCH v3] Add deferred authentication support to plugin-auth-pam

2020-07-15 Thread Selva Nair
Hi, Thanks for v3. All good except Changes.rst has diverged, so the patch doesn't apply as is. Can be fixed at merge time. The code is unchanged from the last version and the added text in README is clear and detailed. A minor grammar thingy: "all forwarding for all other client" -- > "all

Re: [Openvpn-devel] [PATCH v6 8/14] client-connect: Add CC_RET_DEFERRED and cope with deferred client-connect

2020-07-15 Thread tincanteksup
typo On 15/07/2020 15:16, Arne Schwabe wrote: This patch moves the state, that was previously tracked within the multi_connection_established() function, into struct client_connect_state. The multi_connection_established() function can now be exited and re-entered as many times as necessary -

[Openvpn-devel] collecting info about openvpn plugins

2020-07-15 Thread Gert Doering
Hi, my test rig today is not testing "client-connect" plugins yet, but it better should do so (while Arne is busy rebuilding all that stuff). Before I start writing something basic - does anyone of you happen to use an existing plugin that provides client-connect functionality (as in "create

[Openvpn-devel] [PATCH applied] Re: client-connect: Move multi_client_connect_setenv into early_setup

2020-07-15 Thread Gert Doering
Acked-by: Gert Doering Your patch has been applied to the master branch. It has been stared-at, and tested on the server side test rig. We've had quite a bit of discussion about this on IRC, and the conclusion is "multiple calls to these functions might be needed in some situations" (like,

Re: [Openvpn-devel] [PATCH] Fix environment variables for p2mp-assigned IPv6 addresses.

2020-07-15 Thread Arne Schwabe
Am 15.07.20 um 13:31 schrieb Gert Doering: > commit a8f8b926718 introduces $ENV{ifconfig_pool_local_ip6} and > $ENV{ifconfig_pool_remote_ip6}, but instead of properly setting them, > the code overwrites the IPv4 variables, $ENV{ifconfig_pool_remote} > and $ENV{ifconfig_pool_local}. > > Trivial

[Openvpn-devel] [PATCH] Fix environment variables for p2mp-assigned IPv6 addresses.

2020-07-15 Thread Gert Doering
commit a8f8b926718 introduces $ENV{ifconfig_pool_local_ip6} and $ENV{ifconfig_pool_remote_ip6}, but instead of properly setting them, the code overwrites the IPv4 variables, $ENV{ifconfig_pool_remote} and $ENV{ifconfig_pool_local}. Trivial fix. Signed-off-by: Gert Doering ---

[Openvpn-devel] [PATCH applied] Re: client-connect: Refactor to use return values instead of modifying a passed-in flag

2020-07-15 Thread Gert Doering
Your patch has been applied to the master branch. White space has been whacked as instructed :-) Tested (yesterday) already on the server test rig, all good. The code changes look good (though I find the patch granularity "too fine", with all the extra calls to cc_check_return() added just to

[Openvpn-devel] [PATCH v6 8/14] client-connect: Add CC_RET_DEFERRED and cope with deferred client-connect

2020-07-15 Thread Arne Schwabe
This patch moves the state, that was previously tracked within the multi_connection_established() function, into struct client_connect_state. The multi_connection_established() function can now be exited and re-entered as many times as necessary - without losing the client-connect handling state.

[Openvpn-devel] [PATCH applied] Re: reformat multi_client_generate_tls_keys according to uncrustify

2020-07-15 Thread Gert Doering
Your patch has been applied to the master branch. commit 90ed0fd2df37441dd6fc368ece006e4dd49093e9 Author: Arne Schwabe Date: Wed Jul 15 16:14:25 2020 +0200 reformat multi_client_generate_tls_keys according to uncrustify Signed-off-by: Arne Schwabe Acked-by: Antonio Quartulli

Re: [Openvpn-devel] [PATCH 3/3] Remove key-method 1

2020-07-15 Thread Steffan Karger
Hi On 13-07-2020 11:46, Arne Schwabe wrote: > @@ -1100,7 +1100,7 @@ process_incoming_link_part1(struct context *c, struct > link_socket_info *lsi, boo > floated, _start)) > { > /* Restore pre-NCP frame parameters */ > -

[Openvpn-devel] [PATCH] reformat multi_client_generate_tls_keys according to uncrustify

2020-07-15 Thread Arne Schwabe
The refactor accidently used a wrong code style template and ended up using 2 instead of 4 as indent. Signed-off-by: Arne Schwabe --- src/openvpn/multi.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index

Re: [Openvpn-devel] [PATCH] reformat multi_client_generate_tls_keys according to uncrustify

2020-07-15 Thread Antonio Quartulli
Hi, On 15/07/2020 16:14, Arne Schwabe wrote: > The refactor accidently used a wrong code style template and > ended up using 2 instead of 4 as indent. > > Signed-off-by: Arne Schwabe Acked-by: Antonio Quartulli -- Antonio Quartulli ___

Re: [Openvpn-devel] [PATCH v6 8/14] client-connect: Add CC_RET_DEFERRED and cope with deferred client-connect

2020-07-15 Thread Antonio Quartulli
Hi, On 15/07/2020 16:16, Arne Schwabe wrote: [CUT] > -multi_client_connect_early_setup(m, mi); > +handler = _connect_handlers[defer_state->cur_handler_index]; > > -for (int i = 0; cc_succeeded && handlers[i]; i++) > +while (cc_succeeded && handler->main != NULL) > { > -