OpenVPN / openvpn3-linux

OpenVPN 3 Linux client
GNU Affero General Public License v3.0
554 stars 148 forks source link

openvpn3-autoload / ConfigParser.py do not allow the usage of possible argument #36

Closed rloutrel closed 3 years ago

rloutrel commented 3 years ago

Given: The template configuration file from ubuntu 20.04

$ openvpn3 version
OpenVPN 3/Linux v13_beta (openvpn3)
OpenVPN core 3.git:HEAD:ce0c9963 linux x86_64 64-bit
Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.

$ less  /usr/share/doc/openvpn/examples/sample-config-files/client.conf

When: Using the 'mute' parameter with openvpn3-autoload mute 20

Then:

dsommers commented 3 years ago

Hi,

Thanks for the report. These all seems to be options we need to add to the ignore list; neither of them exists for the OpenVPN 3 Core library and they make little sense in the OpenVPN 3 context. For the time being, --route-method, --mute and --route-delay can all be removed from your current config.

I will try to remember to fix this for the next v14_beta release.

rloutrel commented 3 years ago

I am working on a PR. For the mute parameter it seems quite easy. for the 2 others, I am not sure about the acceptable formats.

Is there anywhere an official documentation?

dsommers commented 3 years ago

Awesome! Please send these patches to the openvpn-devel@lists.sourceforge.net mailing list; see the wiki page for some more details: https://community.openvpn.net/openvpn/wiki/DeveloperDocumentation

All of these three options can go into the "ignored section" of ConfigParser.py. For the option syntax, see the OpenVPN 2.x man pages (--route-method, --route-delay)

rloutrel commented 3 years ago

Patch submitted. I had to create a new mail address to avoid mine to be public.

Quite a bit complicated process, but I hope I helped.

dsommers commented 3 years ago

Great! Thanks a lot! I will review it properly next week and merge it. At first glance it looks good.

The process may seem complicated, but it ensures that the review is preserved even if GitHub disappears in the future, due to the distributed nature of e-mail and mailing lists. It will always be possible to nest up why a change appeared later, something which is important for security products like VPN solutions.

dsommers commented 3 years ago

Thank you very much. This has been reviewed and applied to git master, commit b1a270062e3d35dcf73f57340bd85fcb3d84b4cc