Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Crowdsec finally comming to pfSense

    Scheduled Pinned Locked Moved pfSense Packages
    68 Posts 19 Posters 16.8k Views
    Loading More Posts
    • 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.
    • buggzB
      buggz @mmetc
      last edited by

      @mmetc

      Thank you for this very informative reply!

      I will whitelist the local IP.

      1 Reply Last reply Reply Quote 1
      • buggzB
        buggz
        last edited by buggz

        Perfect, seems to work, will know in a few more days.

        cat /usr/local/etc/crowdsec/hub/parsers/s02-enrich/crowdsecurity/whitelists.yaml
        name: crowdsecurity/whitelists
        description: "Whitelist events from private ipv4 addresses"
        whitelist:
          reason: "private ipv4/ipv6 ip/ranges"
          ip:
            - "127.0.0.1"
            - "::1"
          cidr:
            - "192.168.0.0/16"
            - "10.0.0.0/8"
            - "172.16.0.0/12"
          # expression:
          #   - "'foo.com' in evt.Meta.source_ip.reverse"
        
        
        1 Reply Last reply Reply Quote 1
        • A
          Antibiotic
          last edited by Antibiotic

          Hi, like me understood , the profit of use Crowdsec if pfSense have opened ports on WAN? no any opened , no any profit. If using pfBlockerNG will Crowdsec only duplicate functionality?
          Crowdsec is working with a Snort? Have a read working with Suricata, what about Snort?

          pfSense plus 24.11 on Topton mini PC
          CPU: Intel N100
          NIC: Intel i-226v 4 pcs
          RAM : 16 GB DDR5
          Disk: 128 GB NVMe
          Brgds, Archi

          buggzB 1 Reply Last reply Reply Quote 1
          • buggzB
            buggz @Antibiotic
            last edited by

            I don't know if CrowdSec duplicates pfBlockerNG.

            I use both pfBlockerNG development and Snort.
            Seems to be working good for me so far...

            @Antibiotic said in Crowdsec finally comming to pfSense:

            If using pfBlockerNG will Crowdsec only duplicate functionality?
            Crowdsec is working with a Snort? Have a read working with Suricata, what about Snort?

            A 1 Reply Last reply Reply Quote 1
            • A
              Antibiotic @buggz
              last edited by

              @buggz Are you keep opened any ports on WAN?

              pfSense plus 24.11 on Topton mini PC
              CPU: Intel N100
              NIC: Intel i-226v 4 pcs
              RAM : 16 GB DDR5
              Disk: 128 GB NVMe
              Brgds, Archi

              1 Reply Last reply Reply Quote 1
              • A
                Antibiotic @mmetc
                last edited by

                @mmetc Any news, regarding the official including of package in pfSense repo?

                pfSense plus 24.11 on Topton mini PC
                CPU: Intel N100
                NIC: Intel i-226v 4 pcs
                RAM : 16 GB DDR5
                Disk: 128 GB NVMe
                Brgds, Archi

                S 1 Reply Last reply Reply Quote 1
                • S
                  SteveITS Galactic Empire @Antibiotic
                  last edited by

                  @Antibiotic If you have no open ports on WAN then you are only able to block outbound connections.

                  Surely some pfBlocker lists will include malicious IPs, depending on the list(s) chosen. It is a question of when the lists update.

                  re: including it, I skimmed the install and a few things stood out, for instance that the config isn't able to be restored from pfSense backup, it is only configurable via command line not web GUI, and is not compatible with RAM disk for /var. I would think some or all of those are big enough issues for Netgate to not include it yet, but obviously I do not speak for either.

                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                  Upvote πŸ‘ helpful posts!

                  A 1 Reply Last reply Reply Quote 1
                  • A
                    Antibiotic @SteveITS
                    last edited by

                    @SteveITS Ok, thanks. But any profit to use /var in RAM, if pfSense instal on nvrme?

                    pfSense plus 24.11 on Topton mini PC
                    CPU: Intel N100
                    NIC: Intel i-226v 4 pcs
                    RAM : 16 GB DDR5
                    Disk: 128 GB NVMe
                    Brgds, Archi

                    S 1 Reply Last reply Reply Quote 1
                    • S
                      SteveITS Galactic Empire @Antibiotic
                      last edited by

                      @Antibiotic said in Crowdsec finally comming to pfSense:

                      But any profit to use /var in RAM, if pfSense instal on nvrme?

                      Not that much, no. It can save disk writes if you do a lot of logging. Our clients often have eMMC drives and we disable a lot of logging.

                      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                      Upvote πŸ‘ helpful posts!

                      A 1 Reply Last reply Reply Quote 1
                      • A
                        Antibiotic @SteveITS
                        last edited by Antibiotic

                        @SteveITS Can you please share, what kind of logs you disabled? and where, could be also will switch OFF!

                        pfSense plus 24.11 on Topton mini PC
                        CPU: Intel N100
                        NIC: Intel i-226v 4 pcs
                        RAM : 16 GB DDR5
                        Disk: 128 GB NVMe
                        Brgds, Archi

                        S 1 Reply Last reply Reply Quote 1
                        • S
                          SteveITS Galactic Empire @Antibiotic
                          last edited by

                          @Antibiotic

                          • uncheck "Log packets matched from the default block rules in the ruleset"
                          • uncheck "Log packets blocked by 'Block Bogon Networks' rules"
                          • uncheck "Log packets blocked by 'Block Private Networks' rules"
                          • set "Log Compression" = None on all devices with ZFS (off by default but on if you restore an old config to new unit), or devices with eMMC
                          • Suricata uncheck "Enable HTTP Log"

                          re: default block rules, we turn those on temporarily if we're debugging something.

                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                          Upvote πŸ‘ helpful posts!

                          A 1 Reply Last reply Reply Quote 2
                          • A
                            Antibiotic @SteveITS
                            last edited by

                            @SteveITS Thank you , one question if use Crowdsec which one reading different logs, this unchecks will not OFF some important data logs for Crowdsec readings?

                            pfSense plus 24.11 on Topton mini PC
                            CPU: Intel N100
                            NIC: Intel i-226v 4 pcs
                            RAM : 16 GB DDR5
                            Disk: 128 GB NVMe
                            Brgds, Archi

                            S 1 Reply Last reply Reply Quote 1
                            • S
                              SteveITS Galactic Empire @Antibiotic
                              last edited by

                              @Antibiotic I have not used the Crowdsec plugin.

                              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                              Upvote πŸ‘ helpful posts!

                              Dobby_D 1 Reply Last reply Reply Quote 1
                              • Dobby_D
                                Dobby_ @SteveITS
                                last edited by

                                @SteveITS said in Crowdsec finally comming to pfSense:

                                @Antibiotic I have not used the Crowdsec plugin.

                                Hey Steve do you know where to find "Crowdsec" for installing it on pfSense?
                                I havw done a pkg info and pkg search for Crowdsec and also in the package
                                manager I canΒ΄t see an option to install it as a pkg.

                                #~. @Dobby

                                Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                                PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                                PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

                                S 1 Reply Last reply Reply Quote 1
                                • S
                                  SteveITS Galactic Empire @Dobby_
                                  last edited by

                                  @Dobby_ said in Crowdsec finally comming to pfSense:

                                  do you know where to find "Crowdsec" for installing it on pfSense

                                  It's a manual install and I want to say is therefore CE only? (not sure on that) A link was above:

                                  @mmetc said in Crowdsec finally comming to pfSense:

                                  The package can be installed by hand in the meanwhile

                                  https://docs.crowdsec.net/docs/next/getting_started/install_crowdsec_pfsense

                                  Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                  When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                  Upvote πŸ‘ helpful posts!

                                  Dobby_D 1 Reply Last reply Reply Quote 2
                                  • Dobby_D
                                    Dobby_ @SteveITS
                                    last edited by

                                    @SteveITS

                                    Thank you I got installed now.

                                    #~. @Dobby

                                    Turris Omnia - 4 Ports - 2 GB RAM / TurrisOS 7 Release (Btrfs)
                                    PC Engines APU4D4 - 4 Ports - 4 GB RAM / pfSense CE 2.7.2 Release (ZFS)
                                    PC Engines APU6B4 - 4 Ports - 4 GB RAM / pfSense+ (Plus) 24.03_1 Release (ZFS)

                                    1 Reply Last reply Reply Quote 1
                                    • A
                                      Antibiotic
                                      last edited by Antibiotic

                                      Could some1 to explain, is it possible to read Windows PC log with Crowdsec installed on pfSense or need to install Crowdsec also for Windows PC?

                                      pfSense plus 24.11 on Topton mini PC
                                      CPU: Intel N100
                                      NIC: Intel i-226v 4 pcs
                                      RAM : 16 GB DDR5
                                      Disk: 128 GB NVMe
                                      Brgds, Archi

                                      1 Reply Last reply Reply Quote 1
                                      • provelsP
                                        provels
                                        last edited by provels

                                        Is CrowdSec meant to replace pfB? Snort, Suricata? Augment them? Thanks.

                                        Peder

                                        MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                                        BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                                        A 1 Reply Last reply Reply Quote 1
                                        • A
                                          Antibiotic @provels
                                          last edited by Antibiotic

                                          @provels You can read here:

                                          "https://www.crowdsec.net/blog/suricata-vs-crowdsec"

                                          I think Crowdsec blacklist working the same as pfBlockerNG, THE POINT of this, that pfBlockerNG limited to one hour update maximum , Crowdsec update more frequently I think!

                                          pfSense plus 24.11 on Topton mini PC
                                          CPU: Intel N100
                                          NIC: Intel i-226v 4 pcs
                                          RAM : 16 GB DDR5
                                          Disk: 128 GB NVMe
                                          Brgds, Archi

                                          1 Reply Last reply Reply Quote 2
                                          • provelsP
                                            provels
                                            last edited by

                                            Looks like the pfSense install is not supported in FreeBSD 15 (24.03-RELEASE upgrade). Sad face.

                                            Peder

                                            MAIN - pfSense+ 24.11-RELEASE - Adlink MXE-5401, i7, 16 GB RAM, 64 GB SSD. 500 GB HDD for SyslogNG
                                            BACKUP - pfSense+ 23.01-RELEASE - Hyper-V Virtual Machine, Gen 1, 2 v-CPUs, 3 GB RAM, 8GB VHDX (Dynamic)

                                            M 1 Reply Last reply Reply Quote 3
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.