Setting up fail2ban for first time and get the following when starting it. How 
can I find out where ignoreregex is not defined and the source of the invalid 
argument errors? 
ubuntu@server1:~$ sudo fail2ban-client start 
WARNING 'ignoreregex' not defined in 'Definition'. Using default one: '' 
ERROR Invalid argument [''] in '' 
ERROR Invalid argument [''] in '' 
ERROR Invalid argument [''] in '' 
ERROR Invalid argument [''] in '' 
ERROR Invalid argument [''] in '' 
ERROR Invalid argument [''] in '' 


The Definitions are located in /etc/fail2ban/filter.d/*.conf, heres one example:

# cat /etc/fail2ban/filter.d/confluence.conf
~
[Definition]

failregex = <HOST>.*"GET /login.action

ignoreregex =

I don't remember the full syntax off hand, but test your regexes with the 
command(it should be pretty close):

fail2ban-regex /path/to/log/file.log /etc/fail2ban/filter.d/test.conf 
/etc/fail2ban/filter.d/test.conf

^ You need to specify the config file twice which is a bit weird..One for the 
failregex, one for the ignoreregex..but whatevs..Good luck

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fail2ban-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fail2ban-users

Reply via email to