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 12.0k 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.
    • M
      mmetc @provels
      last edited by

      @provels you can download the archive I linked, there is the same content as the *pkg files but for freebsd 15. A new release with crowdsec 1.6.1 should be uploaded soon, I'll make sure to build the *pkg files with version 15

      A bthovenB 2 Replies Last reply Reply Quote 3
      • A
        Antibiotic @provels
        last edited by

        @provels New release there for Freebsd15 and updated to 1.6.1

        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
        • A
          Antibiotic @mmetc
          last edited by

          @mmetc Hello after install 1.6.1 on 24.03 have this error
          level=error msg="while fetching bouncer info: ent: bouncer not found" ip=127.0.0.1

          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 0
          • Dobby_D
            Dobby_
            last edited by Dobby_

            For pfSense+ 24.03_1 (amd64) I was following this steps;

            Getting started - Install CrowdSec on pfSense

            Please scroll down until you read the following (in a blue image)
            You will see it here below in the code block
            It is the install sequence (from top till down)

            # setenv IGNORE_OSVERSION yes
            # pkg add -f <link to abseil>
            # pkg add -f <link to re2>
            # pkg add -f <link to crowdsec-firewall-bouncer>
            # pkg add -f <link to crowdsec>
            # pkg add -f <link to pfSense-pkg-crowdsec>
            

            And under this page you find the latest pkg´s or files for your installation.
            pfSense-pkg-Crowdsec, click on assets (11) and the drop down menue is opening then right click on the shown links and past them in the following sequence inside of your pfSense console CLI.

            • Connect to your console
            • type in (8) for shell
            • and now all commands together (one after one) with the right link to the packages

            As an example for pfSense+ 24.03_1 (FreeBSD 15) amd64 hardware shown below:

            # setenv IGNORE_OSVERSION yes
            # pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/abseil-20230125.3.pkg
            # pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/re2-20240401.pkg
            # pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/crowdsec-firewall-bouncer-0.0.28_3.pkg
            # pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/crowdsec-1.6.1.pkg
            # pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/pfSense-pkg-crowdsec-0.1.3.pkg
            

            After installing it you may have a look under system > services > CrowdSec
            to ensure that all is right enabled. If not enable (activate) them by clicking
            on it, please click then at last on save

            CrowdSec1.jpg

            Now you should read the rest of the page
            Getting started - CrowdSec on pfSense
            to configure your installation, matching well to your network setup.

            And at least activate both services to make them running.

            CrowdSec2.jpg

            #~. @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 2
            • bthovenB
              bthoven @mmetc
              last edited by

              @mmetc said in Crowdsec finally comming to pfSense:

              @provels you can download the archive I linked, there is the same content as the *pkg files but for freebsd 15. A new release with crowdsec 1.6.1 should be uploaded soon, I'll make sure to build the *pkg files with version 15

              I'm currently on version 1.6.0. To upgrade, should I execute only the following commands? Other than the re2 and pfsense packages, it appears that the remaining packages are the same version.

              setenv IGNORE_OSVERSION yes
              pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/re2-20240401.pkg
              pkg add -f https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3-1.6.1/crowdsec-1.6.1.pkg
              

              Is there any breaking changes I should be aware of? I'm running pfSense CE 2.7.2....thanks.

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

                @mmetc FWIW, the crowdsec-1.6.0_1.pkg in the tar linked above worked fine for me.

                https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/download/v0.1.3/freebsd-15-amd64.tar
                

                However, the 1.6.1 package linked below pretty much blew up my system

                https://github.com/crowdsecurity/pfSense-pkg-crowdsec/releases/tag/v0.1.3-1.6.1
                

                Caused a lockup on installation and save, Apparently ZFS saved my butt, directories below the root folder vanished, system eventually rolled itself back to mid-December. Perhaps a coincidence, but for me it was a mess.

                EDIT - Ok, since I love hitting myself in the head with a hammer, I tried again... System crashed out shortly after, threw me back to 23.09 deleted my saved logs after 12/7 and threw a bunch of error's. Someone else can test, I've had it.

                876fad90-f253-4ae2-9f32-7a68b732680b-image.png
                e344fdf1-1663-41a5-aae6-c57ad1324013-image.png
                1b3148e6-f5f3-41ac-b49f-96eb4d8b40e4-image.png

                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)

                1 Reply Last reply Reply Quote 2
                • bthovenB
                  bthoven @bthoven
                  last edited by

                  @bthoven

                  I attempted to upgrade only those two packages initially. After the upgrade, Crowdsec ceased to function, and even pressing 'save' on the settings page without making any changes, to force a restart, did not help.

                  Subsequently, I performed the complete 5-package upgrade following the sequence outlined in the documentation, but it still failed to start.

                  Ultimately, rebooting my pfSense resolved the issue, and it began working.

                  In previous upgrades of earlier versions, I recall never having to reboot my pfSense. It's strange.

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

                    Continuing my self-abuse, I have found that the 1.6.0 version works fine on 24.03-RELEASE AFAICT even though it's compiled for Freebsd 14. Both the 1.6.0_1 and 1.6.1 will crash out and fubar the system. Think I'll wait for the Netgate Seal of Approval.

                    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 0
                    • A
                      Antibiotic @provels
                      last edited by

                      @provels Did you test last one 1.6.1_1 released 9 hours ago?

                      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

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

                        @Antibiotic No, I can wait. You first!

                        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 2 Replies Last reply Reply Quote 0
                        • A
                          Antibiotic @provels
                          last edited by

                          @provels Any ideas when will come to official? or even planning to come?As i know a huge problem was with a use of ram disk. I do not know, they are resolve this problem or not!

                          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

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

                            @provels said in Crowdsec finally comming to pfSense:

                            No, I can wait. You first!

                            O_O)))

                            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 0
                            • provelsP
                              provels @Antibiotic
                              last edited by

                              @Antibiotic No idea. I hadn't even heard of it before this thread.

                              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)

                              1 Reply Last reply Reply Quote 0
                              • O
                                ong1234
                                last edited by

                                Yes, would be great if it is 'officially' supported by Pfsense.

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

                                  Hello, any info about official support of this package?

                                  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 0
                                  • B
                                    btspce
                                    last edited by

                                    We are also waiting for the package to land in the main repo. Any ETA ?

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

                                      @btspce As I know a problem was with a RAM disk to use.
                                      No any idea, how is going now)))

                                      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 0
                                      • wgstarksW
                                        wgstarks
                                        last edited by

                                        Since Netgate recommends uninstalling 3rd party plugins prior to updating pfsense I’m wondering if that process is documented anywhere? I’ve seen the install docs but maybe I just missed the uninstall docs.

                                        Box: SG-4200

                                        provelsP 1 Reply Last reply Reply Quote 0
                                        • provelsP
                                          provels @wgstarks
                                          last edited by

                                          @wgstarks From https://doc.crowdsec.net/docs/getting_started/install_crowdsec_pfsense

                                          # pkg remove pfSense-pkg-crowdsec crowdsec crowdsec-firewall-bouncer
                                          # rm -rf /usr/local/etc/crowdsec /usr/local/etc/rc.conf.d/crowdsec*
                                          # rm -rf /var/db/crowdsec /var/log/crowdsec* /var/run/crowdsec*
                                          

                                          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)

                                          wgstarksW 1 Reply Last reply Reply Quote 2
                                          • wgstarksW
                                            wgstarks @provels
                                            last edited by

                                            @provels said in Crowdsec finally comming to pfSense:

                                            @wgstarks From https://doc.crowdsec.net/docs/getting_started/install_crowdsec_pfsense

                                            # pkg remove pfSense-pkg-crowdsec crowdsec crowdsec-firewall-bouncer
                                            # rm -rf /usr/local/etc/crowdsec /usr/local/etc/rc.conf.d/crowdsec*
                                            # rm -rf /var/db/crowdsec /var/log/crowdsec* /var/run/crowdsec*
                                            

                                            Thanks. I just found the doc you linked. Probably should have done the google search first.😁

                                            Box: SG-4200

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