Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
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

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Implement Crowdsec, a docker and sever level crowd sourced security guard

Implement Crowdsec, a docker and sever level crowd sourced security guard

Scheduled Pinned Locked Moved Feature Requests
28 Posts 9 Posters 5.9k Views 11 Watching
  • 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.
  • M Mastadamus

    @teamcrw I realized crowdsec isn't succesfully parsing the NGINX logs generated by cloudron because Cloudron uses a non standard /non default log format for NGINX. Working on that now.

    M Offline
    M Offline
    Mastadamus
    wrote on last edited by
    #18

    @mastadamus I've since got the logs to be parsed by taking out the custom "combined2" log format for nginx.conf. If this is to be shipped with cloudron it would either require to have custom parsers written OR the nginx.conf for cloudron would need to use default combined log format. ddba26c0-91de-425e-a9f3-12852c5122df-image.png

    I am using an iptable bouncer and i'm not sure if it will perform block actions on the iptables based of something triggerd by nginx. I will dig further into that. That being said, it is fullfulling the role fail2ban would normally play and is working appropriately.

    P 1 Reply Last reply
    2
    • M Mastadamus

      @mastadamus I've since got the logs to be parsed by taking out the custom "combined2" log format for nginx.conf. If this is to be shipped with cloudron it would either require to have custom parsers written OR the nginx.conf for cloudron would need to use default combined log format. ddba26c0-91de-425e-a9f3-12852c5122df-image.png

      I am using an iptable bouncer and i'm not sure if it will perform block actions on the iptables based of something triggerd by nginx. I will dig further into that. That being said, it is fullfulling the role fail2ban would normally play and is working appropriately.

      P Offline
      P Offline
      privsec
      wrote on last edited by
      #19

      @mastadamus said in Implement Crowdsec, a docker and sever level crowd sourced security guard:

      @mastadamus I've since got the logs to be parsed by taking out the custom "combined2" log format for nginx.conf. If this is to be shipped with cloudron it would either require to have custom parsers written OR the nginx.conf for cloudron would need to use default combined log format. ddba26c0-91de-425e-a9f3-12852c5122df-image.png

      I am using an iptable bouncer and i'm not sure if it will perform block actions on the iptables based of something triggerd by nginx. I will dig further into that. That being said, it is fullfulling the role fail2ban would normally play and is working appropriately.

      @klausagnoletti is this something that could be done by your team?

      M K 2 Replies Last reply
      0
      • P privsec

        @mastadamus said in Implement Crowdsec, a docker and sever level crowd sourced security guard:

        @mastadamus I've since got the logs to be parsed by taking out the custom "combined2" log format for nginx.conf. If this is to be shipped with cloudron it would either require to have custom parsers written OR the nginx.conf for cloudron would need to use default combined log format. ddba26c0-91de-425e-a9f3-12852c5122df-image.png

        I am using an iptable bouncer and i'm not sure if it will perform block actions on the iptables based of something triggerd by nginx. I will dig further into that. That being said, it is fullfulling the role fail2ban would normally play and is working appropriately.

        @klausagnoletti is this something that could be done by your team?

        M Offline
        M Offline
        Mastadamus
        wrote on last edited by
        #20

        @privsec The other thing to consider is, when i installed the nginx bouncer, even though i left configs default, it crashed the nginx service and i couldn't restart it. Even after I uninstalled the bouncer, I couldn't get nginx back so i had reverted to a snapshot. The iptable bouncer works decent though. Will have to do further testing to figure out why installing the nginx bouncer crashes nginx for cloudron.

        M 1 Reply Last reply
        4
        • P privsec

          @mastadamus said in Implement Crowdsec, a docker and sever level crowd sourced security guard:

          @mastadamus I've since got the logs to be parsed by taking out the custom "combined2" log format for nginx.conf. If this is to be shipped with cloudron it would either require to have custom parsers written OR the nginx.conf for cloudron would need to use default combined log format. ddba26c0-91de-425e-a9f3-12852c5122df-image.png

          I am using an iptable bouncer and i'm not sure if it will perform block actions on the iptables based of something triggerd by nginx. I will dig further into that. That being said, it is fullfulling the role fail2ban would normally play and is working appropriately.

          @klausagnoletti is this something that could be done by your team?

          K Offline
          K Offline
          klausagnoletti
          wrote on last edited by
          #21

          @klausagnoletti is this something that could be done by your team?

          Sorry but which part? Parsers?

          P 1 Reply Last reply
          0
          • K klausagnoletti

            @klausagnoletti is this something that could be done by your team?

            Sorry but which part? Parsers?

            P Offline
            P Offline
            privsec
            wrote on last edited by
            #22

            @klausagnoletti yup

            K 1 Reply Last reply
            0
            • P privsec

              @klausagnoletti yup

              K Offline
              K Offline
              klausagnoletti
              wrote on last edited by
              #23

              @privsec Yes of course. If you post a question about it in our Discourse https://discourse.crowdsec.net I am sure someone on the team is able to help.

              1 Reply Last reply
              2
              • M Mastadamus

                @privsec The other thing to consider is, when i installed the nginx bouncer, even though i left configs default, it crashed the nginx service and i couldn't restart it. Even after I uninstalled the bouncer, I couldn't get nginx back so i had reverted to a snapshot. The iptable bouncer works decent though. Will have to do further testing to figure out why installing the nginx bouncer crashes nginx for cloudron.

                M Offline
                M Offline
                makemrproper
                wrote on last edited by makemrproper
                #24

                @mastadamus Confirmed. This happened to me today, when I tried to install Crowdsec with Nginx bouncer onto my Cloudron VM.

                Thank heavens for a good backup strategy. Digital Ocean snapshots to the rescue.

                To have Crowdsec working with my Cloudron install would be a massive value add.

                I am not even sure why Nginx failed to start afterwards. I did however note that the install modified or wiped a lot of the Nginx configs which were already in place and perhaps modified by Cloudron. But I haven't tried to dive any deeper.

                Cloudron fan
                Paying Customer

                M 2 Replies Last reply
                1
                • M makemrproper

                  @mastadamus Confirmed. This happened to me today, when I tried to install Crowdsec with Nginx bouncer onto my Cloudron VM.

                  Thank heavens for a good backup strategy. Digital Ocean snapshots to the rescue.

                  To have Crowdsec working with my Cloudron install would be a massive value add.

                  I am not even sure why Nginx failed to start afterwards. I did however note that the install modified or wiped a lot of the Nginx configs which were already in place and perhaps modified by Cloudron. But I haven't tried to dive any deeper.

                  M Offline
                  M Offline
                  Mastadamus
                  wrote on last edited by
                  #25

                  @makemrproper yeah I tried it twice and first time told it to keep original config and second time allowed modifications.. both times nginx refused to start and I couldn't figure out why.

                  1 Reply Last reply
                  0
                  • M makemrproper

                    @mastadamus Confirmed. This happened to me today, when I tried to install Crowdsec with Nginx bouncer onto my Cloudron VM.

                    Thank heavens for a good backup strategy. Digital Ocean snapshots to the rescue.

                    To have Crowdsec working with my Cloudron install would be a massive value add.

                    I am not even sure why Nginx failed to start afterwards. I did however note that the install modified or wiped a lot of the Nginx configs which were already in place and perhaps modified by Cloudron. But I haven't tried to dive any deeper.

                    M Offline
                    M Offline
                    Mastadamus
                    wrote on last edited by
                    #26

                    @makemrproper my strategy now is to use iptables bouncer with nginx parser.

                    See my feature request for nginx log method though.. you have to revert cloudron nginx logs back to nginx default and not combined2 as they are normally or crowdsec parser won't work..

                    1 Reply Last reply
                    1
                    • K Offline
                      K Offline
                      klausagnoletti
                      wrote on last edited by
                      #27

                      Hey, since I was here last time we have created a Discord server and that would be a good place to influence CrowdSec devs to implement CrowdSec into Cloudron 🙂

                      rmdesR 1 Reply Last reply
                      5
                      • K klausagnoletti

                        Hey, since I was here last time we have created a Discord server and that would be a good place to influence CrowdSec devs to implement CrowdSec into Cloudron 🙂

                        rmdesR Offline
                        rmdesR Offline
                        rmdes
                        wrote on last edited by
                        #28

                        In my experience, DO not install the nginx bouncer, it's useless if you install the firewall-bouncer anyway. (the firewall bouncer catch attacks, probs etc..even before they reach the nginx server)

                        There is another post on this forum another user and me share their steps by steps to get it running.

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


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search