Removing --disable-server option from OpenVPN
Hi,
We are considering removing the --disable-server option from OpenVPN in 2.5.
Do you use (and need) it, or know of somebody using (and needing) it?
Samuli
Hi,
Quoted 6 lines · Samuli Seppänen
Hi,
We are considering removing the --disable-server option from OpenVPN in 2.5.
Do you use (and need) it, or know of somebody using (and needing) it?
As far as I know, it is not used by any Tunnelblick users.
Also, note that it doesn't appear on the 2.4 man page [1]. (Even substituting "–" for "--".)
Best regards,
Jon Bullard
[1] https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/
Oops.
Quoted 13 lines · Jonathan K. Bullard
Hi,
Quoted 6 lines · Samuli Seppänen
Hi,
We are considering removing the --disable-server option from OpenVPN in 2.5.
Do you use (and need) it, or know of somebody using (and needing) it?
As far as I know, it is not used by any Tunnelblick users.
Quoted 8 lines
Also, note that it doesn't appear on the 2.4 man page [1]. (Even substituting "–" for "--".)
Best regards,
Jon Bullard
[1] https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/
I misunderstood -- it's a compile-time option, not an OpenVPN option. Tunnelblick doesn't use it for our builds.
Sorry for the noise.
Jon Bullard
Hi,
Quoted 3 lines · Samuli Seppänen
We are considering removing the --disable-server option from OpenVPN in 2.5.
Do you use (and need) it, or know of somebody using (and needing) it?
Just rediscovered this thread... nobody??
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...Hi,
Quoted 8 lines · Yevgeny Kosarzhevsky
Quoted 4 lines · Samuli Seppänen
We are considering removing the --disable-server option from OpenVPN in 2.5.
Do you use (and need) it, or know of somebody using (and needing) it?
I would say this is very useful option that is used to build many customized clients. It's sad to know you are going to remove it.
Are you *using* it?
We have not heard from anyone yet who says "I use this, for this-and-that reason".
Not even the embedded distributions (where space is a real premium) are using it.
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...Hi,
Quoted 1 line · Yevgeny Kosarzhevsky
Quoted 1 line
Quoted 1 line
Quoted 1 line
We are considering removing the --disable-server option from OpenVPN in 2.5.
[..]
Quoted 2 lines
Yes I am using it to build some patched versions as well as no-replay and no-iv options to build plain tunnels.
But why? For size reasons?
On the developer side, this option adds quite a bit of extra maintenance effort (because quite often, a new patch works nice with default option but breaks compilation with --disable-server), so there needs to be a really good reason to keep the option.
gert
Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]...Hello,
Quoted 8 lines · Gert Doering
Quoted 2 lines · Yevgeny Kosarzhevsky
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
We are considering removing the --disable-server option from
OpenVPN in 2.5.[..]
Quoted 2 lines
Yes I am using it to build some patched versions as well as no-replay and no-iv options to build plain tunnels.
Quoted 6 lines
But why? For size reasons?
On the developer side, this option adds quite a bit of extra maintenance effort (because quite often, a new patch works nice with
default option but breaks compilation with --disable-server), so
there needs to be a really good reason to keep the option.
I apologize for not responding to this query sooner. I only recently started monitoring the openvpn mailing lists.
I would like to make the case for:
a. Removing --disable-server build option
b. Keeping and improving the P2MP_SERVER macro w/test-suite support c. Adding a P2P_CLIENT macro
I am advocating for separating the client and server personalities of openvpn into distinct executables. Itemized recommendations at the end of this long post.
Whether this option should be removed needs to depend not only on community feedback, but also on whether it is the right choice for the project. I think the chosen path, to remove P2MP_SERVER is the wrong choice.
The argument in favour or removing this build option is that some (less diligently tested) patches break compilation of client-only binaries, and this requires additional effort from the developers to resolve. It is an argument favouring ease of integration over improving patch quality, and ultimately software quality.
The reason for compilation breaking is not the existence of the option, but that it is hard for the patch author to test two separate build modes. It requires additional test effort on behalf of the patch author to test both default build and client-only build. When this corner is cut, defective patches result.
I believe the correct way to resolve this patch quality issue is to build both the default binary and the client-only binary at the same time, and have the test suite check both binaries in client roles. This improved test suite would automate the verification done by patch creators, and would not only eliminate the compilation breakage, but also ensure that the client-only build is as well behaved as the default build. It should be mandatory that patches pass "make check", and it is up to you, the maintainers, to make that validation more stringent.
Without this additional verification, the behaviour of a client-only build cannot be trusted by package maintainers or end users, and as a result it's not useful to create an untested, client-only build.
The argument that embedded projects don't use the client-only build is therefore a fallacy. They don't use client-only because it is untested, not because a smaller binary is undesireable. Indeed, projects like DDWRT use "dropbear" (a light ssh client/server) over OpenSSH sshd (a full-featured SSH implementation) to save a few kilobytes. They also use busybox instead of coreutils to save kilobytes.
However, whether a client-only is beneficial to embedded projects should not be the measuring stick. Software quality should be.
Additionally, mature projects typically partition builds along purpose lines. Eg. OpenSSH is built as "openssh-server" (sshd binary) and "openssh-clients" (ssh binary). Bind is built as "bind" (named server binary) and "bind-utils" (dig, etc). Many similar examples exist. Is it that the traditional approach is not appropriate for openvpn? Does the rest of the world have it wrong by not bundling the server and client components of their software? Or is having a more thorough test-suite undesireable for openvpn?
My interest in openvpn is mainly as an end user. I use it to build a mesh network. It's not the best tool, but it's the closest to my needs, and I've been able to add the missing features and improve reliability to make it work well enough.
One of the more invaluable tools in adding the needed features was the P2MP_SERVER define. It is a form of documentation, as it indicates which parts of the codebase may be related to the server or client behaviour. It has been very useful to me in navigating the source code.
The entire code base contains several event loops (tunnel_server_udp, tunnel_server_tcp, tunnel_point_to_point), each with their separate initialization sequences, I/O event waiting and I/O processing functions. Not at all friendly to new contributors. The process has 3 or 4 distinct personalities dictated by "mode" and
"proto". The active personality is chosen at start time,
and the other two personalities are effectively dead code for the duration. The dual/triple personality of this binary is ironically most suitable for embedded devices which aim to implement more functionality per kilobyte of flash memory, provided it makes sense to implement both server and client personalities (busybox, dropbearmulti).
Reflecting the multi personality of the openvpn frankenbinary is the manpage, which is frankly a bit of a mess. Many config options are exclusive to one personality, and it's not always clear which. To a first-time user of openvpn, it is daunting to get it running. Granted, there are tutorials on getting up and running quickly by cutting and pasting a command line, but that never works reliably for long, and inevitably it becomes a recurring job to tweak a perpetually broken/unreliable configuration.
The multiple personality is reflected in the config files. There are separate server.conf and client.conf, serving different purposes.
The only purpose the "--disable-server" option serves it to remove the ability to test the resulting binary (no useful "make check"). It should be removed. On other projects, some components or features of the software are truly optional, and can be disabled, eg. debug tooling, documentation, adaptors, plugins, compatibility modes. But, in openvpn, the server and the client binaries are core components. OpenSSH build is a great example. There is no way to disable either client or server, as it would not accomplish anything to not build a core component (other than save less compile time than it takes to type this), but plenty of ways to enable/disable features.
I would recommend that rather than removing the useful bit of documentation that is P2MP_SERVER, the developers consider:
1. Restructure the source tree to split the src/openvpn code into src/{common,client,server}
2. Remove the configure --disable-server option, but add Makefile rules to build separate client, server and combined binaries, while also enabling distro maintainers to package openvpn-server and openvpn-client separately, from the same tarball. The combined binary can be used to build drop-in replacement packages.
3. Improve the test suite to verify the inter-operability of the 3 binaries.
4. Separate the manpage into a server and a client edition.
Lastly, I am working on the MTU discovery patch, which is a RFC 4821 (Packetization Layer Path MTU Discovery) implementation, but part of the patch is a test that is light-years ahead of what is currently available in the openvpn git repo. It supports interop testing between clients/servers of various versions, several handshaking and traffic test patterns, a flexible framework for adding new test conditions, regression testing, valgrind memcheck, and it does it on an honest connection between a server and a client, with data traffic flowing through the tunnel, every data packet being accounted for. So, my recommendation #3 above may be coming your way soon.
Regards, and thank you for working on such a useful piece software.
Radu Hociung.
Quoted 12 lines · Radu Hociung
I would recommend that rather than removing the useful bit of documentation that is
P2MP_SERVER, the developers consider:1. Restructure the source tree to split the src/openvpn code into src/{common,client,server}
2. Remove the configure --disable-server option, but add
Makefilerules to build separate client, server and combined binaries, while also enabling distro maintainers to package openvpn-server and openvpn-client separately, from the same tarball. The combined binary can be used to build drop-in replacement packages.
Quoted 4 lines
3. Improve the test suite to verify the inter-operability of the 3 binaries.
4. Separate the manpage into a server and a client edition.
I've not had the capacity to go through your detailed mail too closely. But I consider these 4 points to be a reasonable TL;DR version.
Yes, this all sounds lovely. But I wonder who will have time to work on such work? This work will require quite some efforts to avoid duplicating too much of what already exists in options.c and openvpn.c; which would be the starting point for such a task.
In addition, such a change has a big possibility to break a lot of existing configurations via package upgrades - as in this case the unified openvpn will no longer exists but be split into two different binaries.
To be honest, I think it makes more sense to put efforts into the OpenVPN 3 code base, which already is ready for such a split. On top of getting such a split in place, you would get a higher performance as the OpenVPN 3 code is more efficient than OpenVPN 2.x. But OpenVPN 3 does not support all the use cases OpenVPN 2.x does.
I hate to be so pessimistic, but I doubt any of the current core OpeVPN community developers will have capacity to get such a job done in the near future. We already struggle to get the current open patches for review processed, in addition to get OpenVPN 2.5 ready. More people helping out reviewing patches thoroughly would certainly help us move forward.
Btw, in regards to the man page. On my plate, in time for the 2.5 release, I will redo the formatting of the man page from ?roff format to some .rst files (and parse that to ?roff format during packaging). This is just the first step to get the man page in an easier editable format than what it is today.
Signature · 4 lines
kind regards, David Sommerseth OpenVPN Inc