Add blocksshd 0.8, protects computers from SSH brute force attacks.
PR: ports/102367 Submitted by: Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
SUBDIR += bioapi
|
||||
SUBDIR += bioapitool
|
||||
SUBDIR += bjorb
|
||||
SUBDIR += blocksshd
|
||||
SUBDIR += borzoi
|
||||
SUBDIR += botan
|
||||
SUBDIR += bro
|
||||
|
||||
34
security/blocksshd/Makefile
Normal file
34
security/blocksshd/Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
# New ports collection makefile for: blocksshd
|
||||
# Date created: 2006-07-20
|
||||
# Whom: Gea-Suan Lin <gslin@gslin.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= blocksshd
|
||||
PORTVERSION= 0.8
|
||||
CATEGORIES= security sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= blocksshd
|
||||
|
||||
MAINTAINER= gslin@gslin.org
|
||||
COMMENT= Protects computers from SSH brute force attacks
|
||||
|
||||
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Net/DNS/Resolver.pm:${PORTSDIR}/dns/p5-Net-DNS \
|
||||
${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail \
|
||||
${SITE_PERL}/Proc/Daemon.pm:${PORTSDIR}/devel/p5-Proc-Daemon \
|
||||
${SITE_PERL}/Proc/PID/File.pm:${PORTSDIR}/devel/p5-Proc-PID-File
|
||||
|
||||
MAKE_ARGS= PREFIX="${TARGETDIR}"
|
||||
NO_BUILD= yes
|
||||
USE_PERL5_RUN= yes
|
||||
|
||||
MAN1= blocksshd.1
|
||||
|
||||
post-patch:
|
||||
@${CHMOD} 755 ${WRKSRC}/init
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/blocksshd.conf ${TARGETDIR}/etc
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
security/blocksshd/distinfo
Normal file
3
security/blocksshd/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
MD5 (blocksshd-0.8.tar.gz) = 0e92913e9f1014a7484a8c230b21637e
|
||||
SHA256 (blocksshd-0.8.tar.gz) = 17763703be029249081fbfe6f0422a84900a4c6dc0d8d3894311aeda9b31585f
|
||||
SIZE (blocksshd-0.8.tar.gz) = 9835
|
||||
23
security/blocksshd/files/patch-blocksshd.conf
Normal file
23
security/blocksshd/files/patch-blocksshd.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
--- blocksshd.conf.orig Wed Jul 19 18:57:06 2006
|
||||
+++ blocksshd.conf Tue Sep 26 16:57:13 2006
|
||||
@@ -1,9 +1,9 @@
|
||||
# vim: syntax=perl
|
||||
|
||||
$cfg = {
|
||||
- os => 'linux', # Target OS - either linux or bsd
|
||||
+ os => 'bsd', # Target OS - either linux or bsd
|
||||
chain => 'blocksshd', # Name of iptables or pf chain
|
||||
- logfile => '/var/log/secure', # Log file to monitor
|
||||
+ logfile => '/var/log/auth.log', # Log file to monitor
|
||||
logcheck => '10', # How often to check the log file
|
||||
max_attempts => '4', # Max number of failures
|
||||
timeout => '360', # Reset IP count if no activity after time out in seconds
|
||||
@@ -14,7 +14,7 @@
|
||||
pid_file => '/var/run/blocksshd.pid', # Location of PID file
|
||||
send_email => '1', # Enable the sending of email notifications
|
||||
email => 'root', # Email address to send notifications
|
||||
- mail => '/bin/mail', # Location of mail binary
|
||||
+ mail => '/usr/bin/mail', # Location of mail binary
|
||||
iptables => '/sbin/iptables', # Location of iptables binary - only for Linux
|
||||
pfctl => '/sbin/pfctl', # Location of pfctl binary - only for BSD
|
||||
whitelist => [qw{
|
||||
4
security/blocksshd/pkg-descr
Normal file
4
security/blocksshd/pkg-descr
Normal file
@@ -0,0 +1,4 @@
|
||||
BlockSSHD protects computers from SSH brute force attacks by
|
||||
dynamically blocking IP addresses by adding iptables rules.
|
||||
|
||||
WWW: http://sourceforge.net/projects/blocksshd/
|
||||
3
security/blocksshd/pkg-plist
Normal file
3
security/blocksshd/pkg-plist
Normal file
@@ -0,0 +1,3 @@
|
||||
@comment $FreeBSD$
|
||||
bin/blocksshd
|
||||
etc/blocksshd.conf
|
||||
Reference in New Issue
Block a user