• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Remote access with Caddy, Duckdns vs Tailscale for security?

     
    • 0 Vote(s) - 0 Average

    Remote access with Caddy, Duckdns vs Tailscale for security?

    Balinus
    Offline

    Junior Member

    Posts: 26
    Threads: 4
    Joined: 2025 Feb
    Reputation: 0
    Country:Canada
    #16
    2025-04-10, 12:12 AM (This post was last modified: 2025-04-10, 12:13 AM by Balinus.)
    So, I have read a little bit on Crowdsec. Very nice indeed, not super user friendly for someone that has limited knowledge about cybersecurity and networking like me. From what I understand:

    - Install Crowdsec engine (done)
    - Build Caddy with duckdns and crowdsec plug-in (done)
    - Install Remediation Components (aka bouncers, blocklist, etc...)

    This last point is a little bit obscure for me, there is so much blocklists, etc. The items I think I should install through Crowdsec engine are:

    - Caddy collection: https://app.crowdsec.net/hub/author/crow...ions/caddy
    - Jellyfin collection: https://app.crowdsec.net/hub/author/LePr...s/jellyfin

    Once installed, I need to get an api somehow, this part is not very well documented. I tried using the "Service API key" in the settings of Crowdsec, but I'm not sure is this is the good one. Anyhow, I then configured the Caddyfile with:

    Code:
    # CROWDSEC
    {
        debug # this is optional; makes Caddy log more details
        order crowdsec first # this ensures that the CrowdSec module is executed before any other HTTP handlers
        crowdsec {
            api_url http://localhost:8080 # the URL where your CrowdSec LAPI can be reached, somewhere on your network/system
            api_key SERVICE-KEY-API-FROM-CROWDSEC-CONSOLE-SETTINGS # the secret API key for the bouncer to authenticate against LAPI
        }
    }

    jellyfin-philipperoy.duckdns.org:9000 {
            reverse_proxy 127.0.0.1:8096

            crowdsec

            tls {
                    dns duckdns DUCKDNS-API
            }
    }

    I still do get the error when looking at "systemctl status caddy"

    Code:
    {"level":"error","ts":1744243579.8556097,"logger":"crowdsec","msg":"failed to connect to LAPI, retrying in 10s:

    so, that's where I'm at! Smiling-face

    So, I have read a little bit on Crowdsec. Very nice indeed, not super user friendly for someone that has limited knowledge about cybersecurity and networking like me. From what I understand:

    - Install Crowdsec engine (done)
    - Build Caddy with duckdns and crowdsec plug-in (done)
    - Install Remediation Components (aka bouncers, blocklist, etc...)

    This last point is a little bit obscure for me, there is so much blocklists, etc. The items I think I should install through Crowdsec engine are:

    - Caddy collection: https://app.crowdsec.net/hub/author/crow...ions/caddy
    - Jellyfin collection: https://app.crowdsec.net/hub/author/LePr...s/jellyfin

    Once installed, I need to get an api somehow, this part is not very well documented. I tried using the "Service API key" in the settings of Crowdsec, but I'm not sure is this is the good one. Anyhow, I then configured the Caddyfile with:

    Code:
    # CROWDSEC
    {
        debug # this is optional; makes Caddy log more details
        order crowdsec first # this ensures that the CrowdSec module is executed before any other HTTP handlers
        crowdsec {
            api_url http://localhost:8080 # the URL where your CrowdSec LAPI can be reached, somewhere on your network/system
            api_key SERVICE-KEY-API-FROM-CROWDSEC-CONSOLE-SETTINGS # the secret API key for the bouncer to authenticate against LAPI
        }
    }

    jellyfin-philipperoy.duckdns.org:9000 {
            reverse_proxy 127.0.0.1:8096

            crowdsec

            tls {
                    dns duckdns DUCKDNS-API
            }
    }

    I still do get the error when looking at "systemctl status caddy"

    Code:
    {"level":"error","ts":1744243579.8556097,"logger":"crowdsec","msg":"failed to connect to LAPI, retrying in 10s:

    so, that's where I'm at! Smiling-face
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-06, 09:31 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-06, 09:49 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-06, 11:38 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by TheDreadPirate - 2025-04-07, 12:27 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-07, 01:51 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by TheDreadPirate - 2025-04-07, 12:06 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-07, 12:27 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-07, 12:57 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-08, 01:20 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-08, 04:07 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by InTrusta - 2025-04-08, 09:57 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-08, 07:34 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-08, 07:46 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-08, 08:08 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-08, 08:27 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 12:12 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-10, 07:14 AM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by TheDreadPirate - 2025-04-10, 12:45 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 12:34 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-10, 02:15 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 03:19 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Duvel - 2025-04-10, 03:14 PM
    RE: Remote access with Caddy, Duckdns vs Tailscale for security? - by Balinus - 2025-04-10, 05:46 PM

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode