Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rgl/wireguard-vagrant
wireguard vpn example vagrant environment
https://github.com/rgl/wireguard-vagrant
example vagrant wireguard
Last synced: 11 days ago
JSON representation
wireguard vpn example vagrant environment
- Host: GitHub
- URL: https://github.com/rgl/wireguard-vagrant
- Owner: rgl
- Created: 2020-02-12T06:51:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-15T22:30:59.000Z (over 2 years ago)
- Last Synced: 2024-10-26T13:07:08.937Z (about 2 months ago)
- Topics: example, vagrant, wireguard
- Language: PowerShell
- Size: 38.1 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WireGuard
Install the base [ubuntu 20.04 vagrant box](https://github.com/rgl/ubuntu-vagrant).
Install the base [windows 2019 vagrant box](https://github.com/rgl/windows-vagrant).
Launch the environment:
```bash
time vagrant up --provider=libvirt
```After the environment is up, each machine wireguard configuration will have
all the other machines as peers, e.g., `/etc/wireguard/wg0.conf` will be:```plain
[Interface]
PrivateKey = +Ps5ijDqZxUtJgXvojG1fMsO6wL3SJixj9s5Glaud3U=
Address = 10.2.0.100/24
ListenPort = 51820[Peer]
PublicKey = vv0x1c4a93XT0MYhHDHGsxJ2ZZq3uxHugKqj+pa83i0=
Endpoint = 192.168.53.100:51820
AllowedIPs = 10.2.0.100/32[Peer]
PublicKey = 7S2H6RphXcDLyalL1T/b5Pxmr53137ZmccVRGdgPQDw=
Endpoint = 192.168.53.101:51820
AllowedIPs = 10.2.0.101/32
```Ping a machine from `node0`:
```bash
vagrant ssh node0
ping 10.2.0.101 # to wireguard interface.
ping 192.168.53.101 # to non-wireguard interface.
```## References
* https://www.wireguard.com/
* [wg-quick(8)](https://git.zx2c4.com/wireguard-tools/about/src/man/wg-quick.8)
* https://wiki.archlinux.org/index.php/WireGuard
* https://wiki.debian.org/Wireguard