Does any one have any experience in connecting to a Wireguard VPN from a Raspberry pi?

The VPN is set up correctly and I can connect to it using my phone and laptop but I can't get any info on connecting from a pi (Pi must be the client).

I've spent hours on google and there's thousands of post showing how to set up a VPN with a pi as the host. But NOTHING on connecting from a pi.

Does anyone have any idea how to get Wireguard client on a pi? Or how to connect to a Wireguard VPN from a pi?

I am running the latest Raspbian Buster with desktop OS. I am using Pi 3B+.

  • Although you do not mention an operating system, it seems to me the real question is "How do I configure a wireguard client on linux?" -- unless of course you are using Android Things or Windows IoT, RISC, etc (which you should indicate if you want appropriate help).
    – goldilocks
    May 13 '20 at 16:52
  • If you also failed to mention the OS in your hours on google then that might be a problem too; the first thing I found searching 'wireguard client linux' turned up this: wireguard.com/install which explicitly refers to Debian (from which Raspbian is derived) and you should start there and the conceptual overview, which introduces client configuration.
    – goldilocks
    May 13 '20 at 16:52
  • wireguard on pi 2 (v 1.2+), 3, 3+, 4 is straight forward - on pi A, pi B and pi 2 (v 1.1 or earlier) and pi zero W is covered by this guide May 14 '20 at 1:13

... but I can't get any info on connecting from a pi

For this reason some times ago I have made a proof of concept but not completely finished it yet. There you will also find how to setup a Raspberry Pi as Wireguard client. This may give you some ideas what to do with your project. Have a look at How to bridge an access point with a remote network by Wireguard? (with the use of systemd-networkd).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.