Re: WireGuard for FreeBSD

2018-05-21 Thread Chris H
On Mon, 21 May 2018 23:35:45 +0200 "Jason A. Donenfeld" said [cross-posted to the WireGuard mailing list] Hello FreeBSD Ports List, I'm the author of WireGuard [1], a secure network tunnel protocol [2] and a set of implementations of it. It was originally designed for the Linux kernel, but we

Re: WireGuard for FreeBSD

2018-05-21 Thread Jason A. Donenfeld
Hi Chris, Wonderful! Feel free to poke me on IRC -- I'm zx2c4 in #wireguard on Freenode -- if you need any pointers in real time. Some odds and ends that might help: to have a tarball of the latest git master, you can use these links: https://git.zx2c4.com/WireGuard/snapshot/WireGuard-master.tar

Re: WireGuard for FreeBSD

2018-05-21 Thread Jason A. Donenfeld
On Tue, May 22, 2018 at 2:33 AM, Outback Dingo wrote: > to be honest, while it sounds nice, i for one would prefer to see a > kernel module ported to FreeBSD instead of userland > second to that, building a freebsd port of it is not all that hard, > however that being said, it also needs to be acc

Re: WireGuard for FreeBSD

2018-05-22 Thread Jason A. Donenfeld
Hi Bernhard, Thanks for this. Hopefully this will be good inspiration for Chris' research in making the official package. Chris -- one thing to note is that Bernhard used the "-master" tarballs, which aren't real tarballs and have changing unstable checksums, so you'll of course want to swap this

Re: WireGuard for FreeBSD

2018-05-23 Thread Jason A. Donenfeld
On Mon, May 21, 2018 at 11:35 PM, Jason A. Donenfeld wrote: > 2. wireguard-go > Runtime dependencies: none > Buildtime dependencies: gmake, go > Build: export GOPATH=$(pwd)/gopath; go get -d; gmake > Install: gmake PREFIX=/usr/local install > URL template: > https://git.zx2c4.com/wireguard-go/sna

Re: WireGuard for FreeBSD

2018-05-23 Thread Jason A. Donenfeld
We now have a release, so the full instructions for the packages are: 1. wireguard-tools, providing wg(8) and wg-quick(8) Runtime dependencies: bash, wireguard-go Buildtime dependencies: gmake, c compiler, libc Build: gmake -C src/tools WITH_WGQUICK=yes Install: gmake -C src/tools PREFIX=/usr/loca

Re: WireGuard for FreeBSD

2018-05-24 Thread Bernhard Fröhlich
On Thu, May 24, 2018 at 3:06 AM, Jason A. Donenfeld wrote: > We now have a release, so the full instructions for the packages are: > > 1. wireguard-tools, providing wg(8) and wg-quick(8) > Runtime dependencies: bash, wireguard-go > Buildtime dependencies: gmake, c compiler, libc > Build: gmake -C

Re: WireGuard for FreeBSD

2018-05-24 Thread Jan Bramkamp
On 24.05.18 09:15, Bernhard Fröhlich wrote: On Thu, May 24, 2018 at 3:06 AM, Jason A. Donenfeld wrote: We now have a release, so the full instructions for the packages are: 1. wireguard-tools, providing wg(8) and wg-quick(8) Runtime dependencies: bash, wireguard-go Buildtime dependencies: gmak

Re: WireGuard for FreeBSD

2018-05-24 Thread Jason A. Donenfeld
On Thu, May 24, 2018 at 12:43 PM, Jan Bramkamp wrote: > Did I understand correctly that both these ports are userspace > implementations and have a similar per packet overhead to OpenVPN and fastd? Indeed they're userspace ports. Maybe down the line this will be ported to the FreeBSD kernel like

Re: WireGuard for FreeBSD

2018-05-24 Thread Chris H
On Thu, 24 May 2018 09:15:28 +0200 "Bernhard Fröhlich" said On Thu, May 24, 2018 at 3:06 AM, Jason A. Donenfeld wrote: > We now have a release, so the full instructions for the packages are: > > 1. wireguard-tools, providing wg(8) and wg-quick(8) > Runtime dependencies: bash, wireguard-go > Bu

Re: WireGuard for FreeBSD

2018-05-24 Thread Chris H
On Thu, 24 May 2018 19:39:22 +0200 "Jason A. Donenfeld" said Hi Chris, On Thu, May 24, 2018 at 3:38 PM, Chris H wrote: > I should have no trouble introducing Wireguard to the ports system today. I'm not a native fluent speaker of FreeBSDese, but my understanding is: a) Bernhard committed the

Re: WireGuard for FreeBSD

2018-05-25 Thread Bernhard Fröhlich
On Thu, May 24, 2018 at 9:06 PM, Chris H wrote: > On Thu, 24 May 2018 19:39:22 +0200 "Jason A. Donenfeld" > said > >> Hi Chris, >> >> On Thu, May 24, 2018 at 3:38 PM, Chris H wrote: >> > I should have no trouble introducing Wireguard to the ports system >> > today. >> >> I'm not a native fluent

Re: WireGuard for FreeBSD

2018-05-25 Thread Bernhard Fröhlich
On Fri, May 25, 2018 at 12:24 AM, Chris H wrote: > On Thu, 24 May 2018 22:16:42 +0200 "Bernhard Froehlich" > said > >> Am 24.05.2018 21:06 schrieb Chris H : >> > >> > On Thu, 24 May 2018 19:39:22 +0200 "Jason A. Donenfeld" >> > >> > said > >> > > Hi Chris, > > > > On Thu, May 24, 2018 at 3:38 PM

Re: WireGuard for FreeBSD

2018-05-25 Thread Jan Bramkamp
On 25.05.18 09:29, Bernhard Fröhlich wrote: On Fri, May 25, 2018 at 12:24 AM, Chris H wrote: On Thu, 24 May 2018 22:16:42 +0200 "Bernhard Froehlich" said Am 24.05.2018 21:06 schrieb Chris H : On Thu, 24 May 2018 19:39:22 +0200 "Jason A. Donenfeld" said > Hi Chris, > > > > On Thu, May 2

Re: WireGuard for FreeBSD

2018-05-25 Thread Jan Bramkamp
On 24.05.18 13:07, Jason A. Donenfeld wrote: On Thu, May 24, 2018 at 12:43 PM, Jan Bramkamp wrote: Did I understand correctly that both these ports are userspace implementations and have a similar per packet overhead to OpenVPN and fastd? Indeed they're userspace ports. Maybe down the line th

Re: WireGuard for FreeBSD

2018-05-25 Thread Jan Bramkamp
On 25.05.18 15:11, Bernhard Fröhlich wrote: On Fri, May 25, 2018 at 12:05 PM, Jan Bramkamp wrote: On 25.05.18 09:29, Bernhard Fröhlich wrote: On Fri, May 25, 2018 at 12:24 AM, Chris H wrote: On Thu, 24 May 2018 22:16:42 +0200 "Bernhard Froehlich" said Am 24.05.2018 21:06 schrieb Chris

Re: WireGuard for FreeBSD

2018-05-25 Thread Chris H
On Fri, 25 May 2018 12:05:40 +0200 "Jan Bramkamp" said On 25.05.18 09:29, Bernhard Fröhlich wrote: > On Fri, May 25, 2018 at 12:24 AM, Chris H wrote: >> On Thu, 24 May 2018 22:16:42 +0200 "Bernhard Froehlich" >> said >> >>> Am 24.05.2018 21:06 schrieb Chris H : On Thu, 24 May 2018 1