DNS Server linuxLinux serverNETWORK ADMINISTRATIONS

Build Your Own VPN with Headscale & Tailscale

Deploy Headscale to create your own VPN! I’m setting this up to create a mesh network so that I can create my own private cloud.

Docker-Compose: https://github.com/JamesTurland/JimsGarage/tree/main/Headscale2

Headscale Documentation:
https://github.com/juanfont/headscale/blob/main/docs/running-headscale-container.md

Headscale UI:
https://github.com/gurucomputing/headscale-ui

Discord: https://discord.gg/qW5vEBekz5
Twitter: https://twitter.com/jimsgarage_
Reddit: https://www.reddit.com/user/Jims-Garage
GitHub: https://github.com/JamesTurland/JimsGarage

00:00 – Introduction to Headscale and Tailscale
02:45 – Docker Overview & Configuration
13:37 – Accessing UI
17:27 – Creating Users
19:21 – Android Walkthrough
24:12 – Adding Ubuntu and Windows
29:08 – Routes
34:18 – Outro

source

by Jim’s Garage

linux dns configuration

22 thoughts on “Build Your Own VPN with Headscale & Tailscale

  • "Not going to explain this in detail again"
    – * Proceeds to explain in detail*
    💜

  • Have you tried Netbird? seems to be far more polished/complete for self hosting, but also seems kinda complicated, would def be interested if you did a setup video for it.
    Edit: I've now gotten to the end of the video and see you are already planning on looking into it, nice!

  • Does headscale-admin work better if you uncheck "legacy api (headscale < 0.23)"? Because you're running the 0.23 alpha. I'd imagine the checkbox is for people who don't want to run the alpha.

  • Currently I use headscale on all my devices, I did it based on your old video, thanks for update

  • Thank you for this compréhensive tutorial. I love your curated videos! Could you also make a video about nebula overlay network. This would be great! There are only very few tutorials to be found about it.

  • Perfect timing…..almost. I'm in the middle of doing what you're planning. I have a Synology NAS that I've been backing up to iDrive E2 block storage. I've maxed out the tier I'm on….and tired of paying $300US/yr. I bought a 16TB external USB drive and connected a Raspberry Pi4 to it and using is as an ssh remote target for Synology HyperBackups. I have a little vacation trailer on a lake and finally got a decent internet connection there so I'm going to use this as my offsite backups. Been looking for a solution better then a simple OpenVPN link. I like that this solution would give me access into the network there as well. I await your followup video on how you get that working…hope it's not too far in the future 🙂

  • Hey Jim, great video. Any chance for self hosted netbird demo?

  • I noticed, you are creating a user per device. Is that recommended way? Would there be some disadvantage to have one user per multiple devices?

  • SQLite is actually quite fast even with heavy usage , the problem is that you usually want to run your DB and your App separately and that's a non-starter for sqlite.
    So if you are fine with running your app and db on the same system , sqlite is a good choice in my opinion.

  • Excellent demo Jim. I'm planning try all of the self hosted SDN options before I commit. Bit concerning that it's been 12 months since the last production release, i wonder if Netbird is more active.

  • Another great tutorial. I had better performance with wireguard in my testing but good to have options.

  • I'm curious about why the ugreen is on permanent vacation. A little hint?

  • Are you comfortable using a deployment with alpha versions and spotty web UI? Provided you are going abroad and would want to have the most stability possible as in case it goes down your out of luck :/
    Are you planning a redundant access like wire guard or the cloud Tailscale just in case?
    I really prefer selfhosted but I don’t know how polish this is.

  • Jim – not going to lie. This looks super complicated, and I sometimes watch your videos because of your calming voice.

  • @Jims-Garage Just uncheckbox Legacy API and you will see it's works fine in HeadScale-Admin

  • Thanks for the video, very useful. Have you checked Zerotier? What's your take on that service?

Comments are closed.