Skip to contentSkip to conversation

OpenVPN 2.4.0 released

Openvpn-devel Samuli Seppänen 4 participants 4 messages Dec 29, 2016 – Dec 30, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

Any comments about the forwarded email? Is our documentation regarding "or-highest" correct?

Samuli

-------- Messaggio Inoltrato --------
Oggetto: Re: [Openvpn-announce] OpenVPN 2.4.0 released
Data: Tue, 27 Dec 2016 22:04:23 -0600
Mittente: Michael French <[email protected]...>
A: Samuli Seppänen <[email protected]...>

Hi Samuli,
I installed 2.4 on a couple Windows 7x64 computers and all seems well. I even got tls-crypt to work using the old ta.key file on both client and server.

However, I noticed in the documentation for 2.4 that the parameter tls-version-min is supposed to work with the 'or-highest' option, but it does not.

I wish that it did work because I always want to run with the most secure version of TLS and the 'or-highest' option would save me the trouble of manually editing the TLS number every time it changes.

Thanks and keep up the good work!

Regards,
Mike

#2 lore raw

Am 29.12.16 um 10:53 schrieb Samuli Seppänen:

Quoted 5 lines

Hi,

Any comments about the forwarded email? Is our documentation regarding "or-highest" correct?

Yes should be correct. Speciyfing a not yet supported tls version, e.g. "1.3" will also give an error.

Also this directive is not for being always bumped to the next version but (as tls-version-max) but to exclude certain version, i.e. 1.0.

Arne

#3 lore raw
In reply to Samuli Seppänen
Quoted 21 lines · Samuli Seppänen

Hi,

Any comments about the forwarded email? Is our documentation regarding "or-highest" correct?

Samuli

-------- Messaggio Inoltrato --------

Oggetto:        Re: [Openvpn-announce] OpenVPN 2.4.0 released
Data:   Tue, 27 Dec 2016 22:04:23 -0600
Mittente:       Michael French <[email protected]...>
A:      Samuli Seppänen <[email protected]...>

Hi Samuli,
I installed 2.4 on a couple Windows 7x64 computers and all seems well. I even got tls-crypt to work using the old ta.key file on both client and server.

Quoted 8 lines

However, I noticed in the documentation for 2.4 that the parameter tls-version-min is supposed to work with the 'or-highest' option, but it does not.

I wish that it did work because I always want to run with the most secure version of TLS and the 'or-highest' option would save me the trouble of manually editing the TLS number every time it changes.

I too find this option somewhat counter-intuitive. I think you can effectively get it set to the highest available version by specifying an insanely large number as the first parameter. For example,

--tls-version-min 5.0 or-highest

As 5.0 is larger than any available versions, the minimum will get set to the highest available (say 1.2).

However, that will also make it impossible to connect to a server that doesn't support the said version.

Selva

#4 lore raw

Hi,

Quoted 13 lines · Selva Nair

On Thu, Dec 29, 2016 at 5:53 AM, Samuli Seppänen <[email protected]... <mailto:[email protected]...>> wrote:

    -------- Messaggio Inoltrato --------
    Oggetto:        Re: [Openvpn-announce] OpenVPN 2.4.0 released
    Data:   Tue, 27 Dec 2016 22:04:23 -0600
    Mittente:       Michael French <[email protected]...
    <mailto:[email protected]...>>
    A:      Samuli Seppänen <[email protected]... <mailto:[email protected]...>>

    I installed 2.4 on a couple Windows 7x64 computers and all seems well.
    I even got tls-crypt to work using the old ta.key file on both client
    and server.

As a general rule of thumb: if you change your cryptographic primitives (here, exchange --tls-auth for --tls-crypt), also change your keys. So it would be best to generate a fresh tc.key, to replace your ta.key.

(In this case, reusing ta.key will *probably* not break the crypto, but better be safe than sorry.)

Quoted 3 lines

However, I noticed in the documentation for 2.4 that the parameter tls-version-min is supposed to work with the 'or-highest' option, but it does not.

Please specify what you mean when you say 'it does not'. Do you get connection errors? Is a different-then-expected version negotiated? Please elaborate.

Quoted 8 lines

I wish that it did work because I always want to run with the most secure version of TLS and the 'or-highest' option would save me the trouble of manually editing the TLS number every time it changes.

I too find this option somewhat counter-intuitive. I think you can effectively get it set to the highest available version by specifying an insanely large number as the first parameter. For example,

Quoted 7 lines

--tls-version-min 5.0 or-highest

As 5.0 is larger than any available versions, the minimum will get set to the highest available (say Since 1.2).

However, that will also make it impossible to connect to a server that doesn't support the said version.

Exactly this. To clarify a bit more, there are two mechanisms to enforce that the most secure version is used:

1) TLS version negotiation will automatically used the newest TLS version *that both peers support*. So if e.g. the server supports upto 1.2, and the client upto 1.1, TLS will negotiate 1.1. OpenVPN does not do any browser-like 'version fallback'.

2) To prevent any attacks on problems in the above mechanisms, or enforce a specific version to be used, you can use OpenVPN's --tls-version-min. Using or-highest as Selva suggests will ensure that the highest version support *by the local OpenVPN version* is required. So if you peer does not support that version, the connection will fail.

Summarizing, only use --tls-version-min if you are sure that *all* peers in you network support that version. And if you do not use --tls-version-min, TLS will automatically negotiate the highest version that *is* possible to negotiate.

-Steffan