hi guys and welcome back to another ipracorp video thanks for coming in and checking out the
channel today and today we've got a nice quick one for you that you can jump straight into
to help set up your cloudflare tunnel now if you've seen our full-length cloudflare tunnel
video which uses the cli to help you set up your tunnel and connect it with cloudflare
that guide is still valid and still works because cli is still supported and you have two different
options to use the tunnels now so recently on the 25th of march cloudflare announced that you
can now use the web ui in their teams dashboard to set up tunnels that way rather than having to
go through the cli and managing it through the cloudflared docket container there's a whole
article here that they've written up which i'll link down in the description for you to have a
read to help you decide whether it's something you want to look at but all you need to know is
if you've already got your tunnels working and existing you don't need to change anything and
once you go to the ui you'll see your existing tunnels there as well which i'll show you in a
moment so this is more for any new tunnels you want to set up if you haven't set up a tunnel
before or if you've been thinking about setting up a tunnel but you just wanted an easier way to
do it today's your day so we're going to show you real quick how you can do that through the new ui
and that will be part of our cloudflare series so go hand in hand with the cli option
if that's something you choose it is explained really well in here why you'd still want to
prefer cli in certain scenarios but i think for the most part most of us home users the ui
works just as good so without further ado let's just get stuck into it and show you how to do that
okay guys so first thing you're going to need to do is log into your teams dashboard for cloudflare
now you can do it by accessing cloudflare.com then going to teams uh alternatively you can just go
to dash.teams.cloudflare.com as you can see up in the address bar and now as i said we already have
some tunnels visible so as you can see here are our tunnels that already exist and it'll show you
whether they're currently active or inactive so it helps you also troubleshoot how your tunnels
are going if you like from your cloudflare access dashboard so these are existing tunnels we did all
of these through the cli we haven't set those up through the ui here those were done following our
existing guide but let's say you want to now start by using the ui to set up a tunnel how would we go
about that so let's go ahead and do that now up the top here we can see create a tunnel click on
that give it a name i'm just going to call this one ibra proxy we'll save the tunnel and then it
will ask us to install the connector as you can see we have the option for windows mac debian red
hat and docker so all those options work for us so let's go with docker copy this command
and now in our terminal on the server that we want to use this on keep in mind you can use
this for unraid as well so we should be able to use this command with unraid for our unread users
but go ahead and paste the command in your terminal so there's our command that gives us
the docker run it gives us this whole giant token and obviously after this video i will be removing
it and setting up a fresh one but in your scenario just make sure you keep that secure go ahead and
execute that command we're also going to add sudo to the front okay so as you can see i've got the
password wrong that happens we've re-entered that and now it's pulling the container down for us
and what do you know the container is actually now running now if we come back to the dashboard
here we can see that the connector is now responding it says that it's connected
our nearest data centers in melbourne and sydney and it has our ip address here as well our origin
ip which i've obviously taken out for the video it also tells you what version you're on to so once
you're done go ahead and click next and now we can set up a couple of extra things so let's give it a
host name and we'll call this ibraproxy and then it allows you to pick the domain so obviously if
you have a list of domains pick the one that suits you optionally you can also add a forward path as
well you can then select a service that you want to publish out so let's say https on 443 and then
save that alternatively again we can go to private networks and put in the cidr that we want so eg 10
blah blah blah so this would assume that we have a dns entry and that in dns entry points to our
server and on that dns entry where our reverse proxy is obviously living it's saying point us
point it to this application on this particular server that we're testing i don't actually have
any real containers live and running and so it's not really going to matter for me but for you i
would put it to whatever it is you want to reverse proxy to for example go ahead and save the tunnel
and there you go that's pretty much done so now if you have a look at the tunnel it straight away
shows up as ibra proxy it's showing as active and it's going to this particular route that's what
we've told it to direct itself to and we can then configure it or delete it if we wish now obviously
something worth noting if i just bring back the terminal real quick so this is just running the
docker container as opposed to something like docker compost which will allow us to redeploy the
app multiple times and not have to remember the initial command so that's why i still recommend if
you guys want to do this long term still follow our video our full length video for setting up
through the cli and having docker compost uh as opposed to running it through a docker run command
which can get a little messy but i love the option that it gives you for all the other operating
systems like windows for example so you can set up a tunnel on windows which is fantastic and
gives a lot of flexibility to everyone involved so guys i hope you enjoyed that it's one of our
quick little shots to help get you going with the cloudflare tunnel and if you don't understand the
benefits of why use a cloudflare tunnel what it can do for you and why we need it then be sure
to check out the full length video on cloudflare tunnels which we'll put down in the description
below don't forget to like and subscribe it really helps us out or subscribe to our website and join
our discord all those fun things thank you very much we'll see you in the next hip record video
you