Cloudflare Tunnels: Getting Started with Domains, DNS, and Tunnels
Thanks to Linode for sponsoring this video!
Sign up today and get a $100 60-day credit on your new Linode account, link is in the description.
🔗 https://dbte.ch/linode
/=========================================/
Cloudflare has done some updates since this video was published. The path to get to the Tunnels area shown in the video is now as follows:
– Log into your account.
– Look for “Zero Trust” in the left column.
– Click “Zero Trust”.
– That will take you to a different page.
– Look for “Access” in the left column.
– Click “Access”.
– Then you will see “Tunnels”.
/=========================================/
Getting started with Cloudflare can be a bit overwhelming when you’re first getting started with self-hosting.
This video will hopefully help you understand the process of:
– Buying a domain
– Setting up a Cloudflare account
– Configuring nameservers to point your domain to Cloudflare
– Setting up Cloudflare Tunnels
– Restricting remote access via Cloudflare tunnels
Services I use:
Porkbun: https://dbte.ch/porkbun
CloudFlare: https://dbte.ch/cloudflare
PIA: https://dbte.ch/piavpn (Affiliate Link)
Timestamps:
00:00 Intro
00:22 Sponsor Spot
01:21 Purchasing a domain name
03:37 Set up Cloudflare account and change nameservers
10:54 Creating our first tunnel
15:50 Setting up hostnames
17:39 Multiple applications on a single tunnel
19:08 Restricting access
/=========================================/
Get early, ad-free access to new content by becoming a channel member, a Patron or signing up for the members’ only website!
✅ https://www.patreon.com/dbtech
✅ https://dbtech.fans/
✅ https://www.youtube.com/channel/UCVy16RS5eEDh8anP8j94G2A/join
/=========================================/
The hardware in my recording studio is:
✔ Custom PC w/ Ryzen 2600, 32GB RAM, RTX 2070, Assorted Storage
✔ Panasonic LUMIX G7 4K Digital Camera: https://amzn.to/3IGEOcb
✔ SAMSUNG 34-Inch SJ55W Ultrawide Monitor: https://amzn.to/395g9BZ
✔ LG 27UK650-W 27” UHD IPS Display with HDR 10: https://amzn.to/398pg4S
✔ WALI Premium Dual Monitor Stand: https://amzn.to/398AiqM
✔ Neewer Lights: https://amzn.to/3nZcoSX
✔ Light Power Supply:https://amzn.to/3Konpqf
✔ 55″ Gaming Desk: https://amzn.to/3AkgHgw
✔ Sabrent USB-C Hub: https://amzn.to/3qFcwbV
✔ Das Keyboard 4 Professional: https://amzn.to/3G9rPxM
✔ Fuqido Big and Tall Gaming Chair: https://amzn.to/3IGegrq
/=========================================/
The hardware in my current home servers:
✔ Synology DS1621xs+ (provided by Synology): https://amzn.to/2ZwTMgl
✔ 6x8TB Seagate Exos Enterprise HDDs (provided by Synology): https://amzn.to/3auLdcb
✔ 16GB DDR4 ECC RAM (provided by Synology): https://amzn.to/3do7avd
✔ 2TB NVMe Caching Drive (provided by Sabrent): https://amzn.to/3dwPCxj
✔ TerraMaster F5-221 (provided by TerraMaster): https://amzn.to/3IfH2QD
✔ 5x6TB WD Red Plus NAS: https://amzn.to/3LnbPvC
✔ 8GB DDR3: https://amzn.to/3kfLTX3
✔ TerraMaster F4-423 (provided by TerraMaster): https://amzn.to/3kjUms5
✔ 2x8TB Seagate Barracuda Compute: https://amzn.to/3xBAO95
✔ 16GB TEAMGROUP Elite DDR4: https://amzn.to/3MzzFV9
✔ 512GB Silicon Power NVMe Caching Drive: https://amzn.to/3MzkBae
All amzn.to links are affiliate links.
/=========================================/
✨Find all my social accounts here:
✅ https://dbte.ch/
✨Ways to support DB Tech:
✅ https://www.patreon.com/dbtech
✅ https://www.paypal.me/DBTechReviews
✅ https://ko-fi.com/dbtech
✅ Cashapp: https://cash.app/$dbtechyt
✅ Venmo: https://venmo.com/dbtechyt
✨Come chat in Discord:
✅ https://dbte.ch/discord
✨Join this channel to get access to perks:
✅ https://www.youtube.com/channel/UCVy16RS5eEDh8anP8j94G2A/join
✨Hardware (Affiliate Links):
✅ TinyPilot KVM: https://dbte.ch/tpkvm
✅ LattePanda Delta 432: https://dbte.ch/dfrobot
✅ Lotmaxx SC-10 Shark: https://dbte.ch/sc10shark
✅ EchoGear 10U Rack: https://dbte.ch/echogear10u
by DB Tech
linux dns server
Here is a docker-compose with a restart policy to help making deploying a CloudFlare tunnel a little more straightforward:
https://dbt3ch.com/books/access-your-self-hosted-services-without-port-forwarding/page/cloudflare-tunnels-docker-compose
Thanks to The Blue Portal for sharing this with the community.
Can I do this without buying a domain name IE can I use my own domain name ?
When you get to the parts at 11:15 the process changes.
omg, this is the first guide ive seen that doesnt involve creating dockers or other crap, its just simply, explained step by step, like a normal human being !! There is such a need for this, in this area, as not everyone is in front of a PC 12hrs a day!! Couldnt hit Sub quick enough
Holy shit this finally made it work. Thank you very much!
how can i connect the localhost of omada sdn in cloudflare?
As a newbie I say: AWESOME! finally after hours of research… thanks man
What IPV4 do I need at my DNS records?
HELP.!! When i connect my omv docker via cloudflare tunnel omv plugin can't update showing host error and docker also can't pull images from their repositories. HELP.!!
Hello @DBTechYT! Thanks for your amazing videos. i do have a question: if we a re using cloudflare tunnel, will interact in any way with torrenting clients? Can we still use our torrent client safe? Our network traffic will go through cloudflare? Thanks. If anyone knows the answer and wants to share it will be helpful
Just tried using this and it looks like the cloudflare tunnel option is no longer available
Awesome video! I have learned so much from you over the years…
I am a noob when it comes to networking.. I was able to understand and follow each and every step ❤️. Now I am accessing my jellyfin server over the domain ❤ Thank you so much .. just subscribed
🤩
can you use temporary urls like sort of ngrok does ?
Am trying to tunnel socks5 traffic via cloudflare tunnel not sure how to do that ?
Best Video for setting up anything remotely this awesome! (see what I did there?)
it doesn't matter what i do use localhost or my machine ip when i try to access my local website with the url it always timeout despite the tunnel being active and i can see in the docker container logs for the tunnel that it has my configs for the domain and ips
What if my app1 (frontend) fires api requests to app2 (backend), both being hosted on localhost, which I've tunneled? It doesn't seem to work
hi db Tech,
I have insalled TrueNAS-SCALE-22.12.3.3 on a b baremetal.
On top installled Nextloud and plex.
Eberything coool on Lan. neeed to access nextcloud and plex on domin. can you help me with the setup
I bought domain from cloudflait (FYI)
Thanks so much! Was tearing my hair out trying to work this out. The closing the cmd and not editing the -d in I think was the problem
Most of this works. However, I am having troubles connecting to the docking server. The connection times out when I try to SSH into it. How do I SSH using the CMD Prompt?
18:29 But then you have to set up a subdomain for every port you want to "forward". What if an application uses a port range and both UDP and TCP on those ports?
Can't get it to work
DNS_PROBE_FINISHED_NXDOMAIN
I tried this, but I wasn't able to connect after creating the public hostname
okay, this is what I need if I can get help.
This domain is already on cloudflare but I want to host on a different Shared host in Namecheap.
any help?
So what I want to know is what DNS records are you using then, once everything is setup? Are you still not using custom A records or CNAMES? I notice that Cloudflare seems to generate a CNAME that points to the connector. Is that enough for each new one that I create or do I need to also manually create new A records or CNAMES myself?
appreciated!
I'm trying to host valheim dedicated server on my docker through cloudflare tunnel but I'm having trouble to port forwarding using cloudflare tunnel instead of my home router? also, my ISP is using private IP.
Do you think I will need Nginx proxy manager if I am using Cloudflare Tunnels?
Not sure if I missed in your video, but how can you have specific vm's from proxmox accessible directly on the tunnel? I have a linux container, vm and a windows vm created, but I can't seem to get them accessible across the cloudflare tunnel. I'm sure it's something I'm overlooking but would love any suggestions
Great videos by the way. I love how detailed your videos are!
Damn DB, I love all your stuff, and you have helped me so much over the years. I was going to do this, but there is an upload limit of 100mb for free plans. might be a good idea to let people know that these free accounts are limited. Now if that only applies to cloudflare hosting, then I will stand corrected, but it appears to be managment for the entire site which is not cool, at least for what I am trying to do. Just thought I would remind you, while I luv ya, to remember to point out limitations before people start changing thier registrar information!
so, do you no longer use nginx reverse proxy?
Server noob here. I currently have esxi on a server and wanted to remote access it from the web using cloudflare tunnel. Can i create a docker vm on the esxi and use that to point too or does the docker instance need to be a dedicated device?
thanks in advance!!
Thank you for your excellent video on Cloudflare Tunnel installation! Your clear instructions saved me hours of frustration, and I quickly achieved success. Your expertise is greatly appreciated!
hi dear
can i use cloudflare tunnel as vpn
i have outline vpn server and i want to connect this service as cloudflare tunnel
do you know ! vpn server only need 2 port custom and it can be change port to https proxy support
please learn me how can i use ths services
How can I add the access automatically to a warp client?
I don't write comments a lot, but great job!!!
You gave me back my sanity!
slow down please,😃
thank you so much this has been really informative. I would like to ask cause I see in most videos the tunnel is setup only for application or web, but what if you want to add servers to the tunnel, in my case to Azure Vm. Is this possible or been done?
great video, all I needed !
is porkbun brazilian? these are all state capitals (manaus, curitiba, fortaleza, etc) (btw thks for the channel)
I have problem. I created tunnel and when I add public hostname with with HTTP service which point to local IP with certain port after add them for first time works well, then Proxied CNAME record turns into non-proxied A record which point to my public IP. Where I made mistake?
Can a unifi controller be accessed via a cloudflare tunnel? Struggling to adopt remote devices.
he talks really really really fast 😀
Awesome guide! ⭐ Question: Are there any performance differences depending on how you host your Cloudflare Tunnel on your local network? Like installing the tunnel on your machine or when hosting it with Docker?