In this video we're going to expose your home network to the internet.
Now don't be scary.
This is completely secure and kind of crazy actually cuz we're not punching
holes through your firewall,
which is what you might do with a reverse proxy like engine X or traffic
forwarding and exposing ports 80 and 4 43. Now we're not doing that.
Instead we're creating a tunnel.
And with this tunnel we can securely expose anything on your home network to the
internet, a website, prox, walk Porter, anything.
And I'm telling you this is nuts.
Everything you expose will have its own sub-domain and SSL cert.
Even if you only have a ACT TP or a self-signed cert,
we're setting up CloudFlare Tunnel a free service that allows you to connect
securely to your home network resources from anywhere.
And it doesn't matter what kind of home network you have,
I know some of you your is P sucks and you got CG nat and all that doesn't
matter, this will work. Setting this up is super simple.
It'll only take a few sip of coffee. Here's what you need.
Coffee being one of those things. First you will need a domain name.
I'm gonna set up one real quick with Google Domains. It's about 12 bucks a year.
It's just the cost of doing business. Second,
you'll need a computer or server inside your home network and this can be
running pretty much any OS and um, I think you might have one, right?
And it's on this computer or server that will install CloudFlare Tunnel and then
it will tunnel out to CloudFlare and it's through that tunnel that we can tell
CloudFlare to route pretty much any sub-domain to anything inside our home
network, SSL cert and all. And yeah, that's pretty much all you need.
Let's get our coffee and get started. But before we get started,
I wanna talk about this,
the computer or server that you're using in your home network. And like I said,
anything will work.
But I want you to try and start using Red Hat Enterprise Linux or Rel Rel.
Rel Rel Red Hat is the sponsor of this video making this video happen And I've
recently started using Red Hat Enterprise linnux and My Home Network. But why?
Two reasons. Number one,
red Hat Enterprise linnux is the flavor of linnux at enterprise companies use.
You know the big companies that you may want to work for,
they use the stuff and for a lot of reasons, reliable, secure, standardized.
It's the gold standard if you want to run Lennox professionally,
enterprise Lee in your network.
But it's also not free usually.
I've got a little surprise for you here in a bit.
Now getting back to the point 0.1 that it's used by enterprise companies.
Why do you care?
Well for me the point of having a home lab doing all the stuff in my crazy
office is to get hands on experience with enterprise IT stuff so I can learn
skills that make me more valuable.
So a company might hire me to do the stuff I'm doing in my house.
So it just makes sense if companies are using Red Hat Enterprise Linux,
the companies that may hire you one day,
it makes sense to put that inside your home network,
inside your home lab and learn how to use it.
So maybe you can put on your resume, Hey I run this stuff at home now.
Number two, why you might want to use it, why you should use it right now.
If you're a company it's not free, but if you're you an individual, a person,
make sure you check that I'm not a robot thing. Do a puzzle. Okay, you're good.
You can sign up for Red Hat's developer for individual subscription,
which includes a free version of Red Hat Enterprise Lennox,
and not just a free version. You can actually license up to 16 servers.
And those servers can be as beefy as you want them to be.
So all you have to do right now is check my link in the description,
get signed up and once you're logged in you can check out your subscription.
There's mine right here. I've only used one server so far.
And to download your Red Hat Enterprise Linux, go to downloads at the top Lyft,
there it is right there.
Click on the little icon here and say download latest and I'll grab that 9.1
right now. The one thing I love about Rel,
that's how the cool kits say it is they have a web console for your server,
which is a beautiful gooey that allows me to manage pretty much everything about
my server, including containers running on that thing.
So if you wanna run your home lab like an enterprise company,
check out Red Hat Enterprise Linux link below.
That's what I'm gonna use right now to set up my CloudFlare Tunnel.
I'm gonna head out to Google Domains by Googling domains. We're here.
I would like to get a new domain so I'll click on that search for man,
what should it be? Hey, it's available, I'll take it.
Go to car, check out. Bye. Registering Coffee break and it's mine.
Step two, set up a CloudFlare account. I'll head out to cloudflare.com,
click on sign up at the top right Elon musk@networkchuck.com
password and create account.
Make sure you check your email and validate your email address.
I'm gonna do that right now.
And finally we can click on add site to add a new site. It's what we want to do.
Put in my new domain, Elon Musk home lab.com. Add site. Uh, don't get scared,
scroll down a bit, it is free. Just click on free right there.
They try to hide it from you. Click continue.
Now no matter what domain provider you're using,
you'll need to use CloudFlare as your name servers. How do we do that?
I'm gonna show you right now. So here on this page,
I'm gonna scroll down just a bit and click continue.
And right here on step four, our Cloudflare's name server,
whatever you have there, you'll use both of these.
So I'm gonna jump back over to Google Domains,
click on DNS and using my eyeballs,
I'm gonna try and find custom name servers. There it is right there.
I wanna change my name Servers to something custom. Here we go. Copy Clarissa.
Clarissa explains it all. Copy Evan. Click on save.
And then Google's kind of tricky.
You have to click on switch to these settings at the top.
Once you do that and we're done. Now this could take a moment. They say,
oh it can take up the 24 hours. It rarely does. It might though,
so like don't get mad at me. Mine usually takes like a few moments.
So getting back to CloudFlare,
I'll click on done check name servers and I'll click on finish later for this,
I'll do it later and I'll click on check name servers once more. Come on,
really check it now it should reflect here and you'll also receive an email
telling you, hey it happened. So we'll give that a moment.
Coffee break and look at that. Mine is done.
Took a little less than five minutes so not too bad time for step three,
set up our CloudFlare tunnel here in CloudFlare land.
We're gonna scroll down just a bit on the side panel and click on zero trust
because you can't trust anyone except for me. You can trust me and your mom.
That's about it. Now you should be here at the Zero Trust dashboard.
You can do a lot with it. We only care about tunnels.
So we're gonna go over here and click on the access tab right there and then
click on tunnels and we do have a bit more setup. We'll click on complete setup.
Yes, yes, yes, we know. Click on next to name our team. Elon Musk Comb Lap.
Next again, scary page where you're like, Chuck,
I thought you said this was free and it is. It's just over here. Hidden kind of.
I want the free plan.
I'm selecting that Proceed to payment of zero while they have to use that
language. Now even though it is $0,
it still doesn't want a payment on file similar to AWS and but it shouldn't
charge you anything cuz again, zero is zero, right?
So let's click on next and then click on purchase for our $0 purchase. Okay,
we're good. Now we can actually click on tunnels.
So let's get back to access and tunnels and let's create our first tunnel.
This is so crazy. Click on Create tunnel.
Let's name it Elon Musk's House Save tunnel.
And this is stupid easy. I told you you could pretty much install this anywhere.
They have all the flavors. My favorite flavor is gonna be Docker,
but whatever you got,
just click on these guys and I'll have the code you can run.
So I'll click on Docker and I'll copy this snippet of code right here and here
on my Red Hat Enterprise Linux machine with Docker installed. Let's make sure,
yes, I'm going to paste that code,
although I will make one change here when I control A to get my cursor to the
very beginning and just after a run,
I'm gonna add a dash D for Damon so it runs in the background and then hit
enter. Done. It's running sun. Now I get back to my cloud flare dashboard here.
I'll click on next and time to route my first service. So check this out,
I'll do my proxima server first. So I'll do prox mos, select my domain,
which I already have set up Elon musk home lab.com. I'll select my service type,
which will be HTTPS S for prox max.
And then the internal private IP address to my prox max server
10 77, 73 port 8,006.
Now you can see that CloudFlare Tunnel is acting kind of as a reverse proxy,
except it's not exposing your home network to the big bad internet.
Insecurely unsecurely. It's safe.
Now for services like Prox mos that have self science certificates,
I wanna click on additional application settings.
And under TLS I can say no TLS Verify. So it'll be okay with that.
Then click on save Elon Musk's house tunnel and boom. So right now,
a bunch of cool things happening. First, my tunnel is active.
That means that whatever I did on my Red Hat enterprise Lennox server,
it's working. We're connected. I didn't have to do anything to my firewall.
I didn't have to really do much copy and paste. You can do that. I can do that.
It's awesome. Okay, anyways, so let's test it out.
I'm gonna navigate out to crocs mos dot elon musk home
lab.com and it, it's working ,
how cool is that? I'm logged in. Let's try a connection from the outside.
I'm gonna launch my chasm workspace here, which is hosted in LE node.
Open up a brave browser,
which is outside my home network and I'll do the same thing I'm in and all the
products mock stuff works flawlessly. Check this out.
One thing that doesn't work great with Engine X and traffic without a lot of
work is the console. It works great here. Now looking back at CloudFlare,
all we need is that one tunnel for everything. So if I click on configure,
I can add more public host names. Let's add another one.
Let's add my Sonology nass.
So I'll just do NASS elon musk home lab.com type HTS URL
on port 5,001. I'll make sure there's no TLS Verify save host name.
Let's test it out. Nas dot elon musk home lab.com and look at that . How,
how easy was that?
I don't have to worry about let's encrypt certificates or really just anything.
It just, it just works. And there's that beautiful SSL shirt right there, man.
Now you gotta admit that's the easiest way you've seen to expose your home
network's resources to the internet. I mean,
just a few clicks and you can host your own website on a raspberry pie inside
your house no matter what type of network you have,
and people can securely access it. CloudFlare is changing the game.
Let me know if you, um, hacked to YouTube today that like boat notification,
bell comment, subscribe. You gotta hack YouTube today ethically, of course.
And for real, just let me know below if you did this and how cool it is.
I just wanna, I wanna geek out with you, so get some coffee and let's geek out.