Re: RFC: wg syncpeers wg0 wireguard.conf
> On Jun 11, 2019, at 12:28 PM, Jason A. Donenfeld wrote: > > I gave it a stab in this branch: > https://git.zx2c4.com/WireGuard/commit/?h=jd/syncconf Try it out and > let me know if it does what you had in mind? More testing, "syncconf" is working great. A real world example, connecting over WG to a remote instance, using a web interface for remote WG management: 1) "Restart WireGuard VPN" takes 35 seconds (using "setconf"), 17 seconds for the WG peer to reestablish and the rest of the time is most likely the TCP backoff timers for the HTTPS web interface session, totaling 35 seconds. 2) "Reload WireGuard VPN" takes << 1 second (using "syncconf"), no noticeable impact at all, even when editing the AllowedIPs of the peer tunnel used for access. Our project will be using Jason's elegant "syncconf" (above URL) as a patch, up until an official solution is committed. Lonnie ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard
Re: [PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11
Hey Rene, Thanks for this. I may merge this today, but I might revert the local_clock commit all together and replace it with something different, based on some in-progress discussions on LKML. I'll let you know. Jason ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard
[PATCH] timers: local_clock() is defined in linux/sched.h in kernel below v4.11
Fixes: 7a79457255d5 ("global: switch to local_clock()") Signed-off-by: René van Dorst --- src/timers.h | 4 1 file changed, 4 insertions(+) diff --git a/src/timers.h b/src/timers.h index ef1205690915..3af326056f3d 100644 --- a/src/timers.h +++ b/src/timers.h @@ -6,7 +6,11 @@ #ifndef _WG_TIMERS_H #define _WG_TIMERS_H +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) +#include +#else #include +#endif struct wg_peer; -- 2.20.1 ___ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard