Тёмный

Build Your Own VPN with Headscale & Tailscale 

Jim's Garage
Подписаться 42 тыс.
Просмотров 31 тыс.
50% 1

Опубликовано:

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 98   
@basdfgwe
@basdfgwe 3 месяца назад
Jim - not going to lie. This looks super complicated, and I sometimes watch your videos because of your calming voice.
@hyperprotagonist
@hyperprotagonist 3 месяца назад
I feel like I could fall asleep if he narrated cosmology videos.
@Jims-Garage
@Jims-Garage 3 месяца назад
I wish it would work on my kids! WireGuard is probably the right choice for most people. I'm experimenting with headscale but I'll see how it works out.
@LtdJorge
@LtdJorge 2 месяца назад
@@Jims-Garage Narrate how to create your own VPN to them 😂
@omerta3393
@omerta3393 3 месяца назад
Currently I use headscale on all my devices, I did it based on your old video, thanks for update
@Jims-Garage
@Jims-Garage 3 месяца назад
@@omerta3393 hey, that's awesome.
@alex.prodigy
@alex.prodigy 3 месяца назад
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.
@CyanureNeko
@CyanureNeko 2 месяца назад
"Not going to explain this in detail again" - * Proceeds to explain in detail* 💜
@brksnunes
@brksnunes 2 месяца назад
Hi Jim, greetings from Brazil! I've been loving your content and rebuilding my homelab following your videos! I'm eagerly waiting for the video about Netbird, as I found the service very interesting. Keep up the good work!
@Jims-Garage
@Jims-Garage 2 месяца назад
@@brksnunes thanks, I almost have it working. Video as soon as I do
@OM-rnd
@OM-rnd 2 месяца назад
Hi Jim. Thank you for your channel. It was one of the things why I decided to start my home server journey. It’s absolutely fantastic to have comprehensive information how to setup things. My setup is going great and growing every day. One thing I’m struggling now is how to structure my network regarding I’m being CGNAT. Your videos about NetBird and Headscale helped a lot. Could you consider to make a video for newbies with general overview how to structure setup for those pure things stucked without port forwarding. E.g. you have your docker containers, their networks, network of Proxmox VM, your Opnsense/Pfsense and VPS for self hosting NetBird/Headscale and maybe few more things in docker. How to configure flow of data, do you need to have reverse proxy at home and/or at VPS in this setup, do you need DMZ and so on. Just traffic flow and general structure, considering that all vms and basic networks already set up. It sounds like a lot but such video would be a lifesaver for those who just starting out and don’t understand why one needs certain things.
@Jims-Garage
@Jims-Garage 2 месяца назад
@@OM-rnd thanks, that's a good topic, I'll consider that (it's a little more difficult as I don't have that problem so I need to replicate). In my head I'd still be using a reverse proxy (DNS challenge) to make sure all services are SSL etc and play nicely within the browser.
@john__johnson
@john__johnson 3 месяца назад
Another great tutorial. I had better performance with wireguard in my testing but good to have options.
@Jims-Garage
@Jims-Garage 3 месяца назад
Yes, I suspect WireGuard will be faster. I'm going to do some testing though.
@john__johnson
@john__johnson 3 месяца назад
@@Jims-Garage it's very close speed wise but I had much more artifacts when streaming games with moonlight/sunshine when using tailscale vs WG.
@Jims-Garage
@Jims-Garage 3 месяца назад
@@john__johnson interesting, I'll be sure to check that out
@substandard649
@substandard649 3 месяца назад
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.
@Jims-Garage
@Jims-Garage 3 месяца назад
@@substandard649 I was also surprised by the distance between releases. I will be checking out netbird soon.
@d1wepn
@d1wepn 3 месяца назад
@@Jims-Garage +1 for a netbird video plz 😁
@BenThatOneGuy
@BenThatOneGuy 2 месяца назад
I went with Netbird, and love it. Headscale was just not streamlined or robust enough for my tastes.
@DominikSchmid
@DominikSchmid 3 месяца назад
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.
@Jims-Garage
@Jims-Garage 3 месяца назад
Thanks, I'll take a look at it.
@AndrewHargreave
@AndrewHargreave 3 месяца назад
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 :)
@Jims-Garage
@Jims-Garage 3 месяца назад
@@AndrewHargreave it'll be the next video, but I'm also going to check out netbird as an alternative. I'd be careful with a USB, I'd certainly recommend a HDD over it (2 if budget permits).
@demanuDJ
@demanuDJ 3 месяца назад
Hey Jim, great video. Any chance for self hosted netbird demo?
@Jims-Garage
@Jims-Garage 3 месяца назад
Yes, I'm going to netbird in the near future.
@pksrbx292
@pksrbx292 3 месяца назад
I thought you would do a net bird one
@Jims-Garage
@Jims-Garage 3 месяца назад
@@pksrbx292 it'll be in the near future. I mention it at the end of the video.
@PW-72648
@PW-72648 3 месяца назад
​@@Jims-Garage Is the netbird better in your opinion?
@Jims-Garage
@Jims-Garage 3 месяца назад
@@PW-72648 I haven't used it enough, but from a technical perspective they're basically the same.
@departuring
@departuring 3 месяца назад
@@Jims-Garage self hosted netbird was unstable
@Justin-cy8de
@Justin-cy8de 3 месяца назад
@@Jims-Garage in my experience netbrid is a lot more refined than headscale. requires more ressources to run, but gives you a great UI for management.
@HunterGeophysicsAustralia
@HunterGeophysicsAustralia 2 месяца назад
Hi Jim. Love all your videos. Just wondering if you could please make a tutorial for installing OpenProject (as a Docker container) using Traefik as the load balancer? The official documentation only provides instructions for Nginx or Apache, and I'd rather use Traefik as I have no other need for those two and have plenty of other needs for Traefik, so would rather just use that if it's possible. Thanks for considering.
@Jims-Garage
@Jims-Garage 2 месяца назад
@@HunterGeophysicsAustralia thanks, I'll take a look at it
@HunterGeophysicsAustralia
@HunterGeophysicsAustralia 2 месяца назад
@@Jims-Garage thank you heaps for considering it. I've been wracking my brain trying to get it to work for the last few weeks. 🤦‍♂
@rodrimora
@rodrimora 3 месяца назад
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.
@Jims-Garage
@Jims-Garage 3 месяца назад
Typically no, but it's very close to tailscale and semi supported. I do have fallback to WireGuard if needed. It's not me going on vacation, it's my mini server. That's why I'm setting this up so I can remote manage/use it.
@rodrimora
@rodrimora 3 месяца назад
@@Jims-Garage sorry I misunderstood what is going on vacation hahahah! Thanks for the response. I’m in a similar situation but it’s me who is going on vacation and got really paranoid about remote access to my homelab. And thought about the most robust solution considering I have a dynamic ip. A couple docker ddns containers updating a duckdns and a cloudflare dns to work with wireguard as it requieres an ip/domain to work. A wireguard docker+wireguard vm in another bare metal server just in case (I found the docker wireguard to have less performance, ok for ssh but lackluster for remote gaming) But what has never failed me was Tailscale, the home assistant raspberry with an addon, a docker Tailscale, a vm running Tailscale… no need to worry about dynamic IP or ports, and works every time, maybe not as performant as a direct connection to wireguard but good enough for ssh/webserver/troubleshooting
@UniversScience
@UniversScience 2 месяца назад
"Has more features, but the features are broken" 😂
@Jims-Garage
@Jims-Garage 2 месяца назад
Haha, yes. I hope it's updated soon and they work again!
@kiloy1006
@kiloy1006 2 месяца назад
as always, high quality content and I was able to spin up headscale and register android and windows devices. I have one question though, what would be an advantage of running self-hosted headscale instead of using official one? I know free tier limits users and devices, but I wonder if there's any other good reason to run the headscale in my home server? again, thank you for the video!
@Jims-Garage
@Jims-Garage 2 месяца назад
@@kiloy1006 the real answer is not really, but it does help with privacy as tailscale won't know your node IPs. There is a case when traffic can be rooted through tailscale servers but even then it's end to end encrypted
@GundamExia88
@GundamExia88 2 месяца назад
Great video! How would you compare Twingate vs Headscale/Tailscale?
@Jims-Garage
@Jims-Garage 2 месяца назад
Thank you. I'm yet to test out Twingate, I'll be doing it in the near future (hopefully!).
@BenjaminBenStein
@BenjaminBenStein 3 месяца назад
@Ogk10
@Ogk10 28 дней назад
On the exit nodes do you have to turn the feature on/off if you don't want to route all of the traffic between clients? For example if I watch youtube on client A does it go through client B? Basically can it do split tunneling to route only the home lab services and not the whole internet? Still waiting for that offsite NAS video btw ;)
@Jims-Garage
@Jims-Garage 28 дней назад
@@Ogk10 thanks for the reminder, it's in the works! Whichever exit node you select, that is where traffic is routed through. You can split tunnel so that only local goes over the mesh VPN and internet is routed out locally.
@Ogk10
@Ogk10 28 дней назад
@@Jims-Garage Awesome, thanks!
@urzaaaaa
@urzaaaaa 3 месяца назад
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?
@Jims-Garage
@Jims-Garage 3 месяца назад
@@urzaaaaa you could do either, I was simply using a user per device.
@mankala8
@mankala8 2 месяца назад
If you delete a user, I think it deletes your devices. My plan is to have users tied to people and devices to their devices. I'm the admin, so the infrastructure is probably going to be tied to my user. Though maybe I'll make a user for myself and a user for admin separately? It's probably more important once you start adding ACLs.
@wh1t3lotus19
@wh1t3lotus19 2 месяца назад
Not recommended to newbie there head and tail will spin all day try it on simple but really easy to understand and you can tell the video is heavily edited most people like to see you do it on screen so they can follow your video.
@Jims-Garage
@Jims-Garage 2 месяца назад
Not sure I follow, I did do it on screen and referenced previous videos for more details where necessary.
@HunterGeophysicsAustralia
@HunterGeophysicsAustralia 2 месяца назад
At 22:17, it shows the IP address and MAC address of your phone. The IP and MAC are identical on my screen for my phone. I assume this is a bug...?
@Jims-Garage
@Jims-Garage 2 месяца назад
@@HunterGeophysicsAustralia the IP is likely the first in the default range, the MAC is probably a similar thing (not sure why it's random though). Good spot!
@javisartdesign
@javisartdesign 2 месяца назад
thanks for the video, very detailed. There is a way to share some ip ranges of your internal network from headscale without installing tailscale or adding routes?
@Jims-Garage
@Jims-Garage 2 месяца назад
@@javisartdesign there's an option to allow LAN access per client. This will use NAT to enable it.
@javisartdesign
@javisartdesign 2 месяца назад
@@Jims-Garage thanks, I will take a look
@ggsap
@ggsap 2 месяца назад
8:26 "because it was created elsewhere, when I setup traefik" huh? what am I supposed to do?
@Jims-Garage
@Jims-Garage 2 месяца назад
You simply need to change the proxy network to whatever network your proxy is on. If you don't have one check out the video I discussed (I use Traefik).
@ggsap
@ggsap 2 месяца назад
@@Jims-Garage That makes sense. I am using caddy bare metal though.
@WillHung
@WillHung 3 месяца назад
I'm curious about why the ugreen is on permanent vacation. A little hint?
@Jims-Garage
@Jims-Garage 3 месяца назад
I'll be using it as a remote server
@ashoktvm
@ashoktvm 2 месяца назад
How to get headscale URL if running on selfhost?
@Jims-Garage
@Jims-Garage 2 месяца назад
You need to register a domain. Check my Traefik video. You'll also need to port forward if possible.
@antoniomax3163
@antoniomax3163 3 месяца назад
pls add info about defguard
@liduke2970
@liduke2970 26 дней назад
hey i'm worry about that everyone has your headscale -ui ip and port can add their own user, would it be dangerous?
@IgnoreMyChan
@IgnoreMyChan 2 месяца назад
Hi Jim, is there a backup of your plex video that got taken down? Maybe on peertube or Odysee?
@Jims-Garage
@Jims-Garage 2 месяца назад
It's on X
@IgnoreMyChan
@IgnoreMyChan 2 месяца назад
@@Jims-Garage Do you have a direct link? Without account I can not see your posts.
@Jims-Garage
@Jims-Garage 2 месяца назад
@@IgnoreMyChan x.com/jimsgarage_/status/1808231260583530826?t=lNv6MA-VnGeRuC--G8VIrw&s=19
@IgnoreMyChan
@IgnoreMyChan 2 месяца назад
@@Jims-Garage Awesome! Thank you so much! ❤
@Jims-Garage
@Jims-Garage 2 месяца назад
@@IgnoreMyChan you're welcome
@mastermoarman
@mastermoarman Месяц назад
Will theas work on tje vps you set up ?
@Jims-Garage
@Jims-Garage Месяц назад
Should do
@TheXalloumi
@TheXalloumi 2 месяца назад
hello! thanks for your explanatory videos. i am unfortunately unable to access my internal services which are behind reverse proxy (traefik) through the headscale network, using the https address . (this address works locally, e.g without the tailscale network), if i use the ip address it works without any problems. any solution?
@Jims-Garage
@Jims-Garage 2 месяца назад
@@TheXalloumi it's probably the DNS setting for the client. Change it to use your internal DNS and ensure it can reach it.
@TheXalloumi
@TheXalloumi 2 месяца назад
@@Jims-Garage thanks for your reply. unfortunately that is not working. i have changed the dns settings in the application to not using the tailscale dns, i also changed the dns settings of the config.yaml file, but without success. is that working for anybody?
@mankala8
@mankala8 2 месяца назад
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.
@Jims-Garage
@Jims-Garage 2 месяца назад
Good spot, forgot to discuss that. It made no difference in my testing.
@mankala8
@mankala8 2 месяца назад
@@Jims-Garage The api node access stuff _looks_ correct in the headscale-admin code at a cursory glance. Headscale docs say you need to be running headscale over TLS/https for remote access to work with 50443 open to allow in the rpc traffic. You're running behind traefik, but headscale itself is running through http, so that could possibly be a problem? If that was the problem, though, I don't know why headscale-ui would work but -admin wouldn't. I've just been looking into it for a very short period of time, though, so I don't know whether rpc is what they're using for the api. I don't run my headscale behind a reverse proxy, and it only works with https, and the api seems to be what headscale-admin is looking for, but I'm running v0.22.3, so unfortunately it's annoying for me to dig into it more without a big chunk of time.
@jomijohn7068
@jomijohn7068 2 месяца назад
Does is it work without public static ip?
@Jims-Garage
@Jims-Garage 2 месяца назад
@@jomijohn7068 yes, I have a dynamic IP. Checkout DDNS
@Snoekverslaafde
@Snoekverslaafde 2 месяца назад
How to do this on a NAS lets say Synology? Cant use ports like 80 there etc. And what if we dont use proxy as network? EDIT: Tried lots of things. But it wont work for me.
@bluesquadron593
@bluesquadron593 3 месяца назад
first
@johannesnguyen1090
@johannesnguyen1090 3 месяца назад
4
@HarishPillay
@HarishPillay 3 месяца назад
first++
@emanuelpersson3168
@emanuelpersson3168 21 день назад
Change Hostname: sudo sqlite3 /var/lib/headscale/db.sqlite UPDATE nodes SET hostname = "new_hostname" WHERE given_name = "current_name_NOT_hostname"; ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Change ID: sudo headscale nodes rename -i ID # ID is the ID number of the device as shown in "headscale nodes list"
Далее
Create Your Own Private VPN with Netbird
37:05
Просмотров 21 тыс.
18 Weird and Wonderful ways I use Docker
26:18
Просмотров 254 тыс.
What's ACTUALLY running in my Homelab?
19:21
Просмотров 200 тыс.
Hacking Windows TrustedInstaller (GOD MODE)
31:07
Просмотров 662 тыс.
A deep dive into using Tailscale with Docker
31:58
Просмотров 59 тыс.
Thunderbolt Networking is FAST & CHEAP!
31:04
Просмотров 27 тыс.
Tailscale VS Zerotier
25:33
Просмотров 127 тыс.
Self Hosting Has Changed My Life - What I Self Host
17:31