Go to file
John Baldwin 54b2075e29 build: only include compat.h for if_wg.c and fix build with an obj directory
In particular, this permits building the module as part of a kernel
build via the LOCAL_MODULES facility.

Signed-off-by: John Baldwin <jhb@FreeBSD.org>
2022-06-10 18:56:32 +02:00
src build: only include compat.h for if_wg.c and fix build with an obj directory 2022-06-10 18:56:32 +02:00
tests netns: use massive datagrams 2021-06-01 15:27:11 +02:00
.cirrus.yml ci: test on 12.1 and 12.2 2021-06-01 15:27:11 +02: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 ci: test on 12.1 and 12.2 2021-06-01 15:27:11 +02:00
TODO.md global: replace rwlock with mtx if never rlocked 2021-06-05 23:29:57 +02:00

README.md

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

Snapshots of this may be installed from packages:

# pkg install wireguard

Building instructions

If you'd prefer to build this repo from scratch, rather than using a package, first make sure you have the latest net/wireguard-tools package installed, version ≥1.0.20210424. Then, on FreeBSD 12.1, 12.2, and 13.0:

# 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.