Verified Commit d7e13f40 authored by Elias Ojala's avatar Elias Ojala
Browse files

Wireguard Raspbian

parent 161c5b66
......@@ -5,6 +5,8 @@ permalink: /wireguard
## Installation
### Debian 9
If you do not use Debian 9, follow guides on [Wireguard's install page](https://www.wireguard.com/install/).
......@@ -17,6 +19,22 @@ apt update
apt install linux-headers-$(uname -r) wireguard
```
### Raspbian 9
```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install raspberrypi-kernel-headers
echo "deb http://deb.debian.org/debian/ unstable main" | sudo tee --append /etc/apt/sources.list.d/unstable.list
sudo apt-get install dirmngr
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' | sudo tee --append /etc/apt/preferences.d/limit-unstable
sudo apt-get update
sudo apt-get install wireguard
sudo reboot
```
([Source](https://github.com/adrianmihalko/raspberrypiwireguard#1-wireguard-installation-raspberry-pi-2-v12-and-above))
## Generate keys
......@@ -24,6 +42,8 @@ apt install linux-headers-$(uname -r) wireguard
wg genkey | tee privatekey | wg pubkey > publickey
```
(recommended to run as `root`)
## Client configuration
`/etc/wireguard/wg0.conf`:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment