diff --git a/ChangeLog b/ChangeLog index 4f16fec0..e2382a19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,10 @@ ver. 0.8.12 (2013/12/XX) - things-can-only-get-better 465. Thanks Stefan. Closes gh-447 - mysqld-syslog-iptables rule was too long. Part of gh-447. +- Enhancements: + - long names on jails documented based on iptables limit of 30 less + len("fail2ban-"). + - New Features: Daniel Black diff --git a/server/jail.py b/server/jail.py index 5e60ec7f..7ce12e46 100644 --- a/server/jail.py +++ b/server/jail.py @@ -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