mtu on Linux vs MacOS

2021-01-21 Thread Harald Dunkel
Hi folks, I am using PPPoE to connect to my IP provider. To use wireguard on Linux I have to reduce the MTU in wg0.conf to 1400. Using the default 1420 a ssh connection tunneled through wireguard gets stuck (reproducible). An echo of a very long line (e.g. 4096 chars) is sufficient. The weird pa

[PATCH 2/2] recognize and ignore commands used by wg-quick

2021-01-21 Thread Michael Tokarev
When reading the config file, recognize and ignore commands in the [Interface] section which are used by wg-qukck. This way wg-quick config file can be read by wg too directly so there's no need to filter it out by wg-quick and it's easy to reload configuration too. Signed-off-by: Michael Tokar

RE: Multiple Clients behind NAT

2021-01-21 Thread Posegga, Joachim
Thanks for all who responded. The setup is hard to debug, since the clients behind NAT are on the other side of the globe and I am configuring and debugging via Layer 8 ;-). Meanwhile I created the client configurations and configured the Mikrotik server from scratch again, it now provides a se

[PATCH 1/2] allow PrivateKey and PresharedKey to be files too

2021-01-21 Thread Michael Tokarev
In the config file, allow specifying PrivateKey and PresharedKey as files, not only directly. This way the config file can be made readable since the only security-sensitive part there is the keys which can now be stored separately. Signed-off-by: Michael Tokarev --- src/config.c | 14 ++

[PATCH] make conffile a bit more useful

2021-01-21 Thread Michael Tokarev
Hi! This is my first submission after using wireguard and facing a few trivial issues which makes using it a bit more clumsy than necessary. Following are 2 simple patches. First one makes wg tool to be able to read the keys specified in the config file as files, not as inline keys. This way we

Re: mtu on Linux vs MacOS

2021-01-21 Thread Roman Mamedov
On Sun, 17 Jan 2021 11:36:42 +0100 Harald Dunkel wrote: > Hi folks, > > I am using PPPoE to connect to my IP provider. To use wireguard on Linux I > have to reduce the MTU in wg0.conf to 1400. Using the default 1420 a ssh > connection tunneled through wireguard gets stuck (reproducible). An echo

Re: mtu on Linux vs MacOS

2021-01-21 Thread Roman Mamedov
On Thu, 21 Jan 2021 19:07:18 +0500 Roman Mamedov wrote: > On Sun, 17 Jan 2021 11:36:42 +0100 > Harald Dunkel wrote: > > > Hi folks, > > > > I am using PPPoE to connect to my IP provider. To use wireguard on Linux I > > have to reduce the MTU in wg0.conf to 1400. Using the default 1420 a ssh >