#How do I restrict certain subdomains to be accessible from the localnetwork only?

20 messages · Page 1 of 1 (latest)

lucid sage
#

Local firewall rules?

buoyant minnow
#

How would I configure this over cloudflare?

lucid sage
buoyant minnow
#

Are you sure?

#

I've read multiple places that it's possible but no real explanation on how

lucid sage
# buoyant minnow Are you sure?

Okay, maybe I understood your question wrong, you want a proxied subdomain on Cloudflare to be only accessible from a certain IP range (home network) correct? And all other IPs should get blocked?

buoyant minnow
#

Yea close enough I guess, I'm not sure what you mean by proxied

lucid sage
buoyant minnow
#

Alright

#

but I want the possibility of making other subdomains public

#

should be public

lucid sage
#

This sounds like complex setups, I first thought about recommending WAF rules for this, but they might not be powerful enough.
I'd recommend to look into Zero Trust and how to setup an app inside this framework (it support a gazillion way to for authentication/authorization) -> https://developers.cloudflare.com/cloudflare-one/setup/

Cloudflare Docs

This guide covers the recommended steps to start securing your users and devices with Cloudflare Zero Trust.

buoyant minnow
#

I'm looking at that right now myself but when I try to setup a tunnel using the "private network", I'm not allowed to set any subdomain

lucid sage
#

I think you don't need a tunnel to setup an app for a subdomain.

buoyant minnow
#

How would I do it?

lucid sage
# buoyant minnow How would I do it?

Not trivial, but also not extremely complex, I got a demo working after an hour or two. Read the docs, experiment, learn the lingo. There is no quick way. This stuff is a bit complex by design.

buoyant minnow
#

I dont know, that doesn't help me much tbh. I'm gonna give tunnelling a shot