Set Up Your Own Wireguard VPN Server with 2FA in 5 Minutes!



The playbook https://github.com/notthebee/ansible-easy-vpn
LowEndStock https://lowendstock.com
DuckDNS https://duckdns.org

Follow me:
Mastodon https://mastodon.technology/web/@notthebee
GitHub https://github.com/notthebee
Twitch https://twitch.com/notthebeee
TikTok https://tiktok.com/@notthebeee

Support the channel:
Patreon https://patreon.com/WolfgangsChannel
PayPal (one time donation) https://www.paypal.com/donate/?hosted_button_id=S46R487SBMJZ8

Music:
Mansij – Life With Myself
Kitrano – Slow Evening
Liquidy – Afternoon

Videos are edited with Davinci Resolve Studio. I use Affinity Photo for thumbnails and Ableton Live for audio editing.

Video gear:
Camera https://amzn.to/3gfcQYo
Main lens https://amzn.to/3cvCozn
Microphone https://amzn.to/3pAARgI
Key light https://amzn.to/2TK374E
Softbox https://amzn.to/3v6mBxt
Secondary light https://amzn.to/3w7KLJg

Other stuff that I use:
Monitor https://amzn.to/36zNekk
Standing desk https://www.amazon.de/-/en/Infinitely-Height-adjustable-Management-Integrated-Protection/dp/B07DXC73KZ
Monitor arm https://amzn.to/3ASFKXD
Laptop stand https://amzn.to/3eahdDJ
Keyboard https://www.amazon.de/HHKB-PD-KB401W-Tastenkappen-Professionelle-Mechanische/dp/B082TXQD1S
Mouse https://amzn.to/2Vp6NcU
Audio interface https://amzn.to/3AS6Jmm

As an Amazon Associate, I earn from qualifying purchases

Timestamps
00:00 Introduction
01:29 Choosing and buying a VPS
04:21 Logging in and running the playbook
08:05 Setting up two-factor authentication
09:18 Connecting to the VPN on mobile and desktop
10:51 Outro

26 comments
  1. Hello Wolfgang, I have some issue with script
    TASK [system : Copy the Ansible playbook to the new user] *********************************************************************************************************************************************************************************

    changed: [localhost]

    TASK [system : Chmod the user home directory] *********************************************************************************************************************************************************************************************

    fatal: [localhost]: FAILED! => changed=false

    gid: 0

    group: root

    mode: '0755'

    msg: 'chown failed: [Errno 30] Read-only file system: b''/snap/firefox/1964/data-dir/themes'''

    owner: root

    path: /snap/firefox/1964/data-dir/themes

    size: 3

    state: directory

    uid: 0

    PLAY RECAP ********************************************************************************************************************************************************************************************************************************

    localhost : ok=17 changed=4 unreachable=0 failed=1 skipped=2 rescued=0 ignored=0

    root@papa-desktop:/home/papa#

    shall i ignorre it?

  2. I run into a message what's your preferred dns
    1Cloud flare [1.1.1.1]
    2quad9 [9.9.9.9]
    3Google [8.8.8.8]

    I selected 1 but after adding the vault password and confirming to run playbook I run into a problem, client loop send disconnect ;broken pips.

  3. Hey Wolfgang, thanks for making it easy with the script. Had issues downloading the public key to my mac (permission denied) after adding to known hosts, eventually downloaded it manually. Anyways, now I'm stuck at the trying to connect to the domain, i get the "500 Internal Server Error – nginx", what am I missing?

  4. Excellent tutorial. Ran into an issue when running the playbook on step "Update and upgrade apt packages". The VPS I purchased was short on memory. Increased the Swap file size on Ubuntu to get past it. Hope this helps someone

  5. How to setup your own VPN without buying VPS but making your home server as VPN server so you can access your home network when you're away?

  6. After installing the script, I can't connect via SSH to the server.
    During the installation process, when asked if there is an SSH key, I pressed "n". How do I get SSH access?

  7. might be a stupid question but how do i relog onto my server in terminal after having closed it. When i do ssh root@(my ip) i get "permission denied(publickey)"

  8. Folowed your tutorial toa T. Works great, but now as of late I can not access Netflix or YouTube from this VPN. I can access them from another VPN like ProtonVPN. This leads me to believe it is firewall or some other setting that need to be changed? How do I go about changing those on the VPN or finding what needs to be changed?

  9. Total newb here, why are all these vpn guides cloud based? Can I not buy the hardware and set up my own VPN at home? I'd prefer to do that than pay a monthly fee.

  10. Hi Wolfgang, Awesome video! I just ran your instructions and everything proceeded smoothly! Wireguard client connects as well but unfortunately I cannot browse anything. Since the internet is heavily restricted in my location, I believe the government has somehow managed to block wireguard connections. Do you have any suggestions? Does changing port helps with that? if so how could it be done? Thanks again, Amazing walk-through!

  11. This is a great tutorial and all, but if I ever make another VPN server using this tutorial I won't be using Racknerd or LowEndStock. When I was first doing this months ago, it felt kinda sketchy and I wasn't entirely sure what I was doing. I had used Linux in VMs and stuff, but I never actually used it to host a server or manage one. I got my server setup and it worked perfectly. However, I think I fucked up when I tried to make it so I could SSH to the server from my phone. One day I checked the Auth.log and my server was getting login attempts like crazy from different IP Addresses. I figured it didn't matter because I had changed the SSH port number and set up a Honey Port on port 22. However, when I used the VPN one day, all of the websites I was visiting were different and within seconds I knew I got pwned. They somehow managed to MiTM my VPN traffic. I didn't bother investigating the source of the breach or what exactly had happened because at this point I was panicking. Basically I deleted everything. The VPN Tunnel, the server, the Duck DNS Domain, the whole shebang. BTW I knew it was the VPN being MiTMed because when I turned it off, the websites went back to normal. To this day, I still don't know whether it was just me being a dumbass, or I just got REALLY unlucky. (Maybe it was both.)

  12. Great video. Thanks for the great work.

    Now that I have the vpn setup, what about log files? Does the vpn keep log files of website traffic? If so, how to automate deletion of these files, say every 12-24hrs? Also, where would folks like that be stored if I wanted to manually delete them?

Comments are closed.