mirror of https://github.com/fail2ban/fail2ban
DOC: document rational behind 20 character jail name limit
parent
f80fa7d7a0
commit
99838440c8
|
@ -17,6 +17,8 @@ ver. 0.8.12 (2013/12/XX) - things-can-only-get-better
|
||||||
- allow for ", referer ..." in apache-* filter for apache error logs.
|
- allow for ", referer ..." in apache-* filter for apache error logs.
|
||||||
- allow for spaces at the beginning of kernel messages. Closes gh-448
|
- allow for spaces at the beginning of kernel messages. Closes gh-448
|
||||||
- recidive jail to block all protocols. Closes gh-440. Thanks Ioan Indreias
|
- recidive jail to block all protocols. Closes gh-440. Thanks Ioan Indreias
|
||||||
|
- long names on jails documented based on iptables limit of 30 less
|
||||||
|
len("fail2ban-").
|
||||||
|
|
||||||
- New Features:
|
- New Features:
|
||||||
|
|
||||||
|
|
|
@ -102,9 +102,11 @@ class Jail:
|
||||||
self.__filter = FilterPyinotify(self)
|
self.__filter = FilterPyinotify(self)
|
||||||
|
|
||||||
def setName(self, name):
|
def setName(self, name):
|
||||||
|
# 20 based on iptable chain name limit of 30 less len('fail2ban-')
|
||||||
if len(name) >= 20:
|
if len(name) >= 20:
|
||||||
logSys.warning("Jail name %r might be too long and some commands "
|
logSys.warning("Jail name %r might be too long and some commands"
|
||||||
"might not function correctly. Please shorten"
|
" (e.g. iptables) might not function correctly."
|
||||||
|
" Please shorten"
|
||||||
% name)
|
% name)
|
||||||
self.__name = name
|
self.__name = name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue