[Openvpn-devel] [PATCH v3] Fix update_time() and openvpn_gettimeofday() coexistence

2020-09-22 Thread Vladislav Grishenko
With TIME_BACKTRACK_PROTECTION defined, openvpn_gettimeofday() uses and updates global variable "now_usec" along with "now" only if current time is ahead of the previsouly stored, taking nanoseconds into account. But, update_time() function updates only "now" leaving "now_usec" as is with any

Re: [Openvpn-devel] [PATCH] Fix update_time() and openvpn_gettimeofday()

2020-09-22 Thread Arne Schwabe
> --- a/src/openvpn/otime.h > +++ b/src/openvpn/otime.h > @@ -78,13 +78,9 @@ openvpn_gettimeofday(struct timeval *tv, void *tz) > static inline void > update_time(void) > { > -#ifdef _WIN32 > -/* on _WIN32, gettimeofday is faster than time(NULL) */ > +/* can't use time(NULL), now_usec

[Openvpn-devel] OpenVPN 2.5-rc1 released

2020-09-22 Thread Samuli Seppänen
The OpenVPN community project team is proud to release OpenVPN 2.5-rc1. Source code and Windows installers can be downloaded from our download page: Debian and Ubuntu packages are available in the official apt repositories:

Re: [Openvpn-devel] [PATCH] Fix update_time() and openvpn_gettimeofday()

2020-09-22 Thread Vladislav Grishenko
Hi Arne, > But that also > implies it is the other way round on other platforms. The update_time > function is > called in multiple critical places. Do we have any idea about this? On Linux with glibc's implementation both time() and gettimeofday() results in the same clock_gettime() call over

Re: [Openvpn-devel] OpenVPN 2.5-rc1 released unable to redirect IPv4 default gateway under Windows

2020-09-22 Thread Thomas Schäfer
Am Dienstag, 22. September 2020, 11:10:44 CEST schrieb Samuli Seppänen: > The OpenVPN community project team is proud to release OpenVPN > 2.5-rc1. Source code and Windows installers can be downloaded from our > download page: > > Please report bugs and

[Openvpn-devel] Introducing the OpenVPN Data Channel Offload Linux kernel module (ovpn-dco)

2020-09-22 Thread Antonio Quartulli
Dear all, OpenVPN Inc.[1] and me are happy to announce that today we have released to the public our work-in-progress project called "ovpn-dco". ovpn-dco stands for "OpenVPN Data Channel Offload". It is a Linux kernel module and it implements all required functionalities to handle the OpenVPN

[Openvpn-devel] [PATCH v2] Fix update_time() and openvpn_gettimeofday() coexistance

2020-09-22 Thread Vladislav Grishenko
With TIME_BACKTRACK_PROTECTION defined, openvpn_gettimeofday() uses and updates global variable "now_usec" along with "now" only if current time is ahead of the previsouly stored, taking nanoseconds into account. But, update_time() function updates only "now" leaving "now_usec" as is with any

Re: [Openvpn-devel] OpenVPN 2.5-rc1 released unable to redirect IPv4 default gateway under Windows

2020-09-22 Thread Gert Doering
Hi, On Tue, Sep 22, 2020 at 04:21:49PM +0200, Thomas Schäfer wrote: > Am Dienstag, 22. September 2020, 11:10:44 CEST schrieb Samuli Seppänen: > > The OpenVPN community project team is proud to release OpenVPN > > 2.5-rc1. Source code and Windows installers can be downloaded from our > > download

Re: [Openvpn-devel] OpenVPN 2.5-rc1 released unable to redirect IPv4 default gateway under Linux

2020-09-22 Thread Thomas Schäfer
same problem, different message: with 2.5rc NOTE: unable to redirect IPv4 default gateway -- Cannot obtain current remote host address with 2.4.3 (version of my linux distributor) it still works in that environment / configuration both are compiled with --enable-iproute2

Re: [Openvpn-devel] OpenVPN 2.5-rc1 released unable to redirect IPv4 default gateway under Linux

2020-09-22 Thread Gert Doering
Hi, On Tue, Sep 22, 2020 at 04:57:48PM +0200, Thomas Schäfer wrote: > same problem, different message: > with 2.5rc > NOTE: unable to redirect IPv4 default gateway -- Cannot obtain current remote > host address > > with 2.4.3 (version of my linux distributor) it still works in that >