Keep Hackers Out with Crowdsec Now!

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 61

  • @JustinJ.
    @JustinJ. Год назад +8

    Really enjoying the content mate, keep them coming 👍🏻

    • @Jims-Garage
      @Jims-Garage  Год назад +1

      Thanks so much for the feedback.

  • @simuman
    @simuman 7 месяцев назад +4

    Really great videos Jim as nobody is doing these in-depth videos of explaining security as well as you ( I know it's quite difficult to explain these ). Just one caveat on some videos you've missed some commands out visually by not showing on the video, including this one at the end when removing the added IP was not shown. This was easily figured out, but for some visual newbies it would leave them stranded a bit. Anyway great job keep up the good work as they have really helped me with my homelab journey.

  • @nicolasotero6424
    @nicolasotero6424 10 месяцев назад +4

    Great chanel, Jim!! One thing you need to explain is log rotation of your docker containers. You cannot keep log files for a long time because the size of them will become huge!!

    • @Jims-Garage
      @Jims-Garage  10 месяцев назад +4

      Thanks 👍 yes, I might put a short out on how to do it.

    • @Coolblockj
      @Coolblockj 9 месяцев назад +3

      @@Jims-Garage This would be great to know how you are doing it!

  • @woreibi
    @woreibi Год назад +5

    Great video Jim, towards the end your screen capture was showing next video to watch instead of what you are trying to demo. I would love to see a video on crowdsec with nginx proxy manager if that is an option. Also if you have a diagram like the one at the beginning of this video that shows all containers and data flow logic that has numbers of how it flows that would great. Just a suggestion. I'm a fan.

    • @Jims-Garage
      @Jims-Garage  Год назад +3

      Thanks for your support and suggestions, I'll fix that.
      Certainly something I'll keep in mind as I know nginx is very popular.

  • @raulfigueroa2599
    @raulfigueroa2599 10 месяцев назад +2

    Exclente contenido. He visto muchos canale de este tipo. Pero tienes un don para explicar sigue asi. Me suscribo. No me puedo perder este contenido tan valioso. 🎉

  • @chrisumali9841
    @chrisumali9841 Год назад +1

    Thanks for the demo and info, have a great day

  • @msilveirabr
    @msilveirabr Месяц назад

    I can't help but close my eyes and hear David Bombal in your videos😂

  • @silverstone7778
    @silverstone7778 8 месяцев назад +2

    It looks really cool, but unfortunately when I try to get it up and running, I'm just getting lots of failed to run filter : invalid character 'i' in literal true (expecting 'r') (1:1)
    | UnmarshalJSON and UnmarshalJSON : invalid character 'i' in literal true (expecting 'r'). I opened a thread on the Crowdsec forum since I couldn't Google *any* issue with similar error message. Has that happened to you as well? I'm using Podman not Docker, but it should behave in the same way ...

    • @Jims-Garage
      @Jims-Garage  8 месяцев назад

      I've witnessed that before, restart the containers.

    • @silverstone7778
      @silverstone7778 8 месяцев назад +1

      @@Jims-Garage already tried several times both for crowdsec, the bouncer and traefik. Didn't help unfortunately. Possibly some issue with cloudflare DNS proxy? On a separate issue I think to issue the let's encrypt certificate the first time I have to turn off DNS proxy. But everything was working correctly before introducing the bouncer 🤔

    • @Jims-Garage
      @Jims-Garage  8 месяцев назад

      @@silverstone7778 did you register the bouncer?

    • @silverstone7778
      @silverstone7778 8 месяцев назад +1

      @@Jims-Garage the apikey part? Yes created and put in the compose.yml file, the did a podman-compose up - d. Restarted traefik and crowdsec several times without avail. For now I disabled crowdsec in traefik because nothing is working anymore 😔

  • @MacJFitness
    @MacJFitness 3 месяца назад +1

    If you put your container which has Traefik and Crowdsec through a Cloudflare proxy, is it possible to see the external IP coming in or ban external IPs? Currently, I am only seeing local IPs in the logs.

    • @Jims-Garage
      @Jims-Garage  3 месяца назад +1

      X-forwarded header should show the original IP

    • @MacJFitness
      @MacJFitness 3 месяца назад

      @@Jims-Garage How would I set that up?

  • @TheStevenWhiting
    @TheStevenWhiting Год назад +2

    All good, although difficult to see the dark blue in the console windows.

    • @Jims-Garage
      @Jims-Garage  Год назад

      Thanks, noted. Will try to avoid that in future videos.

  • @sebasdt2103
    @sebasdt2103 Год назад +2

    Thank you for the amazing video, one last thing that has been on my mind.
    For example if I got 2 docker hosts each on different vlans, do I need two treafik instances?.
    Like one for local and the other one for external access.
    Or is it better to have a dedicated nginx rproxy for external access and treafik for internal use.

    • @Jims-Garage
      @Jims-Garage  Год назад +2

      You raise a good question and it's something I'm planning on doing a video about.
      No, you don't need two instances you can route Traefik to external services (I do it for Proxmox gui). You can use two proxies, one for internal and one for external if you like. Or, you could use a single Traefik instance with multiple entrypoints (some of which are exposed).

    • @MacJFitness
      @MacJFitness 3 месяца назад

      @@Jims-Garage Is there a video on this curious myself?

    • @Jims-Garage
      @Jims-Garage  3 месяца назад

      @@MacJFitness no, but use an external service within Traefik. I do this for Proxmox UI

  • @crc-error-7968
    @crc-error-7968 11 месяцев назад +1

    Ciao Jim, to me it is not clear how bouncer works.
    Do I have to add one for each service i want to expose (example: plex, home assistant, nextcloud)? or do I only have to add the one for traefik (if everything is managed by it) like you did?

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      Just add to Traefik once, everything is then passed through it.

    • @crc-error-7968
      @crc-error-7968 11 месяцев назад +1

      @@Jims-Garage Thank you very much! and thanks for the quick reply, I recently discover your channel and I love it! cheers from Italy! ciaoo

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад +1

      @@crc-error-7968 appreciate the feedback, have a good one 👍

  • @khanhthedag7269
    @khanhthedag7269 8 месяцев назад +1

    Hi Jims, nice tutorial.
    i have error on log crowdsec: "failed to yaml decode /etc/crowdsec/acquis.yaml: yaml: input error: read /etc/crowdsec/acquis.yaml: is a directory". why? can you help ?

    • @Jims-Garage
      @Jims-Garage  8 месяцев назад

      You have likely not created the file before deploying the container. When this happens Docker creates a folder with the file name. You need to delete the folder acquis.yaml, then create a file called acquis.yaml, and populate it with the example variables. Then when you next deploy it'll work.

    • @khanhthedag7269
      @khanhthedag7269 7 месяцев назад

      ok. I try again (I delete VM and make a new VM). Than it work with crowdsec and bouncer.
      but traefik doesn't work, after install crowdsec.
      I put e.g. 192.168.x.y:8080. The site is not accessible. Why? is because, traefik has the same port 8080 like crowdsec ?
      please help. Thanks.

  • @andresrevilla7932
    @andresrevilla7932 8 месяцев назад +1

    Hi Jim, Great video .. I have some problems after generating the token via command line .. (14:29). ERROR = msg="while fetching bouncer info: select bouncer: ent: bouncer not found: unable to query"... to solve it i am using this command : docker exec crowdsec cscli bouncers add docker-crowdsec-npm-bouncer . This works for me .. Thanks for the great tutorial.

    • @Jims-Garage
      @Jims-Garage  8 месяцев назад +1

      Thanks, glad you figured it out.

  • @Glatze603
    @Glatze603 10 месяцев назад +1

    Hi Jim, how to add the entry in the config.yml when I am using authelia as middleware? I am confised about it because after adding crowdsec-bounser under middleware I am not abble to open any https site any more, I guess because it is not routed to authelia any more? I think/hope it is a small change in the config.yml. Thanks a lot.

    • @Jims-Garage
      @Jims-Garage  10 месяцев назад

      Have you added the middlewares to both entrypoints?

    • @Glatze603
      @Glatze603 10 месяцев назад

      @@Jims-Garage Could you give me an example of what and how you mean?

    • @Jims-Garage
      @Jims-Garage  10 месяцев назад +1

      @@Glatze603 under each entrypoint in your Traefik config add the crowdsec middleware. Did you remember to register the bouncer? It might be worth getting crowdsec working first and then adding Authelia back

  • @kafadek825
    @kafadek825 4 месяца назад +1

    Thanks for this. Does anyone know how to whitelist IP addresses for crowdsec in docker?

    • @Jims-Garage
      @Jims-Garage  4 месяца назад

      What do you mean? Crowdsec applies to all traffic hitting Traefik (AFAIK).

    • @kafadek825
      @kafadek825 4 месяца назад

      @@Jims-Garage You are correct and that is my issue. I usually sync a lot of files through nextcloud but I believe crowdsec seems to see it as brute force so I keep getting forbidden errors. I was hoping for a way to whitelist the cloudflare IP addresses so crowdsec doesn't block it. I cant seem to find how to do that in docker.

  • @myhometvaccount9365
    @myhometvaccount9365 11 месяцев назад +1

    hi thanks for this traefik has always been 2difficult" for me, unitl now :) i updated my traefik config to include crowdsec, now traefik dashboard is not loading, just a blank page, realised i'm running unifi contorller on the docker host which uses port 8080, how do i change the crowdsec config file to utilize a different port please?

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      I recommend you leave crowdsec and Traefik as is, and simply run the unifi controller through Traefik (add the labels). This is the whole point of having the proxy.
      If that is not possible, change the port on unifi or crowdsec to accommodate.

    • @myhometvaccount9365
      @myhometvaccount9365 11 месяцев назад +1

      k thanks, i only open the Inform port (8080) and stun (3478) to my unifi controller, just followed an article on how to change the crowdsec ports, but realised i have to also change the bouncer-traefic listening port too. PS is discord the best comm's, simply refuse to use discord (company background) and they also want your telephone number to post messages?

    • @Jims-Garage
      @Jims-Garage  11 месяцев назад

      @@myhometvaccount9365 Discord is the most popular, I added phone number requirements to prevent bots.
      I do have a matrix server for anonymous conversation (check out my video, no installation required).

  • @Jr-hv1ct
    @Jr-hv1ct Год назад +1

    Hey Jim followed the video but at tue end of it can no longer access the traefik dash oord or gue nginx web page receding a 404 error page not found. Did tue traefik setup then crowdsec and skipped the pihole video assuming that is not a requirement?

    • @Jims-Garage
      @Jims-Garage  Год назад

      Hi, unfortunately crowdsec breaks the Traefik dashboard, but both should still be working. I'm not sure why, and I have reached out to crowdsec for support but they weren't much help. I think it might be due to port conflicts on 8080.
      Nginx should be reachable though, not sure why that isn't working. Let me double check on my end using my configs.

    • @Jr-hv1ct
      @Jr-hv1ct Год назад

      @Jims-Garage ok noted,. If I put the port 8080 at the end of the docker it I can reach the ngonx page. Had to open the port for the Jellyfin one in order to reach its page as well as not to reaching it withe the name.

    • @mark-jin-10-xk1po
      @mark-jin-10-xk1po Год назад

      @@Jims-Garage ​I'm also having an issue with not being able to access Traefik page. I followed everything in your video. I noticed by removing the middleware crowdsec-bouncerfile added on traefik.yml, I was able to access my traefik page again. but then I think crowdsec does nothing doing this lol.

    • @marcussteck3782
      @marcussteck3782 Месяц назад

      @@Jims-Garage i got the issue now, that traefik does not handle http/https anymore:
      ERR error="middleware \"crowdsec-bouncer@file\" does not exist" entryPointName=http routerName=http-to-https@internal
      i'm still in investigation why this is happening at the http to https right now

    • @yofuru
      @yofuru Месяц назад

      @@marcussteck3782 Did you find out why? I have the same issue, this and the 404 error reported above.