Re: WireGuard for OpenBSD

2018-06-20 Thread Anthony J. Bentley
Hi Jason, Jason A. Donenfeld writes: > > - ipcErrorProtocol = -int64(unix.EPROTO) > > + ipcErrorProtocol = -int64(95) > > The x/sys/unix Go package now supports EPROTO on OpenBSD. Did you have > an old stale version in your Gopath? Filippo added it there three or > four weeks ago. The version

Re: WireGuard for OpenBSD

2018-06-20 Thread Jason A. Donenfeld
Hi Anthony, On Thu, Jun 21, 2018 at 3:05 AM Anthony J. Bentley wrote: > Oops, I accidentally sent out my (unfinished, broken) wireguard-go draft > from last week. Attached is the working version I meant to send out. Thanks. A few notes on what you just sent: > - ipcErrorProtocol =

Re: WireGuard for OpenBSD

2018-06-20 Thread Anthony J. Bentley
Jason A. Donenfeld writes: > Hi Anthony, > > Thanks for sending this along. Two questions: > > > ALL_TARGET = wg > > Do you need to add wg-quick as a target too? Doesn't look like it. WITH_WGQUICK is enough. > > sed -i s,git.zx2c4.com/wireguard-go,all, > > What is the purpose of this? Why do you

Re: WireGuard for OpenBSD

2018-06-20 Thread Jason A. Donenfeld
Hi Anthony, Thanks for sending this along. Two questions: > ALL_TARGET = wg Do you need to add wg-quick as a target too? > sed -i s,git.zx2c4.com/wireguard-go,all, What is the purpose of this? Why do you need this? The makefile should successfully fake a gopath. This install script currently

Re: WireGuard for OpenBSD

2018-06-20 Thread Anthony J. Bentley
Stuart Henderson writes: > bentley@ sent a port of wireguard-tools shortly after Jason's first mail Here's my latest revision. I think everything's working now--I've tested communication with the Android app, at least. This requires the go-tools patch I just sent to the list. -- Anthony J.

Re: WireGuard for OpenBSD

2018-06-19 Thread Stuart Henderson
On 2018/06/19 22:04, Rolf Sommerhalder wrote: > > Is there any chance of this being made into a port/package, knowing > > it's just a snapshot? > > I have just send my first attempt for a new port "net/wireguard" to this list. > Please test and send diffs/PRs, thanks! > The approach you're

Re: WireGuard for OpenBSD

2018-06-19 Thread Rolf Sommerhalder
> Is there any chance of this being made into a port/package, knowing > it's just a snapshot? I have just send my first attempt for a new port "net/wireguard" to this list. Please test and send diffs/PRs, thanks!

Re: WireGuard for OpenBSD

2018-06-13 Thread jungle Boogie
Hi All, A new wireguard snapshot has been made. wireguard-tools, providing wg(8) and wg-quick(8) https://git.zx2c4.com/WireGuard/snapshot/WireGuard-0.0.20180613.tar.xz wireguard-go https://git.zx2c4.com/wireguard-go/snapshot/wireguard-go-0.0.20180613.tar.xz Is there any chance of this being

Re: WireGuard for OpenBSD

2018-05-23 Thread Jason A. Donenfeld
Alright, we now have a release that fully supports OpenBSD, so the full instructions for the two packages are: 1. wireguard-tools, providing wg(8) and wg-quick(8) Runtime dependencies: libc, bash, wireguard-go Buildtime dependencies: gmake, c compiler, libc Fixup: sed -i 's/install

Re: WireGuard for OpenBSD

2018-05-23 Thread Jason A. Donenfeld
On Wed, May 23, 2018 at 3:59 PM, Landry Breuil wrote: > I wouldnt count on it, since generally openbsd is wary of adding > unecessary options, adding -v to mv and cp lead to quite a bit of > bikeshedding, and mv -P was recently strongly turned down. Yikes! I didn't realize I

Re: WireGuard for OpenBSD

2018-05-23 Thread Landry Breuil
On Wed, May 23, 2018 at 03:48:26PM +0200, Jason A. Donenfeld wrote: > On Wed, May 23, 2018 at 3:24 PM, Landry Breuil wrote: > > On Wed, May 23, 2018 at 02:28:13PM +0200, Jason A. Donenfeld wrote: > >> On Wed, May 23, 2018 at 10:55 AM, Anthony J. Bentley >

Re: WireGuard for OpenBSD

2018-05-23 Thread Jason A. Donenfeld
On Wed, May 23, 2018 at 3:24 PM, Landry Breuil wrote: > On Wed, May 23, 2018 at 02:28:13PM +0200, Jason A. Donenfeld wrote: >> On Wed, May 23, 2018 at 10:55 AM, Anthony J. Bentley >> wrote: >> > Attached is one. It will need to be updated to use the next

Re: WireGuard for OpenBSD

2018-05-23 Thread Landry Breuil
On Wed, May 23, 2018 at 02:28:13PM +0200, Jason A. Donenfeld wrote: > On Wed, May 23, 2018 at 10:55 AM, Anthony J. Bentley > wrote: > > Attached is one. It will need to be updated to use the next tag once > > it's released. > > Looks good to me. Indeed I don't like this

Re: WireGuard for OpenBSD

2018-05-23 Thread Jason A. Donenfeld
On Wed, May 23, 2018 at 10:55 AM, Anthony J. Bentley wrote: > Attached is one. It will need to be updated to use the next tag once > it's released. Looks good to me. Indeed I don't like this manually carrying files from the next release in ${FILES}, but that problem goes away

Re: WireGuard for OpenBSD

2018-05-23 Thread Anthony J. Bentley
Jason A. Donenfeld writes: > 1. wireguard-tools, providing wg(8) and wg-quick(8) > Runtime dependencies: bash, wireguard-go, libc > Buildtime dependencies: gmake, c compiler, libc > Fixup: sed -i 's/ -v / /g' src/tools/Makefile > Build: gmake -C src/tools WITH_WGQUICK=yes > Install: gmake -C

WireGuard for OpenBSD

2018-05-22 Thread Jason A. Donenfeld
[cross-posted to the WireGuard mailing list] Hello OpenBSD Ports List, I sent a very similar email [0] to the FreeBSD ports list yesterday. 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,