Set Up Your Own VPN at Home With Raspberry Pi! (noob-friendly)


Shannon Hill , Boston, MA manoman.sqhill.com – “Unlimited” means “vaguely limited” to #Justhost – #Justhost just disabled my account, saying excessive server load. This disabled access to all my sites, all my email, and all my family’s email accounts. I could not submit a support ticket with my account suspended. I had to spend 3 hours on the phone with them, since I didn’t know my “client id”. (couldn’t get to my email, remember?). NOT RECOMMENDED. They could choose to block (or throttle) web services in this situation, but that’s beyond their technical ability.


A simple, short and easy to follow guide on setting up your own Wireguard VPN instance on a Raspberry Pi

Links:
Text guide https://notthebe.ee/raspi.html
Raspberry Pi OS https://www.raspberrypi.org/software/operating-systems/
balenaEtcher https://www.balena.io/etcher/
Dynamic DNS service https://freedns.afraid.org/
FreeDNS ddclient template: https://notthebe.ee/raspi.html#template
Wireguard script by Nyr https://github.com/Nyr/wireguard-install
Wireguard (Google Play) https://play.google.com/store/apps/details?id=com.wireguard.android
Wireguard (App Store) https://apps.apple.com/us/app/wireguard/id1441195209
Wireguard (Desktop clients) https://www.wireguard.com/install/

Support the channel:
Patreon https://patreon.com/WolfgangsChannel

Follow me:
Twitter https://twitter.com/notthebeeee
Twitch https://twitter.com/notthebeee
GitHub https://github.com/notthebee

Music:
Gvidon – Body in a Half Light
Tru Genesis – Burned

Stock Footage (pexels.com):
Kurt Von
Cottonbro
Pavel Danilyuk
ALL IZ WELL
Tima Miroshnichenko
Henrique
Pressmaster
Mike
Kai Pilger
“Inside The World’s Largest Data Center” by Tech Vision (4:08) https://www.youtube.com/watch?v=g7JaN3rTK2A

Timestamps:
00:00 Introduction
00:42 Common VPN use cases
01:29 Use cases for a selhofsted VPN
02:15 Why not just use a VPN service?
02:56 What skills will you need for this project
03:57 Technical requirements
06:38 TUTORIAL START – Downloading and installing Raspberry Pi
08:18 Initial setup
08:40 For monitor users
08:56 For “headless” users
10:47 Dynamic DNS
13:59 Port forwarding
14:51 Installing Wireguard VPN
15:43 Connecting to the VPN from a smartphone
16:38 Connecting to the VPN from a PC
17:57 Outro

Wolfgang’s Channel

21 Comments
  • Wolfgang's Channel
    Posted at 17:49h, 24 February

    The self-hosted dashboard is called Homer: https://github.com/bastienwirtz/homer

  • Alternativons
    Posted at 14:46h, 26 February

    Do you run AME or regular Windows?
    Thanks for the vid !

  • ALX
    Posted at 00:09h, 27 February

    The other day I discovered you can install Arch linux on the raspberry pi, I think from the pi 2 to the 4 there is an Arch version. I have my raspberry pi 3B with Arch running a discord bot

  • plica06
    Posted at 01:55h, 28 February

    Wolfgang. This video was SOO good! I'm sure it was tons of work but really appreciated.
    For future video ideas I would love to know about those apps you have on your phone at 16:36
    For instance setting up OpenMediaVault and Jellyfin etc.. and demonstrating the value of using them remotely via a VPN.

  • Zouhair D
    Posted at 09:38h, 28 February

    The fritzbox supports vpn tunneling to your home

  • MegaHaros
    Posted at 10:05h, 28 February

    Well dd is perfect, and why use a GUI, waste of resources.
    If anyone wants a GUI, i3wm is perfect for Pi or on any other device

  • tankas
    Posted at 12:03h, 28 February

    Thank you. Very useful and interesting.

  • nch account
    Posted at 13:27h, 28 February

    Hi, how to change the location in that solution ? I mean, i live in Italy so the raspberry + wireguard are located in Italy, and I need to change my ip address to a specific country for example canada. It’s possible ? If yes, how can I do ?

  • El Tonio Zamora
    Posted at 22:41h, 28 February

    OPEN MEDIA VAULT PLEASE……. THANK YOU IN ADVANCE

  • mokropsyable
    Posted at 23:22h, 28 February

    too chaotic for me:(

  • Maxime Desmet Vanden Stock
    Posted at 05:15h, 01 March

    If you have a tplink router they have dynamic dns integrated

  • JSR
    Posted at 06:06h, 01 March

    16:35 Jellyfin gang.

  • sardine sardine
    Posted at 18:09h, 01 March

    Hi, just a video idea for you : How to droplet a vpn.
    It's what i do when i need a vpn just for the geo ip.
    The way i like it's CoreOS (now Fedora CoreOS), because… i like it and it's as easy to deploy it on you own steam machine instead of a cloud machine, and i can easy to adapt the what i did on other project (or add feature like firewall, dnscrypt …. ). Once i'm done i just disconnect and destroy the vps.
    Building the server take ~30sec but you alone on your vps… when you use it just a few hours per mouth it cost less then a vpn provider 🙂

  • Vusal Tahmazli
    Posted at 21:43h, 01 March

    Is there any other verification way in wireguard app other than QR? my phone’s camera is broken

  • Ininale
    Posted at 20:48h, 02 March

    LMAO, there's a Russian title and time codes but no russian subtitles at all. xD
    Ну ты и тролль, конечно, aber Gott sei Dank kann ich 3 Sprachen sprechen.))

  • moenibus
    Posted at 23:18h, 02 March

    And for this stupid term "noob" you've got a down vote and a unsubscribe. I am not a "noob", but shaming people because they are not complete nerds is enraging. And this is coming from a telecommunications engineer

  • Steve Robinson
    Posted at 00:51h, 03 March

    Thanks for your guide. I thought it was easier to understand then some of the others. Just a quick question…if I have a no-ip address would I change the script to look like this: server=http://www.no-ip.com
    protocol=no-ip? I did make a freedns account, but I was just wondering if that is what I needed to change. Thanks!

  • ninline2000
    Posted at 03:17h, 03 March

    Very slick. I like it! Thanks for this tutorial.

  • Ricardo Ricardo
    Posted at 17:11h, 03 March

    Just use tor.

  • Andras Szucs
    Posted at 22:04h, 03 March

    You can also do this wo/ port forwarding with ZeroTier One!

  • Joseph Wood
    Posted at 01:23h, 04 March

    I have an old netbook with Peppermint OS which have not used in a while so can change to Raspbian and give it a try. Sounds like a good weekend project. Also want to try that pi hole thing. Great video, thumb up for you my friend.