[PATCH 1/2] build/tools: Add support for Haiku

2019-02-28 Thread Alexander von Gluck IV
--- src/tools/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/Makefile b/src/tools/Makefile index f2904f2..0eecc57 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -51,6 +51,9 @@ LIBMNL_LDLIBS := $(shell $(PKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl)

[PATCH 2/2] genkey: Be more aggressive in the search for entropy

2019-02-28 Thread Alexander von Gluck IV
* If we don't get the amount of entropy we were looking for, go back to the pool several times. Haiku seems to only provide up to 16 bytes per urandom access resulting in weird behaviour in this code. --- src/tools/genkey.c | 19 +-- 1 file changed, 17 insertions(+), 2 deleti

Fw: WireGuard/src/tools/ipc.c improvement

2019-02-28 Thread ????
Hi dear developers of WireGuard! Recently, I've been reading the source code of WireGuard. The function name like ipc_get_device() looks to be a little bit misleading. To make the code more readable for new developers, here are some suggestions: Rename ipc_get_device(&dev) to ipc_fetch_conf

[PATCH 1/2] tools: Rename IPC functions to reduce misleading

2019-02-28 Thread 517067180
From: Liu Qun <517067...@qq.com> The function name like ipc_get_device() is a little bit misleading. To make the code more readable for new developers, here are some suggestions: * Rename ipc_get_device(&dev) to ipc_fetch_conf(&conf) because it only fetches the runtime configuations from kernel.

bind to specific ip address

2019-02-28 Thread Bryce Allen
Hi, I have run into several wifi networks that block almost all traffic, allowing only 80/443 and 53. To work around this, I got a second IP address for my linode server, intending to run ssh on port 80 and wireguard on 53. This works for ssh, which I set up to bind on port 80 to the new IP only,

Openresolv package is a requirement and should be added to install docs

2019-02-28 Thread F
Learnt how to get WG working here https://github.com/StreisandEffect/streisand/issues/1434 and it describes how the openresolv package is needed to get WG to connect properly. This is not noted in the official WG docs and the average person would have difficulty figuring out why wg-quick doesn't c

BUG: Ubuntu package doesn't return proper error code on failure

2019-02-28 Thread Florian Anderiasch
Hi, please excuse if this is the wrong medium to report this error, but I couldn't manage to file a bug on Launchpad. Ubuntu 18.04 4.15.0-45-generic wireguard-dkms 0.0.20190123-wg1~bionic wireguard-dkms failed to install properly because the kernel module could no

Help calculate MTU, ISP's 1448

2019-02-28 Thread STR .
Hi, I have Fiber to our apartment complex basement, from there Cat6 runs to each apartment. The ISP/apartment service provider suggests an MTU of 1448, which I set for the PPPoE interface on my OpenWRT router. I read https://lists.zx2c4.com/pipermail/wireguard/2017-December/002201.html which com

Re: Openresolv package is a requirement and should be added to install docs

2019-02-28 Thread Reuben Martin
On Thu, Feb 28, 2019, 12:29 PM F wrote: > Learnt how to get WG working here > https://github.com/StreisandEffect/streisand/issues/1434 and it > describes how the openresolv package is needed to get WG to connect > That may be a requirement in the context that document was written for. But that i

Re: Help calculate MTU, ISP's 1448

2019-02-28 Thread Roman Mamedov
On Tue, 26 Feb 2019 12:39:50 + "STR ." wrote: > I have Fiber to our apartment complex basement, from there Cat6 runs to > each apartment. The ISP/apartment service provider suggests an MTU of > 1448, which I set for the PPPoE interface on my OpenWRT router. It could be that your ISP meant th

[PATCH 1/2] build/tools: Add support for Haiku

2019-02-28 Thread Alexander von Gluck IV
--- src/tools/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/Makefile b/src/tools/Makefile index f2904f2..0eecc57 100644 --- a/src/tools/Makefile +++ b/src/tools/Makefile @@ -51,6 +51,9 @@ LIBMNL_LDLIBS := $(shell $(PKG_CONFIG) --libs libmnl 2>/dev/null || echo -lmnl)

[PATCH 2/2] genkey: v2. Be more aggressive in the search for entropy

2019-02-28 Thread Alexander von Gluck IV
* If we don't get the amount of entropy we were looking for, go back to the pool several times. Haiku seems to only provide up to 16 bytes per urandom access resulting in weird behaviour in this code. * Prevents one of those lovely "error: success" errors when no entropy can be had from /de

Re: Help calculate MTU, ISP's 1448

2019-02-28 Thread Denis Kisselev
Check what IP's the google domains are resolving to. You might be getting IPv6 DNS responses back and your VPN/firewall configuration is blocking them. I've run into the opposite issue where my ISP's IPv4 stack crashed and Google/Facebook worked (over IPv6) but most other sites failed. _

Re: Help calculate MTU, ISP's 1448

2019-02-28 Thread Derrick Lyndon Pallas
I've had to drop to 1280 from Linode to several cellular carriers or else IPv6 fails. Ymmv, but the primary problem I've seen is MTU discovery failing because the v6 message is being eaten but not the v4 message. Have you enabled discovery in the kernel? ~Derrick • iPhone > On Feb 28, 2019, at

Re: bind to specific ip address

2019-02-28 Thread Ivan Labáth
Hi, as has been noted on a thread by Tomas Herceg on 2018-06-22, a workaround is to internally listen on a different port, and use NAT so it appears as the desired port on the outside. If you really wanted to, with some iptables magic (e.g. u32 match), you could match and split wireguard traffic