View | Details | Raw Unified | Return to bug 245097
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	fail2ban
3
PORTNAME=	fail2ban
4
PORTVERSION=	0.11.1
4
PORTVERSION=	0.11.1
5
PORTREVISION=	1
5
CATEGORIES=	security python
6
CATEGORIES=	security python
6
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
7
8
(-)files/patch-config_filter.d_bsd-sshd.conf (-2 / +3 lines)
Lines 1-6 Link Here
1
--- config/filter.d/bsd-sshd.conf.orig	2015-11-03 04:11:30 UTC
1
--- config/filter.d/bsd-sshd.conf.orig	2020-03-27 11:15:56 UTC
2
+++ config/filter.d/bsd-sshd.conf
2
+++ config/filter.d/bsd-sshd.conf
3
@@ -0,0 +1,40 @@
3
@@ -0,0 +1,41 @@
4
+# Fail2Ban configuration file
4
+# Fail2Ban configuration file
5
+#
5
+#
6
+# Author: Cyril Jaquier
6
+# Author: Cyril Jaquier
Lines 31-36 Link Here
31
+            ^%(__prefix_line)sFailed [-/\w]+ for .* from <HOST>(?: port \d*)?(?: ssh\d*)?$
31
+            ^%(__prefix_line)sFailed [-/\w]+ for .* from <HOST>(?: port \d*)?(?: ssh\d*)?$
32
+            ^%(__prefix_line)sROOT LOGIN REFUSED.* FROM <HOST>\s*$
32
+            ^%(__prefix_line)sROOT LOGIN REFUSED.* FROM <HOST>\s*$
33
+            ^%(__prefix_line)s[iI](?:llegal|nvalid) user .* from <HOST>\s*$
33
+            ^%(__prefix_line)s[iI](?:llegal|nvalid) user .* from <HOST>\s*$
34
+            ^%(__prefix_line)s[iI](?:llegal|nvalid) user .* from <HOST> port \d*$
34
+            ^%(__prefix_line)sUser \S+ from <HOST> not allowed because not listed in AllowUsers$
35
+            ^%(__prefix_line)sUser \S+ from <HOST> not allowed because not listed in AllowUsers$
35
+            ^%(__prefix_line)sauthentication failure; logname=\S* uid=\S* euid=\S* tty=\S* ruser=\S* rhost=<HOST>(?:\s+user=.*)?\s*$
36
+            ^%(__prefix_line)sauthentication failure; logname=\S* uid=\S* euid=\S* tty=\S* ruser=\S* rhost=<HOST>(?:\s+user=.*)?\s*$
36
+            ^%(__prefix_line)srefused connect from \S+ \(<HOST>\)\s*$
37
+            ^%(__prefix_line)srefused connect from \S+ \(<HOST>\)\s*$

Return to bug 245097