You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**BoringTun** is an implementation of the [WireGuard<sup>®</sup>](https://www.wireguard.com/) protocol designed for portability and speed.
6
8
7
9
The project consists of two parts:
8
10
9
11
* The executable `boringtun`, a [userspace WireGuard](https://www.wireguard.com/xplatform/) implementation for Linux and macOS.
10
12
* The library `boringtun` that can be used to implement fast and efficient WireGuard client apps on various platforms, including iOS and Android. It implements the underlying WireGuard protocol, without the network or tunnel stacks, those can be implemented in a platform idiomatic way.
11
13
14
+
⚠️ **NOTE:** This crate is still undergoing review for security concerns. Therefore, we recommend that you take caution before using it in a production application.
By default the executable is placed in the `./target/release` folder. You can copy it to a desired location manually, or install it using `cargo install --bin boringtun --path .`.
18
22
19
-
## Testing
20
-
21
-
Testing this project has a few requirements:
22
-
23
-
-`sudo`: required to create tunnels. When you run `cargo test` you'll be prompted for your password.
24
-
- Docker: you can install it [here](https://www.docker.com/get-started). If you are on Ubuntu/Debian you can run `apt-get install docker.io`.
25
-
26
23
### Running
27
24
28
25
As per the specification, to start a tunnel use:
@@ -31,10 +28,27 @@ As per the specification, to start a tunnel use:
31
28
32
29
The tunnel can then be configured using [wg](https://git.zx2c4.com/WireGuard/about/src/tools/man/wg.8), as a regular WireGuard tunnel, or any other tool.
33
30
34
-
It is also possible to use with [wg-quick](https://git.zx2c4.com/WireGuard/about/src/tools/man/wg-quick.8) by setting the enviroment variable `WG_QUICK_USERSPACE_IMPLEMENTATION` to `boringtun`. For example:
31
+
It is also possible to use with [wg-quick](https://git.zx2c4.com/WireGuard/about/src/tools/man/wg-quick.8) by setting the environment variable `WG_QUICK_USERSPACE_IMPLEMENTATION` to `boringtun`. For example:
35
32
36
33
`sudo WG_QUICK_USERSPACE_IMPLEMENTATION=boringtun wg-quick up CONFIGURATION`
37
34
35
+
### Testing
36
+
37
+
Testing this project has a few requirements:
38
+
39
+
-`sudo`: required to create tunnels. When you run `cargo test` you'll be prompted for your password.
40
+
- Docker: you can install it [here](https://www.docker.com/get-started). If you are on Ubuntu/Debian you can run `apt-get install docker.io`.
41
+
42
+
### Benchmarking
43
+
44
+
To benchmark this project you can run this command:
45
+
46
+
```
47
+
cargo +nightly bench
48
+
```
49
+
50
+
This command depends on the unstable `test` feature of the Rust compiler. As a result, you'll need to use the `nightly` channel of Rust when you run it. You can tell `rustup` to use the nightly channel when running the bench mark command like this:
51
+
38
52
## Supported platforms
39
53
40
54
Target triple |Binary|Library| |
@@ -76,5 +90,13 @@ The library exposes a set of Java Native Interface bindings, those are defined i
76
90
77
91
The project is licensed under the [3-Clause BSD License](https://opensource.org/licenses/BSD-3-Clause).
78
92
93
+
### Contribution
94
+
95
+
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the 3-Clause BSD License, shall licensed as above, without any additional terms or conditions.
96
+
97
+
If you want to contribute to this project, please read our [`CONTRIBUTING.md`].
<sub><sub><sub><sub>WireGuard is a registered trademark of Jason A. Donenfeld. boringtun is not sponsored or endorsed by Jason A. Donenfeld.</sub></sub></sub></sub>
102
+
<sub><sub><sub><sub>WireGuard is a registered trademark of Jason A. Donenfeld. BoringTun is not sponsored or endorsed by Jason A. Donenfeld.</sub></sub></sub></sub>
0 commit comments