Cloudflare Tunnels: Restrict Access with Google and Github

  Рет қаралды 30,891

DB Tech

DB Tech

Күн бұрын

Пікірлер: 116
@sirjenkins7442
@sirjenkins7442 Жыл бұрын
I did this for some self-hosted services that my wife accesses. Limited access to my email and hers with Google authorization. Passes the wife test and quite secure so I'm happy!
@DBTechYT
@DBTechYT Жыл бұрын
Hell yes! That's awesome!
@AndrewSpec
@AndrewSpec Жыл бұрын
I did the same so my wife has access to some self-hosted services :D
@scottfrancis3601
@scottfrancis3601 Жыл бұрын
Thank you for this very good video as usual, PLEASE do the Authelia / Cloudflare Tunnel Video 🙂
@ibrudiiv
@ibrudiiv Жыл бұрын
For those exposing docker services to cloudflared, make sure said services are part of (generally) the 'bridge' network. Don't ignore docker networking when troubleshooting!
@adoolaard
@adoolaard 26 күн бұрын
Hi buddy, Thanks for all the videos. They're always accurate and straight to the point. Thanks! Just one note: could you slow down a little? I find myself having to rewind 5 seconds about 50 times in a single video. Still, they’re great, and I’ve definitely subscribed. I’d just love to see a slower pace; I understand the videos will be longer, but (for me) it's worth it.
@DBTechYT
@DBTechYT 26 күн бұрын
Thanks!! I talk fast. It's just who I am. Always have been. I've tried multiple times to slow down and I feel like I'm making fun of people. All I can say is to watch the video at .75 speed. Like... this has been enough of an issue over the years that I usually respond with this page that I put on my website years ago: dbtechreviews.com/i-talk-fast/
@shailesh.kharche
@shailesh.kharche 11 ай бұрын
Wonderful😃..Thanks a lot, very helpful 🙏. Would love to watch more such videos related to CloudFlare since it is growing with lots of new features.
@Chaosgreg5
@Chaosgreg5 7 күн бұрын
THIS! This is the video I've been searching for. Thank you so much for helping me get my subdomains locked down with Google.
@DBTechYT
@DBTechYT 7 күн бұрын
Glad it helped!
@frederickwood9116
@frederickwood9116 7 ай бұрын
Thanks for this one. I understand the implementation so much better now I have walked through it while pausing the video. keep them coming.
@DBTechYT
@DBTechYT 7 ай бұрын
Glad it helped!
@jbarr
@jbarr Жыл бұрын
Fantastic!! I had a CF Application authenticating with the one-time email code, but I've been struggling with the Google authentication. Afgter following along with your video,...IT WORKS! Thank you for all you do!
@DBTechYT
@DBTechYT Жыл бұрын
Really glad the video was helpful!!
@the-papaw
@the-papaw Жыл бұрын
Been a long time follower, I would love to see some videos on using NGrok and Cloudflare used together !
@keenauto
@keenauto Жыл бұрын
Great content! Please do the Authelia / Cloudflare Tunnel Video
@ShlomiDavidson
@ShlomiDavidson Жыл бұрын
Hi David. If I enable Google or Github auth to protect a Vaultwarden (running in a tunnel) instance what will happen to the Chrome Extension or the Android app? will I have access to these or I need to setup exclusions like in Authelia?
@AlL-fw2cy
@AlL-fw2cy Жыл бұрын
Thanks for this! Looking forward to the Authelia integration as well! Using this to access my local Radarr and Sonarr applications because they have no auth. This should block access to people not approved but Authelia would be ideal.
@GarethBeard
@GarethBeard Жыл бұрын
Excellent. Just the video I was waiting for.
@DBTechYT
@DBTechYT Жыл бұрын
Glad to hear it!
@kevinhughes9801
@kevinhughes9801 Жыл бұрын
Great vid love the cloudflare tunnels vids use them on my network and always learn so much from ur vids thanks
@scottvanlandingham7527
@scottvanlandingham7527 7 ай бұрын
Thanks David! Very easy to follow
@steve-maheshsingh7553
@steve-maheshsingh7553 9 ай бұрын
Thanks for doing this, I feel safe now
@andreawijayakusuma6008
@andreawijayakusuma6008 7 ай бұрын
did you add firewall rule allow access for this ip 0.0.0.0/0 on GCP ? actually I create wordpress on GKE and I want to restrict access to that wordpress using cloudflare , but I didn't know how to do that. I following your instruction using cloudflare, but the WordPress site still can be accessible for public
@gabrielalejandroverapinto1974
@gabrielalejandroverapinto1974 Жыл бұрын
Thank you for your time and effort with this videos, it really really really helps a lot!!
@gar2k3
@gar2k3 Жыл бұрын
If I had known you were going to do all the hard work, I would have waited for your video. Alas, I took inspiration from your last video (and helpful comments) and figured it out about 24 hours before this video went live. Now for bonus points - I'm currently investigating using Google SSO for Portainer to auto sign me in too - The steps in the portainer documentation are nowhere near as helpful as Cloudflare's. Thanks again for the helpful videos!
@DBTechYT
@DBTechYT Жыл бұрын
You might start here: kzbin.info/www/bejne/f4aloqailJyoq8U
@gar2k3
@gar2k3 Жыл бұрын
@@DBTechYT you’re good people David! Merry Christmas!
@yourpcmd
@yourpcmd Жыл бұрын
While I greatly appreciate your video on setting up Cloudflare Tunnels, there is a snag I've run into. I cannot get my domain through tunnels to connect to my Proxmox box, but all the VM's and Docker containers on it work with no problem.
@metal-beard
@metal-beard Жыл бұрын
Turn on No TLS verification under Additional Application Settings while configuring Proxmox. That should help. (Proxmox uses it's own TLS certification)
@PranavKaranjkar
@PranavKaranjkar 9 ай бұрын
When I set this up, it only works as shown in the video in an incognito window. When I try this in a normal browser window, it appears to want to load my application (since I am already signed into google on my browser), but then I end up with a white screen. Is there something I am missing?
@wdaniel9888
@wdaniel9888 Жыл бұрын
These videos are incredible.
@propeto13
@propeto13 Жыл бұрын
if people only knew how powerful this content really is....Thank you! @DBTechYT
@DBTechYT
@DBTechYT Жыл бұрын
It's why I'm try to make content about it :)
@Catge
@Catge 11 ай бұрын
Thanks, great tutorial and comment for the algorithm.
@debnathmriganka2010
@debnathmriganka2010 Жыл бұрын
Sir, Please can you help me one thing i am using cloudflared tunnel for my winodows 10 pc, I can access webserver using 80 port from outside but when i am going to use RDP i cant not access from outside from my home. Please can help me.
@roryjohnston
@roryjohnston Жыл бұрын
Excellent videos, really useful! Have you played with the Private Network feature within the Zero Trust Tunnel? Is it useful at all?
@DBTechYT
@DBTechYT Жыл бұрын
Thanks! I haven't done much of anything with Private Networks as of yet.
@roryjohnston
@roryjohnston Жыл бұрын
​@@DBTechYT This is where a good video guide comes in (as the documentation is really quite hard going!).
@JuampyRabino
@JuampyRabino Жыл бұрын
Followed step by step and it worked flawlessly! Thanks!!!
@DBTechYT
@DBTechYT Жыл бұрын
Great to hear! Thanks for the comment!!! :)
@angelgil577
@angelgil577 Жыл бұрын
great job DB
@koset
@koset Жыл бұрын
Works like a champ. Thanks!!!
@vijeyparthasarathy
@vijeyparthasarathy Жыл бұрын
My company uses gitea instead of github .. is there any option to check. Else authelia we use these two things.. Any advice or suggestions Vijey
@elitearmedforce
@elitearmedforce Жыл бұрын
Thank you for such series. Really helpful, built myself at least 5 self hosted programs. Do u have any plan on making one for Nextcloud AIO docker+portainer+cloudflare tunnel? I tried it but sadly after enabling nextcloud containers part, the initial a logging doesnt work sadly with tunnel, it says bad tunnel.
@DBTechYT
@DBTechYT Жыл бұрын
I'll have to look into it. I don't really care for NextCloud to start with and I'm not sure what the point of NextCloud AIO is...
@ali2kan
@ali2kan Жыл бұрын
I installed NextCloud AIO using [This Guide](kzbin.info/www/bejne/hXSvomlogLSkhLc) from Awesome Open Source, it works great, and I have it running through my Cloudflare tunnels. The AIO package makes NextCloud much easier to deploy and maintain. I actually find myself using NextCloud more as time goes on, there are some extremely useful add-ons that are quite lovely!
@elitearmedforce
@elitearmedforce Жыл бұрын
@@DBTechYT no worries. I like that a package contains all Nextcloud stuff in it, usually use office and talk, others I disable them in containers section. If I want to use them I can just enable them. I will be looking for solution online too. Again thank you for educational videos,
@BusterDoggyDogg
@BusterDoggyDogg Жыл бұрын
Very interesting video. Thank you for your hard work! Quick question - will this result in having to authenticate via Google or GitHub (in your case) even if I'll try accessing the application from internal network?
@guidoargentina5144
@guidoargentina5144 11 ай бұрын
No it doesn't. Only if you access via CloudFlare.
@htcheroportugal
@htcheroportugal Жыл бұрын
yes, please to a video with authelia and cloudflare
@bett0diaz
@bett0diaz Жыл бұрын
Great video as always! My question is how this affects other clients that are not browsers (i.e. Nextcloud, bitwarden, jellyfin, etc android clients). As I would like to setup this, but my concern is that they don't know how to interact with the new layer
@DBTechYT
@DBTechYT Жыл бұрын
Honestly I haven't tried it so I can't give much info. For my setup with those apps, I restrict by IP and either access at home or via my PIA VPN with a dedicated IP
@bett0diaz
@bett0diaz Жыл бұрын
@@DBTechYT I thought about that too. Will use that for restrictions then. Or something similar hehe. Thanks for your reply!!! Greetings from Argentina!
@MrWynand2010
@MrWynand2010 Жыл бұрын
thanks you for making this video this is what I wanted a video about becuse it is so complicated.
@DBTechYT
@DBTechYT Жыл бұрын
Glad it was helpful!
@jeffer8762
@jeffer8762 Жыл бұрын
maybe do setup of SSO provider like Authelia Authentik Keycloak tutorial and integration more content to come!!
@upuldi
@upuldi Жыл бұрын
How this works for things like Plex and Vaultwarden where you have an app running in your phone ?
@ChrisDePasqualeNJ
@ChrisDePasqualeNJ Жыл бұрын
Very helpful - This will help me. I recently set up Authentik (very cool app) it is better then Authelia. I followed Cooptonian to set to configure it and just used the Authentik site with and .env file for email etc. Very cool though this will help me setup SMIL and cloud flair instead of Google or Github. :-)
@-ColorMehJewish-
@-ColorMehJewish- Жыл бұрын
I wish I could find documentation on how to add a custom logo to the auth page (or to customize it further than the application OAUTH page) This was very helpful though. Thank you
@WildAwesome
@WildAwesome Жыл бұрын
Hi David, great video as always. Can you tell me what happens if you pick one of the other Gmail addresses. One that hasn't been given access. Does it handle it gracefully? Does it let you in anyway? Many thanks.
@DBTechYT
@DBTechYT Жыл бұрын
It'll just tell you that that account doesn't have access
@juandag1828
@juandag1828 9 ай бұрын
Very helpful, thank you!
@skorpion1298
@skorpion1298 Жыл бұрын
All this after I setup my Nginx container :( thanks for the vid!
@cal3751
@cal3751 Жыл бұрын
Thanks, David. I'm curious about how to use multiple identity providers, e.g. check for an included ip and if that fails then verify by email or github. Can you explain the difference between "include" and "require"? I suspect they are implementations of boolean ANDs/ORs but I am just guessing.
@DBTechYT
@DBTechYT Жыл бұрын
Based on my knowledge, you're spot on
@MrWynand2010
@MrWynand2010 Жыл бұрын
thanks so much. it finaly works
@DBTechYT
@DBTechYT Жыл бұрын
Glad it helped
@ismailelayachi9337
@ismailelayachi9337 Жыл бұрын
Great video thank you for sharing.
@jalish.mahmud
@jalish.mahmud Ай бұрын
how to add multiple email in the google authentication?
@flossydentist
@flossydentist Жыл бұрын
Thanks man
@turnthatfrown7659
@turnthatfrown7659 Жыл бұрын
is anyone else having trouble getting this to work. I setup the self hosted app but it is not restricting access to my tunnel
@MehrdadGivehchi
@MehrdadGivehchi Жыл бұрын
I have an application which uses a specific port and was wondering how you can use the method described in this video to do this.. any help is greatly appreciated.
@DBTechYT
@DBTechYT Жыл бұрын
Watch the video linked in the video description
@shawndamon3055
@shawndamon3055 Жыл бұрын
it was working then i suddenly started getting errors for both Google and Github, "Unable to find your Access organization! It appears that you have attempted to reach an invalid URL. Please enter a valid team name." i have gone into settings and copy and past what i see is the team name.... just wondering if someone else has this issue
@Tecactually
@Tecactually 9 ай бұрын
yup trying to figure it out rn
@josel82
@josel82 Жыл бұрын
Great tutorial 🙌
@afrik000
@afrik000 Жыл бұрын
Any option to use the tunnel for other protocols, e.g. RDP?
@DBTechYT
@DBTechYT Жыл бұрын
You can easily login to your Cloudflare account and see all the protocols available
@mase-ob1vf
@mase-ob1vf Жыл бұрын
Well this doesn't play nicely when trying to access your staging server's API endpoints. It keeps asking to authenticate with github :(
@DBTechYT
@DBTechYT Жыл бұрын
This isn't meant for API endpoints.
@Malli2602
@Malli2602 Жыл бұрын
Hi @DBTech, nice Video! I have a question. How do I restrict access with Google authentication to all of my Cloudflare tunnels with a single policy? If I just leave the subdomain blank, there will be no authentication anymore. If I put subdomain in, authentication is working fine, but only for that singe sub. Would be nice If someone could help me.
@DBTechYT
@DBTechYT Жыл бұрын
You'll need to create an access group with the emails you want to authorize. Then apply that access group to any of the applications you want
@zeemssy
@zeemssy Жыл бұрын
Best!
@ydiadi_
@ydiadi_ Жыл бұрын
Awesome as always bro , if possible can u do a video on setting up samba on cloudflare tunnels
@DBTechYT
@DBTechYT Жыл бұрын
What are you trying to accomplish with samba on CF tunnels?
@ydiadi_
@ydiadi_ Жыл бұрын
@@DBTechYT remote access
@DBTechYT
@DBTechYT Жыл бұрын
So use a file management application and access it that way via tunnels? It would be a much easier solution and give you more options
@ydiadi_
@ydiadi_ Жыл бұрын
@@DBTechYT have u done any videos on that bro ? If yes can u please link to it
@DBTechYT
@DBTechYT Жыл бұрын
FileRun: kzbin.info/www/bejne/oJKveJadp6asqtE FileCloud: kzbin.info/www/bejne/eXSqfpZsns2Yja8
@rafaka9998
@rafaka9998 Жыл бұрын
This not working I add e-mail verification and remove. Everybody with mail still can has access
@DBTechYT
@DBTechYT Жыл бұрын
Then you missed a step in your configuration
@ronnyrrr
@ronnyrrr Жыл бұрын
What a legend
@ronnyrrr
@ronnyrrr Жыл бұрын
Followed this process for Google auth, but seem to be getting error 1033? Argo Tunnel error?
@50_Pence
@50_Pence Жыл бұрын
one thing that stumped me - that might help someone else. if you only want github access with NO email access. You must go to cloudflare zero trust/applications/authorization - then select add 'login methods' as the selector and 'Github' as the value. other wise you get a login error (That account does not have access)
@CGA111
@CGA111 Жыл бұрын
Is it possible to add multiple authorized email addresses this way?
@DBTechYT
@DBTechYT Жыл бұрын
In the spot in CloudFlare where you add your email, you can add multiple emails there.
@CGA111
@CGA111 Жыл бұрын
@@DBTechYT Thanks, seems obvious now that you say it.
@pradiptabasu7080
@pradiptabasu7080 Жыл бұрын
Is it possible to use Nginx Proxy Manager with Cloudflare Tunnels ?
@DBTechYT
@DBTechYT Жыл бұрын
I haven't tested it, but several of people have said they use them together. I don't see the point/need to combine then, but there's no one right way to do things
@pradiptabasu7080
@pradiptabasu7080 Жыл бұрын
@@DBTechYT thank you so much for your response. I am behind CG-NAT, don't want to route via VPS (NPM + VPN). I am hoping CF tunnel pushes all traffic thru tunnel to my NPM instance and then NPM takes care of routing to individual apps and integrate to Authentik or something similar.
@MrRalf2201
@MrRalf2201 Жыл бұрын
Is there a way to use Google Authenticator to get access to a application that run on a cloudflare tunnel?
@DBTechYT
@DBTechYT Жыл бұрын
@@MrRalf2201 You could put 2FA on your email address and use that for your authentication
@vijeyparthasarathy
@vijeyparthasarathy Жыл бұрын
Are you using the paid version of cloudflare.. please advise
@DBTechYT
@DBTechYT Жыл бұрын
There are things with CloudFlare that I pay for but everything in these videos are available on their free tier
@AhmedSalahOnline
@AhmedSalahOnline Жыл бұрын
Thank you . 🌹🌹🌷🌷🌷
@Tecactually
@Tecactually 9 ай бұрын
getting "Error 400: redirect_uri_mismatch" when trying to test google
@Tecactually
@Tecactually 9 ай бұрын
figured out that issue, since i copied it from yt it mistook the g as a q... but now im getting access blocked
@LeBzBr
@LeBzBr Жыл бұрын
Love u DB Tech...Ty from Brazil!
@DBTechYT
@DBTechYT Жыл бұрын
Thanks for watching!
@JulAlxAU
@JulAlxAU Жыл бұрын
Can’t even transfer a simple TLS session. It has to be https or http or else it’s useless!
@jbarr
@jbarr Жыл бұрын
Also, I just posted in r/kasmweb about this....
@DBTechYT
@DBTechYT Жыл бұрын
Thanks!
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 41 МЛН
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 32 МЛН
Don't look down on anyone#devil  #lilith  #funny  #shorts
00:12
Devil Lilith
Рет қаралды 46 МЛН
EASY Remote Access: How to setup CloudFlare Tunnels
14:55
SpaceRex
Рет қаралды 13 М.
Restrict Access to Your Cloudflare Tunnel Applications
19:54
Cloudflare avoid this mistake!
17:41
Laurence
Рет қаралды 32 М.
Cloudflare Tunnel Setup Guide - Self-Hosting for EVERYONE
16:11
How to use Cloudflare Tunnel in your Homelab (even with Traefik)
23:34
Christian Lempa
Рет қаралды 157 М.
Access Your Self Hosted Services WITHOUT Port Forwarding
18:14
MP3 CDs: a hybrid "format" that never existed, yet was surprisingly common
34:18
Technology Connections
Рет қаралды 421 М.
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 41 МЛН