1
mirror of git://git.zx2c4.com/wireguard-freebsd synced 2024-09-22 06:02:07 +02:00
Go to file
Matt Dunwoodie 4947482e22 if_wg: better loop detection
While it was nice to have per peer loop detection, it was not meant to
be. The loop tag has a tag type == 0, which conflicts with other tags.
Therefore we want to at least be a little bit more sure that the tag
cookie is unique to the loop tag. I guess the peer address was also
quite hacky so on the other side, I'm glad to be rid of that.

Now we have a loop of 8 (to any peer) which should be good enough for an
edge case operation.

Signed-off-by: Matt Dunwoodie <ncon@noconroy.net>
2021-04-22 00:02:45 -06:00
src if_wg: better loop detection 2021-04-22 00:02:45 -06:00
tests Initial import 2021-03-17 09:35:54 -06:00
COPYING Initial import 2021-03-17 09:35:54 -06:00
MISSING.md compat: backport to FreeBSD 12.2 2021-03-18 09:00:52 -06:00
README.md README: separate build stage 2021-03-23 12:23:11 -06:00
TODO.md selftests: fixup headers 2021-04-22 00:02:45 -06:00

WireGuard for FreeBSD

This is a kernel module for FreeBSD to support WireGuard. It is being developed here before its eventual submission to FreeBSD 13.1 or 14.

Installation instructions

First make sure you have the latest net/wireguard package installed, version ≥1.0.20210315.

Then, on FreeBSD 12 & 13:

# git clone https://git.zx2c4.com/wireguard-freebsd
# make -C wireguard-freebsd/src
# make -C wireguard-freebsd/src load install

After that, it should be possible to use wg(8) and wg-quick(8) like usual, but with the faster kernel implementation.