mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-09-21 15:46:28 +00:00
DOC: document rational behind 20 character jail name limit
This commit is contained in:
parent
f80fa7d7a0
commit
99838440c8
2 changed files with 6 additions and 2 deletions
|
|
@ -102,9 +102,11 @@ class Jail:
|
|||
self.__filter = FilterPyinotify(self)
|
||||
|
||||
def setName(self, name):
|
||||
# 20 based on iptable chain name limit of 30 less len('fail2ban-')
|
||||
if len(name) >= 20:
|
||||
logSys.warning("Jail name %r might be too long and some commands "
|
||||
"might not function correctly. Please shorten"
|
||||
logSys.warning("Jail name %r might be too long and some commands"
|
||||
" (e.g. iptables) might not function correctly."
|
||||
" Please shorten"
|
||||
% name)
|
||||
self.__name = name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue