diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 18:08:53 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-25 18:09:08 +0100 |
commit | 78018c3eeece95b3b9614d396f925e70c7021f20 (patch) | |
tree | cb7d56666379b3a47e2cfc721017597fe9f1a129 | |
download | wireguard-windows-78018c3eeece95b3b9614d396f925e70c7021f20.tar.xz wireguard-windows-78018c3eeece95b3b9614d396f925e70c7021f20.zip |
Initial scaffolding
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
-rw-r--r-- | COPYING | 19 | ||||
-rw-r--r-- | README.md | 42 | ||||
m--------- | wireguard-go | 0 |
5 files changed, 70 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..1cf866a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.exe +*.swp +*.bak +*.syso +.tmp +.idea diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..b8270fa5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "wireguard-go"] + path = wireguard-go + url = https://git.zx2c4.com/wireguard-go diff --git a/COPYING b/COPYING new file mode 100644 index 00000000..dd8dd389 --- /dev/null +++ b/COPYING @@ -0,0 +1,19 @@ +Copyright (C) 2018-2019 WireGuard LLC + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 00000000..dadee93d --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# [WireGuard](https://www.wireguard.com/) for Windows + +Nothing to see here yet. Come back later. + +### Requirements + + - [Go](https://www.golang.org) 1.11 + - [rsrc tool](https://github.com/akavel/rsrc) + - [Wintun](https://git.zx2c4.com/wintun) + + +### Clone + +This has a few submodules at the moment, so you'll need to clone recursively. While building (below) uses WSL, it's recommended that you still clone into Windows per usual. + +``` +$ cd Projects +$ git clone --recursive https://git.zx2c4.com/wireguard-windows +``` + +### Building + +Currently a mess while we transition a few things, so you'll actually need to use WSL. Here are instructions for the latest Ubuntu from the Windows Store on WSL: + +``` +$ sudo add-apt-repository ppa:longsleep/golang-backports +$ sudo apt update +$ sudo apt install mingw-w64 make golang-go +$ mkdir "$HOME/.go" +$ export GOPATH="$HOME/.go" +$ go get github.com/akavel/rsrc +$ cd /mnt/c/Users/YourUsername/Projects/wireguard-windows +$ make +``` + +### Running + +After you've built the application, run `wireguard.exe` to install the manager service and show the UI. + +``` +$ ./wireguard.exe +``` diff --git a/wireguard-go b/wireguard-go new file mode 160000 +Subproject 66524c1f7e1b94720e4551607eff15189b01c8d |