security/py-fail2ban: sync with upstream

Taken from: HardenedBSD
This commit is contained in:
Franco Fichtner 2017-10-25 21:58:55 +02:00
parent b717e60a07
commit 999dfd4795
3 changed files with 26 additions and 5 deletions

View file

@ -2,6 +2,7 @@
PORTNAME= fail2ban
PORTVERSION= 0.10.1
PORTREVISION= 1
CATEGORIES= security python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -39,7 +40,7 @@ FILES= ${WRKSRC}/bin/fail2ban-client \
${WRKSRC}/man/fail2ban-client.h2m \
${WRKSRC}/setup.py
MAN_FILES= ${WRKSRC}/man/fail2ban-client.1 \
MAN_FILES= ${WRKSRC}/man/fail2ban-client.1 \
${WRKSRC}/man/fail2ban-client.h2m \
${WRKSRC}/man/fail2ban-regex.1 \
${WRKSRC}/man/fail2ban-server.1 \

View file

@ -0,0 +1,20 @@
--- config/action.d/pf.conf.orig 2017-10-12 11:46:46 UTC
+++ config/action.d/pf.conf
@@ -18,8 +18,8 @@
# also, these rulesets are loaded into (nested) anchors
# to enable them, add
# anchor f2b {
-# name1
-# name2
+# anchor name1
+# anchor name2
# ...
# }
# to your main pf ruleset, where "namei" are the names of the jails
@@ -110,5 +110,5 @@ allports = any
# Option: multiport
# Notes.: addition to block access only to specific ports
# Usage.: use in jail config: "banaction = pf[actiontype=<multiport>]"
-multiport = any port <port>
+multiport = any port {<port>}

View file

@ -12,9 +12,9 @@ http://www.fail2ban.org/wiki/index.php/MANUAL_0_8#Configuration
If you have custom filters or actions and you are upgrading from
0.9.x please check them.
Users of pf: please note that instead of
action = pf
you hae to write someting like
action = pf[port={80 443}, name=http]
Users of pf: please read the notes in action.d/pf.conf and the
discussion at https://github.com/fail2ban/fail2ban/pull/1925
Please note that fail2ban will put curly braces '{}' around the
ports in the action so you shouldn't do it yourself.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -