wireguard-tools v1.0.20200121
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEq5lC5tSkz8NBJiCnSfxwEqXeA64FAl4nD/MACgkQSfxwEqXe
A67Jaw/9E5t+SCVyKq0fx2nLNG9MsXIKFGTkgs6qkJwvEYjjBr/ZgLIqLOFaNU/h
VoGSyXqs1joUbbZOqNjIf5OA/5OqwKM2+hHKAsK+J3iuhI+zAtS4EbKa7RE4mJez
d+kyfl5pawUG/dVwP/ZoURZZCxgc54WTPwViMK7wotiKWK1BDb0ZEhCgScuX9wGA
5Q6nH8CuBX9BA5QokbMEkejXsAoLuBi8IzgTy/T7+y8FJiaQ2ZAVMdN+jIv7a0sE
/H0fuqXEV07NuWMUPCn05luFR4vn4CEHt1FXW/BI1Fgt02Y1caP6v/L3KpbV6tO/
H+I/eyMHy0Nja6ZQipLjW+v7mjhLAzdcEmDCnFhWTjP8q4hgezIX8vHD0BXtFrla
hWz8J2WLD0kL8PogC0eiftRrRHDzyu2yRzksV0EL53XNevQxEIZs8VeAaily9N64
A+xEHWIhvla+KzNbRepK1WCdgnMkdu5HShqNtcxegu2bm/Ypeq3RhmRyVQgnDP6T
nzTlggdvXZ7s+r9i4Pn0Mt9N4J17OrJVm0UVQ8b1pH9QfK+e6lHCrAfpz7OOdlXN
e8Vp8ZsJ1grqVqwRaTYDE2Bz99DZD5qZEdtl3SdJ9zXA05afxWO5QjXzUmd04F9Z
Eyi6NNi9fpjtLvS2wigrhL/YsCcmwfEft8sn74sqY5tvWU9KL3k=
=Z/H4
-----END PGP SIGNATURE-----
version: bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
1 file changed
tree: 2fb2438b953e29f812b1548d8360e339ddbad758
  1. .gitignore
  2. COPYING
  3. README.md
  4. contrib/
  5. src/
README.md

wireguard-tools — tools for configuring WireGuard

This supplies the main userspace tooling for using and configuring WireGuard tunnels, including the wg(8) and wg-quick(8) utilities. This project supports Linux, OpenBSD, FreeBSD, macOS, Windows, and Android.

More information may be found at WireGuard.com.

Building

$ cd src
$ make

On Linux, libmnl is required. On Windows, the MinGW compiler is required. On other platforms, only a sane libc is required.

Installing

# make install

This command takes into account several environment variables:

  • PREFIX default: /usr

  • DESTDIR default:

  • BINDIR default: $(PREFIX)/bin

  • LIBDIR default: $(PREFIX)/lib

  • MANDIR default: $(PREFIX)/share/man

  • BASHCOMPDIR default: $(PREFIX)/share/bash-completion/completions

  • RUNSTATEDIR default: /var/run

  • PKG_CONFIG default: pkg-config

  • WITH_BASHCOMPLETION default: [auto-detect]

  • WITH_WGQUICK default: [auto-detect]

  • WITH_SYSTEMDUNITS default: [auto-detect]

  • DEBUG default:

The first section is rather standard. The second section is not:

  • WITH_BASHCOMPLETION decides whether or not bash completion files for the tools are installed. This is just a nice thing for people who have bash. If you don‘t have bash, or don’t want this, set the environment variable to no. If you‘d like to force its use, even if bash-completion isn’t detected in DESTDIR, then set it to yes.

  • WITH_WGQUICK decides whether or not the wg-quick(8) script is installed. This is a very quick and dirty bash script for reading a few extra variables from wg(8)-style configuration files, and automatically configures the interface. If you don‘t have bash, you probably don’t want this at all. Likewise, if you already have a working network management tool or configuration, you probably want to integrate wg(8) or the direct WireGuard API into your network manager, rather than using wg-quick(8). But for folks who like simple quick and dirty scripts, this is nice. If you‘d like to force its use, even if bash isn’t detected in DESTDIR, then set it to yes.

  • WITH_SYSTEMDUNITS decides whether or not systemd units are installed for wg-quick(8). If you don‘t use systemd, you certainly don’t want this, and should set it to no. If systemd isn't auto-detected, but you still would like to install it, set this to yes.

  • DEBUG decides whether to build with -g, when set to yes.

If you‘re a simple make && make install kind of user, you can get away with not setting these variables and relying on the auto-detection. However, if you’re writing a package for a distro, you'll want to explicitly set these, depending on what you want.

contrib/

The contrib/ subdirectory contains various scripts and examples. Most of these are not immediately useful for production use, but should provide inspiration for creating fully-featured tools. See the README in each directory.

License

This project is released under the GPLv2.