• 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?

    Duvel
    Offline

    Member

    Posts: 69
    Threads: 9
    Joined: 2023 Jul
    Reputation: 3
    Country:Belgium
    #17
    2025-04-10, 07:14 AM (This post was last modified: 2025-04-21, 07:47 AM by Duvel. Edited 3 times in total.)
    This thread is turning into a "how to protect Jellyfin with Crowdsec" :-)

    First of all in your config, you need 2 different API keys, because you have 2 components locally:
    The LAPI server
    The Caddy Bouncer

    1. Your LAPI server should be registered with Crowdesc central servers, and you use the API key provided on your crowdsec.org CP

    2. Your Caddy Bouncer should be registered with your LAPI server. It looks like you are stuck on that one.

    In order to register your bouncer to your LAPI, you need to use the crowdsec CLI using cscli commands ( https://docs.crowdsec.net/docs/cscli/ )

    If you have a normal install, you just do:
    Code:
    sudo cscli <commands>

    If you have a docker container, then you should do :
    Code:
    sudo docker exec crowdsec-container cscli <command>
    Where "crowdsec-cotainer" is the name of your LAPI container, adapt.

    Example : list the machines

    Code:
    tom@cerbere:/opt/caddy$ sudo docker exec crowdsec cscli machines list
    [sudo] password for tom:
    -------------------------------------------------------------------------------------------------------------------------------
    Name      IP Address  Last Update          Status  Version          OS                            Auth Type  Last Heartbeat
    -------------------------------------------------------------------------------------------------------------------------------
    localhost  127.0.0.1  2025-04-10T06:38:05Z  ✔️      v1.6.8-f209766e  Alpine Linux (docker)/3.21.3  password  39s
    -------------------------------------------------------------------------------------------------------------------------------
    Next, list the bouncers:

    Code:
    tom@cerbere:/opt/caddy$ sudo docker exec crowdsec cscli bouncers list
    ---------------------------------------------------------------------------------------------------------
    Name                      IP Address  Valid  Last API pull        Type              Version  Auth Type
    ---------------------------------------------------------------------------------------------------------
    caddy-bouncer@172.21.0.1  172.21.0.1  ✔️    2025-04-10T06:49:58Z  caddy-cs-bouncer  v0.8.1  api-key
    ---------------------------------------------------------------------------------------------------------

    I believe you are stuck there, and your list is probably empty. You have not added your caddy bouncer, which should have generated an API key for your bouncer to connect to the LAPI.

    To register your caddy bouncer, use the <cscli bouncers add caddy-bouncer> command:
    Code:
    $ sudo docker exec crowdsec cscli bouncers add caddy-bouncer
    API key for 'caddy-bouncer':

      Q8iKI+FuQc7SGG2vXQWx7WMpxKeGj2UA0Baw5lUf5Zc

    Please keep this key since you will not be able to retrieve it!

    This is the API key that you should specify in your CaddyFile, there:
    SERVICE-KEY-API-FROM-CROWDSEC-CONSOLE-SETTINGS

    Once Caddyfile is adapted, restart caddy.

    And then recheck your bouncers list and status with cscli bouncers list
    --> You should now see your caddy-bouncer connected
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 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