Build your OWN WireGuard VPN! Here's how

  Рет қаралды 353,017

Jeff Geerling

Jeff Geerling

Күн бұрын

Пікірлер: 606
@MarcoGPUtuber
@MarcoGPUtuber Жыл бұрын
This video is sponsored by Jeff Geerling VPN!
@MarcoGPUtuber
@MarcoGPUtuber Жыл бұрын
@RAM_845 Hahah. I comment on people I like to support. Especially if I talk with them outside of KZbin.
@pandaDotDragon
@pandaDotDragon Жыл бұрын
😆
@feniX0nE27
@feniX0nE27 Жыл бұрын
🤭
@MarcoGPUtuber
@MarcoGPUtuber Жыл бұрын
@RAM_845 hahah nooo. Though I am also in Disbelief that I have known him for almost 5 years.
@fhqwgib
@fhqwgib Ай бұрын
As a long time user of Jeff Geerling VPN, I can say, stop all the downloading
@lewismassie
@lewismassie Жыл бұрын
I'm extremely impressed with the terminal output being a QR code. What a delightfully clever system
@JK-mo2ov
@JK-mo2ov Жыл бұрын
“Ok so he’ll copy and open it on something else…oh never mind.” That caught me off guard that even works.
@stefanmisch5272
@stefanmisch5272 Жыл бұрын
Has anyone already decoded it? 😅
@iamvinku
@iamvinku Жыл бұрын
@@stefanmisch5272 it's a Wireguard tunnel config file but the endpoint is spoofed of course and unusable
@AlKaBen
@AlKaBen Жыл бұрын
It basically comes with wireguard server out of the box
@marcello4258
@marcello4258 Жыл бұрын
The qr code is not really a useful thing .. would make sense just getting the token
@jordanmccallum1234
@jordanmccallum1234 Жыл бұрын
If you need a privately hosted VPN and must be behind a CG-NAT, your best bet is to set up set up a one-to-many IPSec tunnel with NAT traversal. It'll require a bunch more setup & understanding of networks, so for most people Tailscale & Zerotier are better, but it can be done. Also minor thing, no RaspberryPi has cryptographic extensions, which is why it's so slow. If you need more speed it's *possible* you've got a router with AES-NI instructions, otherwise your home PC, old laptop, or an SBC that's a little beefier than a Pi would do the trick.
@-argih
@-argih Жыл бұрын
Tailscale have been working wonders for me, is technically an overlay network but is using wireguard under the hood, they have clients for Truenas (using the truecharts repo), OpenWRT, PFsense and even there are some experimental clients for RouterOS (mikrotik). I'm limited by my 10mbps upload speed but the overhead is not so much so I can stream 1080p content without transcoding.
@francocastilloAR
@francocastilloAR Жыл бұрын
WireGuard does not take advantage of AES-NI.
@enochliu8316
@enochliu8316 6 ай бұрын
Wireguard does not uses AES, but ChaCha, a cipher that works faster on this machine. It uses ARX instructions.
@thebeatconnect1
@thebeatconnect1 Жыл бұрын
For people with CGNAT, what you can do is setup a VPS as the middle man. Setup wireguard onto the vps and on a device on your home network, and you can setup wireguard on the vps to forward requests or ports to your home network. This is basically what services such as tailscale do. I use this setup to host a mail server on my local network. No need to open ports on my network
@sporqist
@sporqist Жыл бұрын
This. Relatively easy to setup, you can host servers literally anywhere* as long as there is internet and it's super flexible. Just remember to have the clients keep their connection alive so the VPS is allowed to talk back to them.
@cvetelingeorgiev1527
@cvetelingeorgiev1527 Жыл бұрын
What if I have a corporate network with public static IP and I want to establish a VPN between that and the LAN network of a 4G broadband router behind CGNAT. I need to access an IP camera in that 4G router's LAN
@MiguelSantos-wp1ym
@MiguelSantos-wp1ym 7 ай бұрын
Or just use IPv6
@nougatsa
@nougatsa Жыл бұрын
Personally, I prefer tailscale because I have a much better performance and the use is simpler I find... Thank you for your video.
@nougatsa
@nougatsa Жыл бұрын
@@Batwam0 yes indeed, if you have a fixed IP address you will not need to modify whatever the parameter in your router!
@tomgidden
@tomgidden Жыл бұрын
Tailscale's great, but as Jeff's clearly wanting to do this without any third-party cloud help -- other than his ISP, his DNS provider, his VPS provider, etc. -- it's fine. After all, Tailscale is built on Wireguard, and is really a cloud service to make configuration and discovery easier. I have both. I use Tailscale most of the time, but Wireguard is also there just-in-case.
@nougatsa
@nougatsa Жыл бұрын
@@tomgidden absolutely ! Thank you for this precision ☺️
@DavidM2002
@DavidM2002 Жыл бұрын
@@Batwam0 That's correct. No port forwarding with Tailscale.
@GreenCinco12Official
@GreenCinco12Official Жыл бұрын
One thing to add (especially for macbook/iphone/ipad, not tried it on windows/android): If you still want to use your private vpn for security reasons (like public wifi) you can enable "On Demand Activation" in the client. Then activate whatever you need and set your home wifi SSID as an exception. This way if you have enabled the vpn profile it will automatically connect to your vpn whenever you're not at home (depends on your configuration). Really helpful if you have public wifis that are set to automatically connect and you are in range without knowing it. You have to disable split tunnel (or change the allowed IPs correct) but I'm not 100% sure how to do that at the moment. I suggest you create a second profile for it but importing the same profile a second time works when you name it something else.
@benargee
@benargee Жыл бұрын
Will you be making a more in-depth video about tailscale? Also with the inclusion of self hosted orchestration using headscale. I see you gave it a shout out at the end. I've been trying it lately and it's handy. I'd like to see your thoughts on it as well as your ideal use cases. It works great with pikvm too.
@JeffGeerling
@JeffGeerling Жыл бұрын
Possibly. Since I only used it once and don't run it right now I'd need to do a bit more work for that. Might do either that or Cloudflare Tunnel.
@hotrodhunk7389
@hotrodhunk7389 Жыл бұрын
It's all fun and games until you have a 4 layer cg nat 😢
@tcurdt
@tcurdt Жыл бұрын
Good video. It would have nice to also cover local dns resolution. Especially from mobile clients that's handy. And a comparison to other options like zerotier would have been nice, too. That should be enough content for a 2nd video :)
@miniskulljob
@miniskulljob Жыл бұрын
For the dynamic DNS issue, I use Duck DNS, which is free and lets you update your IP with a simple curl call which you can execute in a cron task. This way, you'll always have your IP up to date.
@sophiophile
@sophiophile Жыл бұрын
I'm sure someone like Jeff owns his own domain. If he hosts the primary NS himself, it's easy as pie. If it's hosted by Google Domains, also easy as pie.
@jan_harald
@jan_harald Жыл бұрын
@@sophiophile well, not easy as pie exactly, self-hosted, you would need to set up some way to actually update that, which would probably mean setting up stuff like TSIG keys and whatever, and then using those keys on the machine updating the records, and such...but yeah, it's not that hard either, and most dns hosting services do indeed have pretty easy APIs
@miniskulljob
@miniskulljob Жыл бұрын
@@sophiophile he said in the video that he uses a vps to send the IP to it, and then manually change it in the DNS records of his domain. Also, I don’t know why are you telling this to me. I just shared an option that I think it’s quite good, like many others shared their own options.
@jan_harald
@jan_harald Жыл бұрын
@@lidbergtech neither cloudflare nor zerotier can be self-hosted, lol but sure, it's easy to use one of the many ways to get the job done, if you don't care about that and do note we were talking about "If he hosts the primary NS himself", not "how can it possibly be done"
@StooStranger
@StooStranger Жыл бұрын
I use Google Domain + DDNS on my Edgerouter, now same thing on my OPNSense box. Pretty much plug and play
@charlesdoesmore5488
@charlesdoesmore5488 11 ай бұрын
5:04 How do I grab my ip again? When I do a curl request on that site, it said that I have to pay to request it.
@charleshill7184
@charleshill7184 Жыл бұрын
Please tell me you didn't just fully expose the QR code for a real VPN account! For those who still want the comfort of running their own Raspberry Pi VPN externally, there are a couple ISPs around the world that will collocate a Pi very inexpensively. EndOffice in Boston, and Best Hosting in Czechia are two I've used for years.
@cavemaneca
@cavemaneca Жыл бұрын
I was thinking this exact same thing. Took the time to make sure and blur all of the important text, but exposed the entire connection profile with a QR code?
@MRPtech
@MRPtech Жыл бұрын
Great Video. For my VPN to home use i am using Tailscale with exit-node and subnet advertising. I found out that for some reason PiVPN / Wire guard slows down speed more than Tailscale does. Weird. Anyways. Been using Tailscale for over a year now with not one single day being a problem.
@matthewprince6157
@matthewprince6157 Жыл бұрын
You seriously said "I'm a simple man" on a video about making your own VPN lol. Love it
@thewebmachine
@thewebmachine Жыл бұрын
1:36 traceroute can also show more than one hop if you are using a separate router from your ISP's modem. In that case, you'd likely see two hops, one of which is the router in front of the modem.
@JeffGeerling
@JeffGeerling Жыл бұрын
Ah true. So not a bulletproof method!
@thewebmachine
@thewebmachine Жыл бұрын
Indeed, but if you know enough to put a 3rd party router in, you likely already know enough to figure that out...or setup the VPN on your router and eliminate the need for a separate VPN server. Of course, router VPN servers tend to be a bit slower due to low end SoCs, but if you are already on a woefully asymmetrical ISP (I really hate DOCSIS for this), this won't likely matter much and will be similar to your upload speeds, anyway. Still a great video for the average not-as-techie power user! 😎
@moonrock41
@moonrock41 Жыл бұрын
@@thewebmachine How difficult is this to set up? Does it depend on the router I'm using?
@WeilongYou
@WeilongYou 3 ай бұрын
What's the latency and speed of this kind of solution compare to ExpressVPN (provided I buy a good VPS from cloud service), I feel ExpressVPN is not fast enough for my need, wondering should I build a VPN myself, but if it's not going to be faster and lower latency compare to ExpressVPN, I won't bother to try. Any advise would be highly appreciated, thanks!
@squalazzo
@squalazzo Жыл бұрын
why not tailscale or zerotier? They're newer in how they work, no need to open ports on router, way easier... take a look! Oh, no need for a public ip, too, they work no problem if you're natted :)
@zushiba
@zushiba Жыл бұрын
Wireguard is built into my ASUS RT-AXE7800 router. It works great. I have a 1gig/1gig fiber line from Frontier, I connect to it from work. Jeff, I saw that you have some variant of an Asus router, you should be able to run Wireguard right on the router from the VPN tab, I'd like to see a video on that
@jrmoodi3
@jrmoodi3 Ай бұрын
Nice! I have Wireguard in my Asus RT-AX56U Router as well but not sure how to set it up, can you point me to a guide thanks!
@jeffmcadams6691
@jeffmcadams6691 Жыл бұрын
Hey fellow Jeff, Consider using IPv6 either within your VPN, or for your VPN ytansport and you might, emphasis on might, be able to sidestep some of those limitations, especially with CGNAT.
@BrianCroweAcolyte
@BrianCroweAcolyte Жыл бұрын
IPv6 support globally still sucks. Yeah if it works it's great, but it's better to just always assume you're not going to have IPv6, especially when traveling abroad. Been waiting 20 years for IPv6 to go mainstream, reckon I'll be waiting another 20 lol You could implement both an IPv4 and an IPv6 VPN, but I always just target the lowest common denominator to accomplish what I need.
@davidberschauer1330
@davidberschauer1330 Жыл бұрын
IPv6 works fine for me to deal with CGNAT. Some WiFis don’t provide IPv6 but at least over 4G it always works, so it’s fine for smaller tasks like checking HomeAssistant while travelling
@BrianG61UK
@BrianG61UK Жыл бұрын
@@BrianCroweAcolyte Yes. My home VPN will use IPv6 for the tunnel if it's supported and will pass both IPv4 and IPv6 through the tunnel, but it seems to be extremely rare that IPv6 is supported in public places that I connect from. A lot of people regard IPv6 as an extra complication causing extra attack surface with no real benefit, and while I have some sympathy with that view, I do like to have IPv6 on my own networks when possible.
@BrianG61UK
@BrianG61UK Жыл бұрын
@@davidberschauer1330 Here in the UK, I've literally never ever come across a 4G connection with IPv6. Though, I have seen some things that hint that maybe one of our networks is slowly working towards allowing IPv6.
@jeffmcadams6691
@jeffmcadams6691 Жыл бұрын
YMMV, but I've found, in the states, that IPv6 is available and works in most places that i am, with the exception of retail wifi (most specifically a local chain of coffee shops that i frequent). My mobile provider (T-Mobile) def has working IPv6...in fact, their network is v6 *only* with an adaptation layer on top of it to make v4 work. I use v6-only for my personal setups almost completely because it ends up being *easier* to work with.
@SinaAleali
@SinaAleali Жыл бұрын
There are much better ways to access to your home network like cloudflare tunnels without worrying about ddos and other security concerns
@CarMaintenanceGuy
@CarMaintenanceGuy 10 ай бұрын
I already had Pi-Hole installed. I followed this video after pausing, replaying at a slow speed to see what I was missing. I was able to get the VPN running perfectly on my Pi 4 Model B with my Samsung 22 Ultra. It worked so effortlessly on the first try. Now I can use public wifi and not be worried about people monitoring what I an doing. Thanks for posting this video.
@GH05TYPLAYz
@GH05TYPLAYz Жыл бұрын
your ISP collects your traffic :(
@Nik.leonard
@Nik.leonard Жыл бұрын
I do basically the same, but I use OpenVPN on port TCP-443 for sidestepping the restrictions on corporate firewalls. I tried to do the same with Wireguard but Wireguard is UDP only and UDP protocol is locked in some corporate networks. Amazingly, I can even play games with Moonlight or Steam Link with only 10ms added latency from my work or other people houses (in the same city. I haven't tested that from other cities). My internet provider is FTTH with 800mb/s Symmetric without CG-NAT so bandwidth is not an issue.
@Nosiu
@Nosiu Жыл бұрын
for Wireguard, also a notable mention for wg-easy - a dockerized Wireguard server with a GUI.
@JohnArnoldUK
@JohnArnoldUK Жыл бұрын
And just like that something I'd been meaning to set up for years was done thanks to this video. I was hoping to waste a whole afternoon setting this up but annoyingly I was done in about 10 minutes. Thanks Jeff!
@chriswhitework
@chriswhitework Жыл бұрын
Jeff Geerling: "I'm a simple guy." Also Jeff Geerling: Tries to connect 47 M.2 SSD's, 86 3.5inch HDD, 28 RTX 4090's to a single Raspberry Pi.
@JeffGeerling
@JeffGeerling Жыл бұрын
Hahaha
@dadrad
@dadrad Жыл бұрын
If I'm remembering my history, the abbreviated "tracert.exe" probably had something to do with the 8.3 filename length.
@insu_na
@insu_na Жыл бұрын
I love that the QR-Code you generated has your "totally real" public IP 😂 I wish you had hidden more easter eggs in that
@JeffGeerling
@JeffGeerling Жыл бұрын
I almost did but didn't have time today :(
@Scranny
@Scranny Жыл бұрын
Jeff, can you share your script (the one you run by cron job) to update your current dynamic IP to your personal VPS?
@alext6933
@alext6933 Жыл бұрын
I thought after he said "are all these terms too technical for you?" He was going to break them down in a simple eady to understand way or say that it's no big deal or something. Instead he basically said "go on and get out of here, boy" 😂😂
@JeffGeerling
@JeffGeerling Жыл бұрын
Honestly networking is full of voodoo magic and crazy things! It's too easy for someone to mess things up for me to officially recommend it. But breaking things is often the best way to learn.
@joshua_lee732
@joshua_lee732 Жыл бұрын
You can self host your own Tailscale cloud with Headscale
@der_pinguin44
@der_pinguin44 Жыл бұрын
HEY KID, I'M A COMPUTER
@MackyClemen
@MackyClemen Жыл бұрын
'tracert' is probably a bygone era of Windows that does not have long filename support as 'traceroute.exe' would be longer than the 8.3 format for filenames
@samuelbanya
@samuelbanya Жыл бұрын
4:49 This is why so many of these videos are flawed. You can't just assume someone has a DNS server setup or a Cloudflare Tunnel or a Cloudflare Domain. Without showing the additional required domain side of this, it makes this video useless.
@zygfrydmatusiak1906
@zygfrydmatusiak1906 Жыл бұрын
He's a simple man... Who compiles linux kernels :)
@JeffGeerling
@JeffGeerling Жыл бұрын
Didn't even have to do it once for this project though ;)
@devinbaeten13
@devinbaeten13 Жыл бұрын
Tailscale is the best for most cases. Especially for those with spectrum/cable internet… you only overlay subnet routes you need!
@tenekevi
@tenekevi Жыл бұрын
You missed a perfect opportunity to explain the difference between a VPN (network) and VPN Providers. Even on r/homelab and r/selfhosted, I see a lot of newbies that don't understanding the difference. Surfshark and the lot are VPN Providers - a paid service with its perks. Standalone VPN itself is another thing.
@Fabri91
@Fabri91 5 ай бұрын
PiVPN has now been discontinued, sadly - what could some alternatives be, ideally also able to run on a VM?
@lis6502
@lis6502 Жыл бұрын
0:34 hope you've showcased Wireguard, as this little in-kernel thingie absolutely kicks ass, even in such crippled implementations as on Mikrotiks.
@markarca6360
@markarca6360 Жыл бұрын
Mikrotik RouterOS v7 has Wireguard and ZeroTier support built in.
@no0ne.
@no0ne. Жыл бұрын
with Starlink you can use IPv6 for the incoming tunnel connection
@Highwalker1
@Highwalker1 Жыл бұрын
100% upvote because of the GI Joe PSA. Porkchop sandwiches.
@Je.Suis.Flaneur
@Je.Suis.Flaneur Жыл бұрын
How much easier this would be to follow (and use) if it weren't a KZbin video, but written instructions. Thanks, Jeff.
@JeffGeerling
@JeffGeerling Жыл бұрын
Boom! Thanks for posting the link, saved me the hassle while I'm flying home from UK
@avail6797
@avail6797 Жыл бұрын
Jeff: 30mbps upload is slow Me: has only 12mbps upload.
@neiltrotter5933
@neiltrotter5933 Жыл бұрын
Thanks for this Jeff. I've been ssh-tunneling in for years (which works), but I promised myself I'd tidy it up a bit one day. PiVPN will probably work for me, as I have a couple of Pis already running Pihole & unbound, so this video will help me with that. But man, either I'm getting slower with age, or you're speeding up! It's OK, I'll just have to pause a bit more often so let the info sink in :-) I also plan to move to DuckDNS for DDNS, as NoIP (free option) grinds my gears each month by threatening to expire.
@realcartoongirl
@realcartoongirl 9 ай бұрын
but very slow my isp throttle and get less than 1mbps
@lukeyboy42069
@lukeyboy42069 Жыл бұрын
Only 2 days ago did I set up Wireguard at home, it's so much easier than OpenVPN to set up. I use a mini PC as a router so it has plenty of power for my 1gbit symmetric connection.
@Voyajer.
@Voyajer. Жыл бұрын
Show us the viewer analytics breakdown by state some time for this video =)
@abo1428
@abo1428 Жыл бұрын
The only problem I am struggeling with is getting a Raspberry Pi 4
@JeffGeerling
@JeffGeerling Жыл бұрын
It is difficult but getting easier. I've heard many more people getting them (follow rpilocator).
@abo1428
@abo1428 Жыл бұрын
BTW: excellent video as always. Thank you Jeff 👍🏻
@insertaverygenericnamehere
@insertaverygenericnamehere Жыл бұрын
I am using Tailscale - which is super-easy to handle and set up.
@pdx2240
@pdx2240 Жыл бұрын
I have the exact same Router as Jeff Geerling, - ASUS RT-AX86U, where you can run a VPN server on that device, thats both faster, and easier to setup than PiVPN, supports wireguard and DDNS. Also the router is already an always on device. Though before I have used PiVPN on a pi for many years to solve this exact problem, and it just works!
@JeffGeerling
@JeffGeerling Жыл бұрын
Both are great ways to do it-I've been working on dropping that AX86U in favor of a box running OPNsense though... we'll see.
@afaulconbridge
@afaulconbridge Жыл бұрын
If you were worried about a DDoS of your home network, why hide the domain name but not the public IP address? Is that not just as attackable, since DNS maps the name to the numbers?
@Back-alley-technician
@Back-alley-technician Жыл бұрын
While it's not recommended the IP will change on a regular basis. Dynamic DNS changes it's referenced IP when your ISP gives you a new IP. Hence sharing a throwaway IP is not nearly as dangerous as sharing the dynamic DNS registry name.
@jeffliu70
@jeffliu70 Жыл бұрын
@JeffGeerling FYI - in your traceroute example output while you obfuscated the IP address, it was also out in the open with the hostname.... although it seems to be a screen grab from another video with the watermark WinBuzzer. (So it's not you actually...never mind.) ;)
@JeffGeerling
@JeffGeerling Жыл бұрын
Heh, yeah I watched through like 4 times to make sure I don't drop my IP again.
@lucasew
@lucasew Жыл бұрын
I think that software defined vpns such as zerotier or tailscale are more convenient. They, for example, suport internal DNSs and by default only route the relevant traffic through this virtual network. Tailscale has a exit node thing to allow routing everything to that exit node machine just like a classical VPN.
@PhilipDudley3
@PhilipDudley3 Жыл бұрын
Kind of surprised Jeff didn't make an Ansible Collection for this and used that. Then runs that Ansible Collection from a Podman SystemD job.
@GodAtum
@GodAtum Жыл бұрын
i use what LTT and Lawrence recommended tailscale
@mabs-O_o
@mabs-O_o Жыл бұрын
Also, ZeroTier as an alt to Tailscale, client and server are FOSS if you want to run your own
@mitchmintz111
@mitchmintz111 Жыл бұрын
You do know your ASUS router has open vpn baked into it? It’s simple to activate and you can also setup DDNS on your ASUS router…
@JeffGeerling
@JeffGeerling Жыл бұрын
But then the router's pulling more jobs than I like to run on a small arm CPU at once. But definitely an option!
@ernstoud
@ernstoud Жыл бұрын
The amount of information in this 12 minutes is way too high. Top quality, but could be cut into several episodes. I am truly familiair with this stuff and interested in this but I was lost after a couple of minutes.
@JeffGeerling
@JeffGeerling Жыл бұрын
Tutorial-based content is always tricky like that! But I also have a blog post on my website which is a little more digestible.
@andygarfield6529
@andygarfield6529 Жыл бұрын
I used to do SSH tunneling to a home Raspberry Pi. A lazy man’s VPN.
@JeffGeerling
@JeffGeerling Жыл бұрын
Lazy and sometimes a bit slower, but it can work!
@stevencrawford6503
@stevencrawford6503 Жыл бұрын
I've been using this for a year or more now. It's great that with Android at least it adds the wireguard tunnel into a quick access button next to my wifi and torch. Don't even have to open the app to turn it on, it's been great.
@binarypower
@binarypower Жыл бұрын
Thanks. Actually super helpful. I've been meaning to set up a vpn for a while now since my old openvpn died years ago. wireguard works so well. it's scary how fast it was to set up
@dominick253
@dominick253 Жыл бұрын
I love hearing everyone say how easy it was and I spent hours trying to get it to work... turns out I have cg-nat...
@WilliamCollier
@WilliamCollier Жыл бұрын
Pro tip if your isp is AT&T. Even on a consumer accounts they will give you a block of static IP’s for $15 a month!.
@stickinthemud23
@stickinthemud23 Жыл бұрын
This went by really fast. Are there resources with downloadable /written/ instructions? Also is there anything different for those of use who only have IPv6 addresses?
@JeffGeerling
@JeffGeerling Жыл бұрын
See my blog post on jeffgeerling.com for written form.
@jmr
@jmr Жыл бұрын
@Jeff did you know Home Assistant supports muti factor authentication?
@ailivac
@ailivac Жыл бұрын
That public/CGNAT detection method seems kind of weird and not 100% accurate all the time (although most people for whom it would give incorrect results would already know this. the exception would be things like those stupid eero APs that like to configure themselves in the entirely useless double-NAT mode by default). The more direct way is to just look up the external IP your router is using and check if it's in an RFC1918/6598 block or not.
@ailivac
@ailivac Жыл бұрын
If we had decided as a society that IPv6 was something we would actually try to implement everywhere none of this would be a problem. But we didn't do that.
@JeffGeerling
@JeffGeerling Жыл бұрын
True, true.
@RobertGallop
@RobertGallop Жыл бұрын
Jeff will you be attending Redhat Summit/Ansiblefest in a few weeks?
@JeffGeerling
@JeffGeerling Жыл бұрын
Good question: not this one :( Too much going on to make it
@RyanHenrie999
@RyanHenrie999 Жыл бұрын
I literally figured out how to do this yesterday and then this video comes out...
@JeffGeerling
@JeffGeerling Жыл бұрын
Dangit, one day too late!
@ckennylin717
@ckennylin717 Жыл бұрын
Can't help but notice you have an Asus router. The newer firmware on the AX models have Wireguard built in. If you do have a Wireguard-capable Asus router (stock or Merlin), how does the admin and performance compare to PiVPN?
@korishan
@korishan Жыл бұрын
Jeff mentions that behing CG-NAT you can't use a dedicate IP address. I get around this by using CloudFlare and their tunneling application cloudflared. It creates a DNS entry automatically (if you have your DNS hosting with them, otherwise you have to manually register with your registrar) and then you can use that name to connect. My ISP is Xfinity/Comcast, which definitely uses CG-NAT on multiple layers, I can access RDP, TrueNAS, PVE & Hosts, File shares, etc. The only thing I've had issues with is actually setting up the VPN portion so that my phone uses that instead of its routing. This I think is partly due to cloudflared does not current support UDP connections
@DIYDaveOK
@DIYDaveOK Жыл бұрын
Amazingly timely video! I literally just started setting up self-hosted VPN last night. Got a personal domain + DDNS working, then set up OpenVPN thats baked into pfSense.....just having trouble with the exported profiles connecting back...
@JeffGeerling
@JeffGeerling Жыл бұрын
That was my trouble with OpenVPN - and which is why I decided to flip over to Wireguard. The app worked a little more seamlessly (didn't have any weird issues).
@DIYDaveOK
@DIYDaveOK Жыл бұрын
@@JeffGeerling Well my VPN logs show an error regarding a missing HMAC that suggests a problem with a key definition in the exported profile, so I'm hoping I just missed some detail in the profile definition. And I'm in EXACTLY the same boat you are with asymmetric cable Internet (I'm stuck with awful Cox), 1 Gbps down but 40 Mbps up 😡
@andre-le-bone-aparte
@andre-le-bone-aparte Жыл бұрын
@06:59 -- I have a Mac. --- 😂 🍎🖥
@jensschroder8214
@jensschroder8214 Жыл бұрын
does home VPN also work with connections that only have IPv6? Most VPNs use IPv4, and these are hard to come by outside of the US.
@bigboysteen7638
@bigboysteen7638 Жыл бұрын
i got a public ip just by asking my provider, you kilometrage may vary
@JeffGeerling
@JeffGeerling Жыл бұрын
Nice!
@lilyydotdev
@lilyydotdev Жыл бұрын
why not have the cronjob contact the domain registrar's API and update the record. if your domain registrar doesn't have an API use something like desec, cloudflare, cloudns, or a selfhosted server on a vps somewhere. the record ttl can be 1 so changes take little time to reflect.
@JeffGeerling
@JeffGeerling Жыл бұрын
Yeah, I'm just lazy really. Name.com has an API but I can't be bothered to get it integrated.
@lilyydotdev
@lilyydotdev Жыл бұрын
@@JeffGeerling the best excuse for not doing something haha
@marcelfotografie6046
@marcelfotografie6046 Жыл бұрын
"on windows traceroute is spelled tracert for some reason" Might have to do with the fact that DOS in the old days allowed only '8.3' filenames
@JeffGeerling
@JeffGeerling Жыл бұрын
Heh, true.
@LampJustin
@LampJustin Жыл бұрын
11:02 actually you do always have a public IP . That being an ipv6 address. Almost all carriers have v6 so using that should be no problem.
@tomfiszelson1485
@tomfiszelson1485 Жыл бұрын
wich pi necessary for a VPN ? Dont wanna buy a 4, its too costly
@JeffGeerling
@JeffGeerling Жыл бұрын
Good question! Even the Pi 1 could handle like 20 Mbps of traffic. The Pi 3 or 3+ is good enough for probably 50-80 Mbps.
@skrundz
@skrundz Жыл бұрын
I have two lines in traceroute but i know for a fact that im not behind any NAT
@JeffGeerling
@JeffGeerling Жыл бұрын
That can actually happen under certain network conditions, like if you have a router behind another one, or if you're checking from a Docker container or elsewhere with more than a direct connection through to the main ISP router.
@nikolaskallianiotis8622
@nikolaskallianiotis8622 Жыл бұрын
There are a lot of details and quirks that haven't got clarified or mentioned in this video. What for example if you don't want your internet traffic goes through your VPN or if you just want to use you home DNS server that has Ad blocking capabilities? You didn't mention free tools for DDNS like ddclient and more details on the wireguard protocol and comparison to OpenVPN. All and all I think this video was just an excuse for a 12 minutes advertisement for your sponsor.
@foureight84
@foureight84 Жыл бұрын
wg-easy is also a pretty nice option for rolling wireguard with a simple web management UI.
@steveiliop56
@steveiliop56 Жыл бұрын
Hey Jeff! Make sure to delete the client for your phone because the qr code is available to everyone...
@redpillsatori3020
@redpillsatori3020 Жыл бұрын
I read your comment just as that part of the video came on. lol
@JeffGeerling
@JeffGeerling Жыл бұрын
Don't worry, visit vpn.please-dont-ddos-me.com
@steveiliop56
@steveiliop56 Жыл бұрын
Yeahh I tried to scan the qr code and it works with this domain name 😂😂😂.
@steveiliop56
@steveiliop56 Жыл бұрын
You got the coolest domain name...
@LA-MJ
@LA-MJ Жыл бұрын
​@@JeffGeerlingy no SSL? 😅
@amrrahmy123
@amrrahmy123 Жыл бұрын
well there are a lot of solutions. I usually just have anydesk and teamviewer setup, but for software projects i have done, in case of ip changes, instead of manually changing the ip after getting a notification, you can change the domain or subdomain settings automatically, i am pretty sure namecheap has an API you can use, not sure about other providers/registrar, but it was fairly easy to create a small service/program to check and update the ip from local device. In case of mobile data, the device behind the network can connect to a cheap-ish $5 or so VPS, and the other computers can connect to that server to create a network. tailscale i wanted to test out but didn't have the time.
@agentfoxmulder
@agentfoxmulder Жыл бұрын
I use zerotier it is great
@LA-MJ
@LA-MJ Жыл бұрын
I hope you didn't leak your stuff in that qrcode
@JeffGeerling
@JeffGeerling Жыл бұрын
Hope so! Heh.
@marketuser6478
@marketuser6478 Жыл бұрын
It's tracert because of DOS's character limitation of 8 for the name and 3 for the extension.
@adirgan
@adirgan Жыл бұрын
With zerotier you can also create a tunnel with your network, and with some configuration, you can even use your internet, and it doesn't matter if you are with CGNAT
@sarahkatherine8458
@sarahkatherine8458 Жыл бұрын
I'm living in an apartment, and their network setup is: they have a modem/router (that connect to the internet), and one router for each room. My tracert has two lines: 1 is the router in my room which I have full configuration, and 2 is the modem which has the public IP address. Now I want to set up a web server in my room, and I need to forward HTTP traffic to the server. I do have static IP address for the computer running the server (192.168.xx.xx). I will use no-ip for DNS. Since I cannot configure the main modem, what do I need to do to forward HTTP traffic to my server? I have thought of VPN service with port forwarding, but after watching this video I think there is another way without using such service. Is that correct?
@AIMusics-Gaming
@AIMusics-Gaming Жыл бұрын
Classic VPN will die soon. ZeroTrust is the next big thing. Like ZeroTier. No Portforwarding required. Access only from authorised computers. (Any client has its own unique identify number that needs to be set in the zerotier WI) maby a topic for a new video?
@choahjinhuay
@choahjinhuay Жыл бұрын
Jeff, are you going to visit the Pi Shop in the UK?
@JeffGeerling
@JeffGeerling Жыл бұрын
I did! I'll have a video on that soon.
@dormantat
@dormantat Жыл бұрын
Massive thanks for posting this, and I haven’t even watched it yet! I’ve been trying to use pivpn to get access to my home network on and off for a while, never successfully. I’m sure you will give me the info needed to get it working.
@tramcrazy
@tramcrazy Жыл бұрын
I use Twingate on my network, I find it easier and better than a VPN as I don’t have to open ports and it’s a bit easier to set up access levels and users etc
@postnick
@postnick Жыл бұрын
I ran PiVPN for a while but I think work was blocking that port or domain - so I switched to Tailscale and used my home PIHOle as an exit node and it's been much eaiser. But Your point was no 3rd party software so still a great video! I do like how you can use local IP addresses on pivpn but not tailscale.
@renobodyrenobody
@renobodyrenobody Жыл бұрын
Sorry Jeff but this time your are wrong. Tailscale is faster to configure, easier to manage and with much more functions. You got the wrong sponsor. Anyway I still love you but I am already married and love my wife more than you.
@prongATO
@prongATO 29 күн бұрын
Hey @JeffGeerling quick question; I currently have a Pi-hole/unbound box running on a Pi 3B. I want to add PiVPN to the install. What flavor Pi would be the best performing, without going too far overkill? Does the Pi 5 encryption abilities really help pivpn? I have a Pi 5 2GB, Pi 5 4GB, Pi 3B to choose from and could order another. What say you good Sir?
@pcislocked
@pcislocked Жыл бұрын
Thanks for making this video, Jeff! Just wanted to add that for anyone who's short on time, setting up a self-hosted VPN with Wireguard or Tailscale can be done in less time. But I appreciate the effort you put into explaining this process.
@pcislocked
@pcislocked Жыл бұрын
Me: so jeff geerling made a video about self-hosted vpns and how to set it up. if i comment "well, fun fact, setting up a self hosted vpn with either wireguard(with some scripts ofc) or tailscale takes less than duration of this video.", will this go across as a mean comment to him? (like this video is too long dont watch it etc although i dont mean to) ChatGPT: It's possible that your comment could come across as mean-spirited, especially if Jeff Geerling put a lot of effort into creating the video and you're suggesting that it's not worth watching. However, if you phrase your comment in a respectful way and acknowledge the effort he put in, it should be fine. For example, you could say something like, "Thanks for making this video, Jeff! Just wanted to add that for anyone who's short on time, setting up a self-hosted VPN with Wireguard or Tailscale can be done in less time. But I appreciate the effort you put into explaining this process." This way, you're sharing your knowledge while still acknowledging the value of Jeff's video.
@jan_harald
@jan_harald Жыл бұрын
@@pcislocked tbh, tailscale is not really self-hosted, and stuff like headscale, which is a self-hosted version of tailscale, can be a bit annoying to set up, and not easy... instead, I'd use something like Yggdrasil Network, myself (or even stuff like tor or i2p, using them for legitimate purposes helps out everyone, and you can also set things up that only specific routers are even allowed to connect to your server)
@pcislocked
@pcislocked Жыл бұрын
@@jan_harald yeah tailscale is not technically fully self hosted in terms of management etc, but if your exit node is exposed to the internet, the connection is direct to the server. stuff like i2p is a bit too much for a normie like me xd
@zoopercoolguy
@zoopercoolguy Жыл бұрын
​@@pcislocked I've been using Tailscale for a few years now, and it is fantastic, but I've had recurring problems with it failing to work without intervention after updates to either itself or Windows. Sometimes it seems to stop working for no reason at all. I've resorted to installing a secondary remote access program for the times when I need to remotely make Tailscale work again.
@DavidM2002
@DavidM2002 Жыл бұрын
@@zoopercoolguy I've used Tailscale for several months but have never experienced the problem that you have. I'll tuck that away in case I do though and know that the issue is not unique. Thanks JB.
@ankitwadhwa89
@ankitwadhwa89 24 күн бұрын
Hi I am working on Similar project for running VPN 24*7 . Currently I am contemplating which hardware should I go for to build this VPN? What will you recommend a raspberry pi 5 or some more powerful mini pc and install linux distro on them??
@skull_is_dull
@skull_is_dull Жыл бұрын
My public IP is an IPv6 address. Will that still work?
@JeffGeerling
@JeffGeerling Жыл бұрын
Good question! I... would refer you to PiVPN's documentation.
@BrianG61UK
@BrianG61UK Жыл бұрын
You should still be able to use that somehow, but you will only be able to connect from places where you can also make an IPv6 connection.
@BaileyMagikz
@BaileyMagikz Жыл бұрын
no one can get a raspberry pi jeff.... you seem to forget this alot...
@BaileyMagikz
@BaileyMagikz Жыл бұрын
before someone comments he said you can use a vps..... no whole point is to be low powered its a waste of resources to use a dedicated desktop or laptop to be on 24/7...
@JeffGeerling
@JeffGeerling Жыл бұрын
I also mentioned using a Mini PC too ;)
@BaileyMagikz
@BaileyMagikz Жыл бұрын
​@@JeffGeerlingstill to many watts compared to a pi my brother ;)
@grimtagnbag
@grimtagnbag Жыл бұрын
TAILSCALE
@Gaming_with_Martin
@Gaming_with_Martin Жыл бұрын
How is the 96 core CPU video going
@JeffGeerling
@JeffGeerling Жыл бұрын
Still working on it, have already learned a lot!
Set Up Your Own VPN at Home With Raspberry Pi! (noob-friendly)
18:16
Wolfgang's Channel
Рет қаралды 698 М.
Time to UNSUBSCRIBE from Disney+, Netflix, etc!
14:08
Jeff Geerling
Рет қаралды 1,5 МЛН
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 58 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 75 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 22 МЛН
Building The "Ultimate" Router - [PFSense + Pi-hole + PIVPN]
15:45
Hardware Haven
Рет қаралды 706 М.
the END of VPNs?!
28:49
NetworkChuck
Рет қаралды 1,3 МЛН
BEST Remote Access VPN - OpenVPN vs WireGuard vs L2TP
18:13
SpaceRex
Рет қаралды 23 М.
Tailscale VPN - WireGuard was never so easy!
15:41
Christian Lempa
Рет қаралды 206 М.
Scammers PANIC After I Hack Their Live CCTV Cameras!
23:20
NanoBaiter
Рет қаралды 15 МЛН
my SUPER secure Raspberry Pi Router (wifi VPN travel router)
30:57
NetworkChuck
Рет қаралды 1,5 МЛН
Flutter wireguard POC
9:47
Airon Tark
Рет қаралды 1,3 М.
How To Build Your Own Wireguard VPN Server in The Cloud
36:15
Lawrence Systems
Рет қаралды 174 М.
I replaced my Apple TV-with a Raspberry Pi
16:12
Jeff Geerling
Рет қаралды 705 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 58 МЛН