How to improve Wireguard speed?

2022-06-01 Thread Houman
Hello, I'm compiling the latest stable Wireguard on Debian 11. git clone https://git.zx2c4.com/wireguard-tools make -C wireguard-tools/src -j$(nproc) sudo make -C wireguard-tools/src install However the speed is not that impressive. I have a VPS with 4 vCores and 8 GB RAM on 1 Gbps network. Th

Re: How to improve Wireguard speed?

2022-06-01 Thread Janne Johansson
Den ons 1 juni 2022 kl 09:49 skrev Houman : > Hello, > I'm compiling the latest stable Wireguard on Debian 11. > git clone https://git.zx2c4.com/wireguard-tools > make -C wireguard-tools/src -j$(nproc) > sudo make -C wireguard-tools/src install > > However the speed is not that impressive. I have

Re: How to improve Wireguard speed?

2022-06-01 Thread Houman
Thanks for your reply. I have run htop to observe the CPU consumption during this test, and the CPU(s) go up only to 10-20%. So the CPU doesn't seem to be the bottleneck. I didn't change the MTU settings, but I have a suspicion about MTU. I found this article here that makes some interesting sugg

[PATCH wireguard-go] tun: use ByteSliceToString from golang.org/x/sys/unix

2022-06-01 Thread Tobias Klauser
Use unix.ByteSliceToString in (*NativeTun).nameSloce to convert the TUNGETIFF ioctl result []byte to a string. Signed-off-by: Tobias Klauser --- tun/tun_linux.go | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tun/tun_linux.go b/tun/tun_linux.go index 89b716d9c70b..fbb8

Re: [PATCH wireguard-go] tun: use ByteSliceToString from golang.org/x/sys/unix

2022-06-01 Thread Tobias Klauser
On 2022-06-01 at 11:33:54 +0200, Tobias Klauser wrote: > Use unix.ByteSliceToString in (*NativeTun).nameSloce to convert the ^- this should say `nameSlow` I can fix it up in a v2 patch if needed.

Re: How to improve Wireguard speed?

2022-06-01 Thread Roman Mamedov
On Wed, 1 Jun 2022 10:07:31 +0100 Houman wrote: > I didn't change the MTU settings, but I have a suspicion about MTU. I > found this article here that makes some interesting suggestions to set > MTU to 1280: https://keremerkan.net/posts/wireguard-mtu-fixes/ > > And beyond that iptables -A FORWAR

Re: How to improve Wireguard speed?

2022-06-01 Thread Houman
Thanks Roman. > So did you apply both of that, and what was the effect? I will create a new environment this afternoon and test the MTU changes mentioned earlier and investigate the outcome. > What are the other point that you test against, is it another VPS (better if > you could try with that)

Re: How to improve Wireguard speed?

2022-06-01 Thread Frank Carmickle
It's almost certainly the iPhone that's the slow part. The wireguard implementation on iOS is running in userspace. --FC > On Jun 1, 2022, at 7:40 AM, Houman wrote: > > Thanks Roman. > >> So did you apply both of that, and what was the effect? > > I will create a new environment this afterno

Re: [PATCH wireguard-go] tun: use ByteSliceToString from golang.org/x/sys/unix

2022-06-01 Thread Jason A. Donenfeld
Applied, thanks.

Multiple search domains settings in MacOS based on config file

2022-06-01 Thread Simon Karberg
Hi, I can see in my config file under DNS that I have our primary DNS server ip address and then added search domains with comma list after. On linux & Windows it seems to be set correctly but it's not being set through the MacOS client from the app store. I have tried to look through the source