Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. getting 522 error Cloudflaired + Jellyfin + fail2ban

getting 522 error Cloudflaired + Jellyfin + fail2ban

Scheduled Pinned Locked Moved Selfhosted
selfhosted
4 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nagaram@startrek.websiteN This user is from outside of this forum
    nagaram@startrek.websiteN This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    So I'm trying to get Jellyfin accessible on the open web through a cloudflared tunnel

    I have a default install of Jellyfin running that is still accessible locally.

    I'm able to ping TV.myblogdomain.com

    And the Cloudflared dashboard says the connection is up.

    I have implemented page rules and caching rules to turn CDN off.

    I have set the DNS server on the Jellyfin VM to be the Cloudflared DNS server.

    It's pointed to https://jellyfin:8096/

    And it wasn't working with or without a CIDR in the tunnel configuration.

    Should I try uninstalling fail2ban and see if that helps? I thought I configured it right pointing it to the 8096 port but maybe I need to do 80/443?

    Any tips or guides would be appreciated.

    X E C 3 Replies Last reply
    4
    • nagaram@startrek.websiteN [email protected]

      So I'm trying to get Jellyfin accessible on the open web through a cloudflared tunnel

      I have a default install of Jellyfin running that is still accessible locally.

      I'm able to ping TV.myblogdomain.com

      And the Cloudflared dashboard says the connection is up.

      I have implemented page rules and caching rules to turn CDN off.

      I have set the DNS server on the Jellyfin VM to be the Cloudflared DNS server.

      It's pointed to https://jellyfin:8096/

      And it wasn't working with or without a CIDR in the tunnel configuration.

      Should I try uninstalling fail2ban and see if that helps? I thought I configured it right pointing it to the 8096 port but maybe I need to do 80/443?

      Any tips or guides would be appreciated.

      X This user is from outside of this forum
      X This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      https://jellyfin:8096/

      Port 8096 is the default HTTP protocol port, and you're trying to access it via HTTPS. Do you have certificates installed and available for your jellyfin instance? If not, it's very likely Cloudflare won't route it correctly.

      I'm not saying this is your specific issue, but it'll be the one after you fix this one at least. You may need to mess with the cloudflare "current encryption mode" to get this to work.

      1 Reply Last reply
      2
      • nagaram@startrek.websiteN [email protected]

        So I'm trying to get Jellyfin accessible on the open web through a cloudflared tunnel

        I have a default install of Jellyfin running that is still accessible locally.

        I'm able to ping TV.myblogdomain.com

        And the Cloudflared dashboard says the connection is up.

        I have implemented page rules and caching rules to turn CDN off.

        I have set the DNS server on the Jellyfin VM to be the Cloudflared DNS server.

        It's pointed to https://jellyfin:8096/

        And it wasn't working with or without a CIDR in the tunnel configuration.

        Should I try uninstalling fail2ban and see if that helps? I thought I configured it right pointing it to the 8096 port but maybe I need to do 80/443?

        Any tips or guides would be appreciated.

        E This user is from outside of this forum
        E This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        It should be noted that you’re not permitted to stream video through Cloudflare unless you use their CDN.

        1 Reply Last reply
        1
        • nagaram@startrek.websiteN [email protected]

          So I'm trying to get Jellyfin accessible on the open web through a cloudflared tunnel

          I have a default install of Jellyfin running that is still accessible locally.

          I'm able to ping TV.myblogdomain.com

          And the Cloudflared dashboard says the connection is up.

          I have implemented page rules and caching rules to turn CDN off.

          I have set the DNS server on the Jellyfin VM to be the Cloudflared DNS server.

          It's pointed to https://jellyfin:8096/

          And it wasn't working with or without a CIDR in the tunnel configuration.

          Should I try uninstalling fail2ban and see if that helps? I thought I configured it right pointing it to the 8096 port but maybe I need to do 80/443?

          Any tips or guides would be appreciated.

          C This user is from outside of this forum
          C This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          I'm guessing the cloudflared daemon isn't connecting to jellyfin. You want to use http://. Also is jellyfin the hostname of the VM? Using localhost or 127.0.0.1 might be better ways to specify the same VM without relying on DNS for anything.

          Personal opinion, but I wouldn't bother with fail2ban, it's a bit of effort to get it to work with cloudflare tunnel and easy to lock yourself out. Cloudflare's own zero trust feature would be more secure and only need fiddling around cloudflare's dashboard.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups