{"action":"created","issue":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1140","labels_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1140/labels{/name}","comments_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1140/comments","events_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1140/events","html_url":"https://github.com/fail2ban/fail2ban/issues/1140","id":97805527,"number":1140,"title":"Regex for roundcube.conf in freebsd 10.1","user":{"login":"edupinhata","id":6368537,"avatar_url":"https://avatars.githubusercontent.com/u/6368537?v=3","gravatar_id":"","url":"https://api.github.com/users/edupinhata","html_url":"https://github.com/edupinhata","followers_url":"https://api.github.com/users/edupinhata/followers","following_url":"https://api.github.com/users/edupinhata/following{/other_user}","gists_url":"https://api.github.com/users/edupinhata/gists{/gist_id}","starred_url":"https://api.github.com/users/edupinhata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edupinhata/subscriptions","organizations_url":"https://api.github.com/users/edupinhata/orgs","repos_url":"https://api.github.com/users/edupinhata/repos","events_url":"https://api.github.com/users/edupinhata/events{/privacy}","received_events_url":"https://api.github.com/users/edupinhata/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-28T21:27:10Z","updated_at":"2015-07-28T22:06:55Z","closed_at":"2015-07-28T22:04:20Z","body":"I found out that the regex for the filter ipfw.conf was not working in freebsd 10.1. \r\n\r\nI changed a little bit the regular expression as follow bellow and it works for me now.\r\n\r\nfailregex = ^\\s*(\\[\\])?(.* IMAP Error)?: (FAILED login|Login failed) for .*? from <HOST>(\\. .* in .*?/rcube_imap\\.php on line \\d+ \\(\\S+ \\S+\\))?$\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/fail2ban/fail2ban/issues/comments/125767121","html_url":"https://github.com/fail2ban/fail2ban/issues/1140#issuecomment-125767121","issue_url":"https://api.github.com/repos/fail2ban/fail2ban/issues/1140","id":125767121,"user":{"login":"edupinhata","id":6368537,"avatar_url":"https://avatars.githubusercontent.com/u/6368537?v=3","gravatar_id":"","url":"https://api.github.com/users/edupinhata","html_url":"https://github.com/edupinhata","followers_url":"https://api.github.com/users/edupinhata/followers","following_url":"https://api.github.com/users/edupinhata/following{/other_user}","gists_url":"https://api.github.com/users/edupinhata/gists{/gist_id}","starred_url":"https://api.github.com/users/edupinhata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edupinhata/subscriptions","organizations_url":"https://api.github.com/users/edupinhata/orgs","repos_url":"https://api.github.com/users/edupinhata/repos","events_url":"https://api.github.com/users/edupinhata/events{/privacy}","received_events_url":"https://api.github.com/users/edupinhata/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T22:06:55Z","updated_at":"2015-07-28T22:06:55Z","body":"Okay. Thank you!\n\nOn Tue, Jul 28, 2015 at 5:04 PM, Yaroslav Halchenko <\nnotifications@github.com> wrote:\n\n> this one is already caught -- just wait for a fresh release/upadte\n>\n> $> PYTHONPATH=$PWD bin/fail2ban-regex \"[16-Jun-2015 17:15:59 +0000]: <c68h07au> IMAP Error: Login failed for blueguardian from 192.168.56.103. Could not connect to localhost:143: Connection refused in /usr/local/www/apache24/data/roundcube/program/lib/Roundcube/rcube_imap.php on line 198 (POST /roundcube/?_task=login?_task=login&_action=login)\"  co\n> nfig/filter.d/roundcube-auth.conf\n>\n> Running tests\n> =============\n>\n> Use   failregex filter file : roundcube-auth, basedir: config\n> Use      single line : [16-Jun-2015 17:15:59 +0000]: <c68h07au> IMAP Erro...\n>\n>\n> Results\n> =======\n>\n> Failregex: 1 total\n> |-  #) [# of hits] regular expression\n> |   1) [1] ^\\s*(\\[\\])?(\\S+\\s*(roundcube:)?\\s*(<[\\w]+>)? IMAP Error)?: (FAILED login|Login failed) for .*? from <HOST>(\\. .* in .*?/rcube_imap\\.php on line \\d+ \\(\\S+ \\S+\\))?$\n> `-\n>\n> Ignoreregex: 0 total\n>\n> Date template hits:\n> |- [# of hits] date format\n> |  [1] Day(?P<_sep>[-/])MON(?P=_sep)Year[ :]?24hour:Minute:Second(?:\\.Microseconds)?(?: Zone offset)?\n> `-\n>\n> Lines: 1 lines, 0 ignored, 1 matched, 0 missed [processed in 0.00 sec]\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/fail2ban/fail2ban/issues/1140#issuecomment-125766687>.\n>\n\n\n\n-- \nEduardo Pinhata\n"}}