Hello,
i´ve installed ProxMox 7.4-16 and i´ve tried to setup Fail2Ban according to https://pve.proxmox.com/wiki/Fail2ban#Legacy_Option:_Using_rsyslog_Backend
when i run the test Command i get this error:
Do you have anything to sugest?
Thanks!
i´ve installed ProxMox 7.4-16 and i´ve tried to setup Fail2Ban according to https://pve.proxmox.com/wiki/Fail2ban#Legacy_Option:_Using_rsyslog_Backend
when i run the test Command i get this error:
Code:
~ # fail2ban-regex /var/log/daemon.log /etc/fail2ban/filter.d/proxmox.conf
Running tests
=============
Use failregex filter file : proxmox, basedir: /etc/fail2ban
Use log file : /var/log/daemon.log
Use encoding : UTF-8
Traceback (most recent call last):
File "/usr/bin/fail2ban-regex", line 34, in <module>
exec_command_line()
File "/usr/lib/python3/dist-packages/fail2ban/client/fail2banregex.py", line 836, in exec_command_line
if not fail2banRegex.start(args):
File "/usr/lib/python3/dist-packages/fail2ban/client/fail2banregex.py", line 776, in start
self.process(test_lines)
File "/usr/lib/python3/dist-packages/fail2ban/client/fail2banregex.py", line 584, in process
line_datetimestripped, ret, is_ignored = self.testRegex(line)
File "/usr/lib/python3/dist-packages/fail2ban/client/fail2banregex.py", line 456, in testRegex
found = self._filter.processLine(line, date)
File "/usr/lib/python3/dist-packages/fail2ban/server/filter.py", line 613, in processLine
timeMatch = self.dateDetector.matchTime(line)
File "/usr/lib/python3/dist-packages/fail2ban/server/datedetector.py", line 368, in matchTime
(line[distance] == self.__lastPos[2] and not self.__lastPos[2].isalnum())
IndexError: string index out of range
Do you have anything to sugest?
Thanks!