BSD Ports

security/crowdsec-firewall-bouncer 0.0.38_2 FreeBSD

CrowdSec bouncer written in golang for firewalls

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
MIT
Categories
security
Package size
4341.7 KiB, 14559.0 KiB installed

Description

Crowdsec bouncer written in golang for firewalls.

cs-firewall-bouncer will fetch new and old decisions from a CrowdSec API to add them in a blocklist used by supported firewalls.

In the other systems

SystemPortVersion
FreeBSDsecurity/crowdsec-firewall-bouncer0.0.38_2
OpenBSDsecurity/crowdsec-firewall-bouncer0.0.34
DragonFlysecurity/crowdsec-firewall-bouncer0.0.31_1
MidnightBSDsecurity/crowdsec-firewall-bouncer0.0.28_10
HardenedBSDsecurity/crowdsec-firewall-bouncer0.0.38
GhostBSDsecurity/crowdsec-firewall-bouncer0.0.36
OPNsensesecurity/crowdsec-firewall-bouncer0.0.34_3

Install

Binary package:

pkg install crowdsec-firewall-bouncer

From the ports tree:

cd /usr/ports/security/crowdsec-firewall-bouncer/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	crowdsec-firewall-bouncer>0:security/crowdsec-firewall-bouncer

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0.38_10.0.38_1-0.0.32_40.0.38_1
FreeBSD:14:quarterly0.0.38_10.0.38_1n/a0.0.32_20.0.38_1
FreeBSD:15:latest0.0.38_10.0.38_2n/a-0.0.32_4
FreeBSD:15:quarterly0.0.38_10.0.38_2n/an/an/a
FreeBSD:16:latest0.0.380.0.38_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
go:modules
Service scripts
crowdsec_firewall

Message after installing

crowdsec-firewall-bouncer is installed.

Note: If you are using OPNsense or pfSense, ignore the following instructions and use the settings page of the
CrowdSec plugin.

-----

If you are running crowdsec on this machine, the bouncer will register itself with
the Local API when it's started the first time.

If the LAPI is on a different machine, you need to manually register the bouncer
and fill api_key and api_url in /usr/local/etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml before
starting the service.

This package depends on the Packet Filter service.
To make sure it's active:

----------
# service pf enable
pf enabled in /etc/rc.conf
# service pf start
Enabling pf.
----------

Add the following in /etc/pf.conf to create the firewall tables and rules. If the start
command complained about missing pf.conf, you'll have to run it again.

----------
table <crowdsec-blacklists> persist
table <crowdsec6-blacklists> persist
block drop in quick from <crowdsec-blacklists> to any
block drop in quick from <crowdsec6-blacklists> to any
----------

If you already have any pass rule, you may want to put the block rules before them.

To apply the file:

# pfctl -f /etc/pf.conf

Then activate the bouncer service and run it:

----------
# service crowdsec_firewall enable
crowdsec_firewall enabled in /etc/rc.conf
# service crowdsec_firewall start
----------

Files

pkg-plist 4
  • @mode 0755
  • bin/crowdsec-firewall-bouncer
  • @mode 0600
  • @sample etc/crowdsec-firewall-bouncer/crowdsec-firewall-bouncer.yaml.sample
distinfo 2
FileSizeSHA256
go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.38/v0.0.38.mod2827953b0cd7471fd8416f65baed6d5f58480647b46483330dc1cb07d1933e8d2500
go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.38/v0.0.38.zip20831923165aab23eb46c9a1faf7765710c81c9758dbc1931c0681ca9400dd3afc7325

Commit history 9

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
d127d78f58 Manuel Sabban security/crowdsec-firewall-bouncer: Update 0.0.36 => 0.0.38
This release contains an iptables change and the fix for PF(4). So we can drop backported patch for fixing PF(4) regression. Changelog: https://github.com/crowdsecurity/cs-firewall-bouncer/releases/tag/v0.0.38 Commit log: https://github.com/crowdsecurity/cs-firewall-bouncer/compare/4c31519..20bd97a PR: 298987 Approved by: osa, vvd (Mentors, implicit)
f7b35bafa8 Vick Khera security/crowdsec-firewall-bouncer: Fix PF(4) regression
It seems that a regression has been addded in 0.0.36 specifically in PF(4) backend. So backport the commit addressing it from upstream. PR: 298580 Approved by: blanket (fix runtime) Approved by: osa, vvd (Mentors, implicit) Tested by: Vick Khera <[email protected]>
646715298a Jordan Ostreff security/crowdsec-firewall-bouncer: Update 0.0.34 => 0.0.36
Changelog: https://github.com/crowdsecurity/cs-firewall-bouncer/releases/tag/v0.0.36 PR: 298102 Approved by: Manuel Sabban <[email protected]> (maintainer timeout, 2 weeks) Approved by: osa, vvd (Mentors, implicit)

The latest 5 of 9 in the history this site was built from.