Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lelux.fi
Wiki
Commits
d7e13f40
Verified
Commit
d7e13f40
authored
Feb 23, 2019
by
Elias Ojala
Browse files
Wireguard Raspbian
parent
161c5b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
wireguard.md
View file @
d7e13f40
...
...
@@ -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`
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment