diff --git a/security/crowdsec-firewall-bouncer/Makefile b/security/crowdsec-firewall-bouncer/Makefile index ed943eefc833..faefff2b1783 100644 --- a/security/crowdsec-firewall-bouncer/Makefile +++ b/security/crowdsec-firewall-bouncer/Makefile @@ -1,52 +1,50 @@ PORTNAME= crowdsec-firewall-bouncer DISTVERSIONPREFIX= v -DISTVERSION= 0.0.28 -PORTREVISION= 10 +DISTVERSION= 0.0.29 CATEGORIES= security MAINTAINER= marco@crowdsec.net COMMENT= CrowdSec bouncer written in golang for firewalls WWW= https://github.com/crowdsecurity/cs-firewall-bouncer LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules -_COMMIT= af6e7e2 +_COMMIT= 9594360c _BUILD_DATE= $$(date -u "+%F_%T") USE_RC_SUBR= crowdsec_firewall GO_MODULE= github.com/crowdsecurity/cs-firewall-bouncer GO_TARGET= ${PORTNAME}:./${PORTNAME} GO_BUILDFLAGS= -trimpath -tags netgo \ -ldflags="\ - -a -s -w -extldflags '-static' \ + -a -s -w \ -X github.com/crowdsecurity/go-cs-lib/version.Version=${DISTVERSIONPREFIX}${DISTVERSION}-freebsd \ -X github.com/crowdsecurity/go-cs-lib/version.BuildDate=${_BUILD_DATE} \ -X github.com/crowdsecurity/go-cs-lib/version.Tag=${_COMMIT}" +# to allow WITH_PIE with a non PIC libc +CGO_ENABLED= 1 -CGO_ENABLED= 0 - +ETCDIR= ${PREFIX}/etc/crowdsec/bouncers SUB_FILES= pkg-deinstall \ pkg-install \ pkg-message -ETCDIR= ${PREFIX}/etc/crowdsec/bouncers - do-install: # # Binaries # ${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin/${PORTNAME} # # Configuration # @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/config/${PORTNAME}.yaml \ ${STAGEDIR}${ETCDIR}/${PORTNAME}.yaml.sample .include diff --git a/security/crowdsec-firewall-bouncer/distinfo b/security/crowdsec-firewall-bouncer/distinfo index 4a349fd2bda7..d1aa0b954474 100644 --- a/security/crowdsec-firewall-bouncer/distinfo +++ b/security/crowdsec-firewall-bouncer/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1696243362 -SHA256 (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.28/v0.0.28.mod) = 8da878a2e78081ce7fd2b81f210eb146f87fa77f4c0b5b3857d1e6a4551dd048 -SIZE (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.28/v0.0.28.mod) = 2632 -SHA256 (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.28/v0.0.28.zip) = 6aeaa00beee415f68b2f7a4d98e6b3c83c239f3fe8b1e8be93f34b13e77c940e -SIZE (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.28/v0.0.28.zip) = 181050 +TIMESTAMP = 1726507675 +SHA256 (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.29/v0.0.29.mod) = e446d195419353c53d1ccdec4c40e30adad1b91f23edd360ceb377409069efd3 +SIZE (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.29/v0.0.29.mod) = 2610 +SHA256 (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.29/v0.0.29.zip) = 194dbef79c3db1028b616c30b1869e438be6b4071484db7fcb6542cf09d8c091 +SIZE (go/security_crowdsec-firewall-bouncer/crowdsec-firewall-bouncer-v0.0.29/v0.0.29.zip) = 188387 diff --git a/security/crowdsec-firewall-bouncer/files/pkg-message.in b/security/crowdsec-firewall-bouncer/files/pkg-message.in index 336b3e4fd4dd..edfea50b1176 100644 --- a/security/crowdsec-firewall-bouncer/files/pkg-message.in +++ b/security/crowdsec-firewall-bouncer/files/pkg-message.in @@ -1,52 +1,55 @@ [ { type: install message: < YES +# 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: +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 persist table persist block drop in quick from to any block drop in quick from 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 via sysrc and run it: +Then activate the bouncer service and run it: ---------- -# sysrc crowdsec_firewall_enable="YES" -crowdsec_firewall_enable: NO -> YES +# service crowdsec_firewall enable +crowdsec_firewall enabled in /etc/rc.conf # service crowdsec_firewall start ---------- EOM } ]