this post was submitted on 14 Oct 2024
18 points (95.0% liked)

Selfhosted

40734 readers
376 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Hello,

Long time lurker, first time poster and eternal newbie in selfhosting.

I have installed cloudflare tunnel in order to allow my Emby installation to be reached externally. (Previously was using tailscale but now trying this solution to expand my 'reach' and include my parents houshold)

The tunnel with email OTP works like a charm, but the access seems to be browser specific, so the Emby app doesn't seem to be able to connect (as it faces the email OTP challenge I suppose)

Is there a way to combine both?

I actually went down the path of writing a little script that tries to authorize the IP of someone that managed to pass the OTP challenge via browser. ( I get the user's IP and update the cloudflare policy via its API)

Seems to be overkill, any suggestions?

Thx

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 2 months ago* (last edited 2 months ago) (1 children)

From what I understand running high bandwidth things like video streaming through cloudflare tunnels will get your cloudflare account banned or charged (which is why they require payment info to setup tunnels).

Best to keep things like emby, jellyfin, and Plex to tailscale or just open the port.

Idk how emby works but with Plex I feel pretty safe having port open. Since any logins have to auth though Plex's servers.

[–] [email protected] 2 points 2 months ago (1 children)

From what I understand running high bandwidth things like video streaming through cloudflare tunnels

Not at present; section 2.8 is gone.

It is true they frown very bigly on doing stuff like that through the normal cached CDN, but that's mostly because the CDN is vastly vastly more expensive than some traffic through a tunnel and is still pretty much enterprise-or-you-can't territory.

The bigger issue is the tunnels are relatively slow, and the performance for real-time stuff like streaming really sucks.

So probably won't get banned, but it's also not going to work very well.

[–] [email protected] 1 points 2 months ago
[–] [email protected] 1 points 2 months ago (1 children)

I have setup the same thing as a temp measure, but i believe that something like Authelia or Keycloak should replace and be better than Cloudflare's email OTP.

[–] [email protected] 1 points 2 months ago* (last edited 2 months ago) (1 children)

But this implies the check happens on my server right ? Which probably makes sense for advanced hosters.

[–] [email protected] 1 points 2 months ago

Correct. But also public access should be considered advanced