Тёмный

Keep Hackers Out with Crowdsec Now! 

Jim's Garage
Подписаться 36 тыс.
Просмотров 17 тыс.
50% 1

Deploy Crowdsec to protect your apps from hackers. Use live threat data to ban bad IPs and threat actors, protect your services from compromise.
In this video I'll discuss what Crowdsec is, how you can deploy it, and what benefits it provides. I'll also share with you the necessary configs to speed up deployment, to begin protecting yourself NOW.
‪@crowdsec‬
Config Files: github.com/JamesTurland/JimsG...
Discord: / discord
00:00 - Introduction to Crowdsec
00:22 - What is Crowdsec?
02:05 - How does it work?
05:30 - Where Crowdsec sits within our technology stack
06:30 - Docker config walkthrough
10:54 - Customising config files
11:38 - Install walkthrough
17:25 - Validate deployment
18:00 - Manual bans
20:06 - Outro and wrap up

Наука

Опубликовано:

 

30 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@JustinJ.
@JustinJ. Год назад
Really enjoying the content mate, keep them coming 👍🏻
@Jims-Garage
@Jims-Garage Год назад
Thanks so much for the feedback.
@msilveirabr
@msilveirabr 14 дней назад
I can't help but close my eyes and hear David Bombal in your videos😂
@simuman
@simuman 5 месяцев назад
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.
@chrisumali9841
@chrisumali9841 Год назад
Thanks for the demo and info, have a great day
@Jims-Garage
@Jims-Garage Год назад
Thanks, you too!
@raulfigueroa2599
@raulfigueroa2599 8 месяцев назад
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. 🎉
@Jims-Garage
@Jims-Garage 8 месяцев назад
Thanks 😊
@woreibi
@woreibi Год назад
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 Год назад
Thanks for your support and suggestions, I'll fix that. Certainly something I'll keep in mind as I know nginx is very popular.
@nicolasotero6424
@nicolasotero6424 9 месяцев назад
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 9 месяцев назад
Thanks 👍 yes, I might put a short out on how to do it.
@Coolblockj
@Coolblockj 8 месяцев назад
@@Jims-Garage This would be great to know how you are doing it!
@sebasdt2103
@sebasdt2103 10 месяцев назад
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 10 месяцев назад
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 Месяц назад
@@Jims-Garage Is there a video on this curious myself?
@Jims-Garage
@Jims-Garage Месяц назад
@@MacJFitness no, but use an external service within Traefik. I do this for Proxmox UI
@TheStevenWhiting
@TheStevenWhiting Год назад
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.
@andresrevilla7932
@andresrevilla7932 6 месяцев назад
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 6 месяцев назад
Thanks, glad you figured it out.
@crc-error-7968
@crc-error-7968 9 месяцев назад
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 9 месяцев назад
Just add to Traefik once, everything is then passed through it.
@crc-error-7968
@crc-error-7968 9 месяцев назад
@@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 9 месяцев назад
@@crc-error-7968 appreciate the feedback, have a good one 👍
@Glatze603
@Glatze603 9 месяцев назад
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 9 месяцев назад
Have you added the middlewares to both entrypoints?
@Glatze603
@Glatze603 9 месяцев назад
@@Jims-Garage Could you give me an example of what and how you mean?
@Jims-Garage
@Jims-Garage 9 месяцев назад
@@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
@MacJFitness
@MacJFitness Месяц назад
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 Месяц назад
X-forwarded header should show the original IP
@MacJFitness
@MacJFitness Месяц назад
@@Jims-Garage How would I set that up?
@silverstone7778
@silverstone7778 6 месяцев назад
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 6 месяцев назад
I've witnessed that before, restart the containers.
@silverstone7778
@silverstone7778 6 месяцев назад
@@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 6 месяцев назад
@@silverstone7778 did you register the bouncer?
@silverstone7778
@silverstone7778 6 месяцев назад
@@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 😔
@Jr-hv1ct
@Jr-hv1ct 11 месяцев назад
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 11 месяцев назад
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 11 месяцев назад
@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 11 месяцев назад
@@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 15 дней назад
@@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
@khanhthedag7269
@khanhthedag7269 6 месяцев назад
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 6 месяцев назад
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 6 месяцев назад
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.
@myhometvaccount9365
@myhometvaccount9365 10 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
@@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).
@kafadek825
@kafadek825 2 месяца назад
Thanks for this. Does anyone know how to whitelist IP addresses for crowdsec in docker?
@Jims-Garage
@Jims-Garage 2 месяца назад
What do you mean? Crowdsec applies to all traffic hitting Traefik (AFAIK).
@kafadek825
@kafadek825 2 месяца назад
@@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.
Далее
DIY NAS on a BUDGET! with TrueNAS Scale
30:14
Просмотров 16 тыс.
ВОТ ЧТО МЫ КУПИЛИ НА ALIEXPRESS
09:35
Secure Your OPNsense Network with Zenarmor NGFW!
36:25
CrowdSec Absolute Beginners Workshop
46:57
Просмотров 10 тыс.
Secure authentication for EVERYTHING! // Authentik
39:50
how did I NOT know about this?
23:06
Просмотров 903 тыс.
Boost Your pfSense Security With CrowdSec's New Plugin
17:55
Stop Windows Spying with one click Firewall
6:38
Просмотров 212 тыс.
You NEED a firewall
23:04
Просмотров 11 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 17 млн
Новодельный ноутбук Pocket386
1:16:17