jca 6988741517 Import sshlockout, a simple ssh brute-force blocker from DragonFlyBSD
Mentioned by Solene Rapenne, ok bcallah@

pkg/DESCR:
sshlockout(8) will monitor the ssh syslog output and keep track of
attempts to login to unknown users as well as preauth failures. If
5 attempts fail in any one hour period, a permanent entry is added to
the pf(4) table for the associated IP address.
2017-07-27 00:08:17 +00:00

31 lines
625 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2017/07/27 00:08:17 jca Exp $
COMMENT = protect against brute force attacks on sshd(8)
DISTNAME = sshlockout-0.20170726
CATEGORIES = security
HOMEPAGE = https://www.dragonflybsd.org/
# BSD
PERMIT_PACKAGE_CDROM = Yes
# uses pledge()
WANTLIB += c
# snapshot of
# https://github.com/DragonFlyBSD/DragonFlyBSD/tree/master/usr.sbin/sshlockout
MASTER_SITES = http://wxcvbn.org/~jca/distfiles/
FAKE_FLAGS = BINDIR=${PREFIX}/sbin \
MANDIR=${PREFIX}/man/man
CFLAGS += -std=c99
NO_TEST = Yes
do-configure:
sed -i 's,/usr/sbin,${PREFIX}/sbin,g' ${WRKSRC}/sshlockout.8
.include <bsd.port.mk>