adrianmihalko / raspberrypiwireguard

Install and configure WireGuard on Raspberry Pi (and others)
840 stars 77 forks source link

Better way to install for Raspberry Pi 2 and above #4

Closed ViRb3 closed 5 years ago

ViRb3 commented 6 years ago

Following the official WireGuard Debian instructions:

# apt install raspberrypi-kernel-headers -y # required to build kernel module
# echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list
# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553 # add unstable distribution public key
# printf 'Package: *\nPin: release a=unstable\nPin-Priority: 150\n' > /etc/apt/preferences.d/limit-unstable
# apt update
# apt install wireguard
adrianmihalko commented 5 years ago

I get:

pi@raspberrypi:~ $ sudo wg Segmentation fault

...using this method.

ViRb3 commented 5 years ago

Are you sure you are running a Pi 2/3? The older Pi's are missing certain CPU extensions.

adrianmihalko commented 5 years ago

I tried on RPi Zero (non Wlan).

to import keys for APT.

ViRb3 commented 5 years ago

For the Pi Zero follow this: https://github.com/adrianmihalko/raspberrypiwireguard/issues/3

Mehran commented 5 years ago

@ViRb3 I success install WG on RPi3, I also try NAT on wifi for the clients, everything is okay but seems some site like icloud.com , fast.com ... site not completely opened and browser status: Established a secure connection. can you have provided Step by Step for client connect to RPI wifi and natto wg0

adrianmihalko commented 5 years ago

updated guide