Bug 268105 - [NEW PORT] security/crowdsec-blocklist-mirror: CrowdSec Blocklist Mirror
Summary: [NEW PORT] security/crowdsec-blocklist-mirror: CrowdSec Blocklist Mirror
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL: https://github.com/crowdsecurity/cs-b...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-01 21:57 UTC by marco
Modified: 2022-12-16 06:40 UTC (History)
2 users (show)

See Also:


Attachments
patch for blocklist mirror 0.0.1 (8.68 KB, patch)
2022-12-02 08:22 UTC, marco
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description marco 2022-12-01 21:57:31 UTC
This package connects to a crowdsec instance and publishes the IP blocklists via HTTP. Used for example in embedded systems and environments that cannot run a firewall bouncer.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2022-12-02 06:40:07 UTC
Hi Marco,

Can you provide a patch for creating such a port?
Comment 2 marco 2022-12-02 08:22:44 UTC
Created attachment 238485 [details]
patch for blocklist mirror 0.0.1
Comment 3 Fernando Apesteguía freebsd_committer freebsd_triage 2022-12-16 06:39:20 UTC
Committed,

Thanks!
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-12-16 06:39:57 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4fde38145bf37ddba832f011a887c85faacead95

commit 4fde38145bf37ddba832f011a887c85faacead95
Author:     Marco <marco@crowdsec.net>
AuthorDate: 2022-12-15 07:26:23 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-12-16 06:33:50 +0000

    security/crowdsec-blocklist-mirror: New port: CrowdSec Blocklist Mirror

    ChangeLog: https://github.com/crowdsecurity/cs-blocklist-mirror

    This bouncer exposes CrowdSec's active decisions via provided HTTP endpoints in
    pre-defined formats. It can be used by network appliances which support
    consumption of blocklists via HTTP.

    PR:             268105
    Reported by:    marco@crowdsec.net

 security/Makefile                                  |  1 +
 security/crowdsec-blocklist-mirror/Makefile (new)  | 48 ++++++++++++++
 security/crowdsec-blocklist-mirror/distinfo (new)  |  3 +
 .../files/crowdsec_mirror.in (new)                 | 73 ++++++++++++++++++++++
 .../files/pkg-deinstall.in (new)                   |  9 +++
 .../files/pkg-install.in (new)                     | 10 +++
 .../files/pkg-message.in (new)                     | 31 +++++++++
 security/crowdsec-blocklist-mirror/pkg-descr (new) |  3 +
 security/crowdsec-blocklist-mirror/pkg-plist (new) |  4 ++
 9 files changed, 182 insertions(+)
Comment 5 Fernando Apesteguía freebsd_committer freebsd_triage 2022-12-16 06:40:25 UTC
Since we are so close to branching 2023Q1 and this introduces a new port, I don't see the need to MFH at this point.