<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FOP2 logs]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I want to add the fop2 login attempts to fail2ban.<br />
There are no logs for login attempts under httpd log.<br />
How can I add the login attempts or login failures to fail2ban?</p>
<p dir="rtl"><a href="http://www.bluebe.net/heb" rel="nofollow ugc">זה בלובינט IP מרכזיות</a></p>
]]></description><link>http://localhost:4567/topic/2071/fop2-logs</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 05:41:55 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/2071.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 25 Oct 2015 07:16:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FOP2 logs on Wed, 11 Nov 2015 00:10:20 GMT]]></title><description><![CDATA[<p dir="auto">Adding a slight correction here.<br />
Put that into /etc/fail2ban/filter.d/fop2.conf:<br />
failregex = GENERAL|FAILED LOGIN (bad password)|&lt;HOST&gt;:\d+<br />
GENERAL|FAILED LOGIN (non existant user)|&lt;HOST&gt;:\d+</p>
<p dir="auto">Also don't forget to do service fail2ban restart. Do fail2ban-client status to see if your jail got added.</p>
]]></description><link>http://localhost:4567/post/9119</link><guid isPermaLink="true">http://localhost:4567/post/9119</guid><dc:creator><![CDATA[avayax]]></dc:creator><pubDate>Wed, 11 Nov 2015 00:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Tue, 10 Nov 2015 14:46:35 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for sharing your  fail2ban config!</p>
]]></description><link>http://localhost:4567/post/9118</link><guid isPermaLink="true">http://localhost:4567/post/9118</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 10 Nov 2015 14:46:35 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Tue, 10 Nov 2015 13:29:56 GMT]]></title><description><![CDATA[<p dir="auto">This is working.<br />
Just posting the working config I used for other users who want to do the same. This is for PIAF and FreePBX distro, which come with a preconfigured fail2ban setup.</p>
<p dir="auto">Create a fop2.conf file in /etc/fail2ban/filter.d/ and put the following content in there:<br />
[INCLUDES]</p>
<h1>Read common prefixes. If any customizations available -- read them from</h1>
<h1>common.local</h1>
<p dir="auto">before = common.conf</p>
<p dir="auto">[Definition]</p>
<p dir="auto">_daemon = fop2_server</p>
<h1>Option:  failregex</h1>
<h1>Notes.:  regex to match the password failures messages in the logfile. The</h1>
<h1>host must be matched by a group named "host". The tag "&lt;HOST&gt;" can</h1>
<h1>be used for standard IP/hostname matching and is only an alias for</h1>
<h1>(?:::f{4,6}:)?(?P&lt;host&gt;[\w-.^_]+)</h1>
<h1>Values:  TEXT</h1>
<h1></h1>
<p dir="auto">failregex = GENERAL|FAILED LOGIN (bad password)|&lt;HOST&gt;</p>
<h1>Option:  ignoreregex</h1>
<h1>Notes.:  regex to ignore. If this regex matches, the line is ignored.</h1>
<h1>Values:  TEXT</h1>
<h1></h1>
<p dir="auto">ignoreregex =</p>
<p dir="auto">Then add below content to /etc/fail2ban/jail.conf:<br />
[fop2]<br />
enabled = true<br />
filter = fop2<br />
action = iptables-allports[name=FOP2, protocol=all]<br />
sendmail[name=FOP2, dest="your destination email", sender=root@"hostname"]<br />
logpath = /var/log/fop2_audit.log<br />
bantime = 1800<br />
findtime = 600<br />
maxretry = 8<br />
backend = auto</p>
<p dir="auto">Adjust the bantime, etc. settings and change the action if you want to block custom ports and not all.<br />
A failed login attempt in /var/log/fop2_audit.log looks like this:</p>
<p dir="auto">1447099540|8800|GENERAL|FAILED LOGIN (bad password)|192.168.1.254:49379<br />
1447099545|8800|GENERAL|FAILED LOGIN (bad password)|192.168.1.254:49396</p>
<p dir="auto">Good luck!</p>
]]></description><link>http://localhost:4567/post/9117</link><guid isPermaLink="true">http://localhost:4567/post/9117</guid><dc:creator><![CDATA[avayax]]></dc:creator><pubDate>Tue, 10 Nov 2015 13:29:56 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Mon, 09 Nov 2015 22:15:48 GMT]]></title><description><![CDATA[<p dir="auto">Seems correct, rough human translation:</p>
<p dir="auto">daemonize, use interface em1 MAC address for license, use /etc/asterisk/fop2 for configuration directories and generate an audit log in /var/log/fop2_audit.log</p>
]]></description><link>http://localhost:4567/post/9116</link><guid isPermaLink="true">http://localhost:4567/post/9116</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 09 Nov 2015 22:15:48 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Mon, 09 Nov 2015 20:17:58 GMT]]></title><description><![CDATA[<p dir="auto">Yes. It is working now after a fop2 restart.<br />
Can you verify that this entry in /etc/sysconfig is correct?<br />
Running High Availability and my Ethernet interface is em1.<br />
OPTIONS="-d -i em1 -c /etc/asterisk/fop2 -a /var/log/fop2_audit.log"</p>
]]></description><link>http://localhost:4567/post/9115</link><guid isPermaLink="true">http://localhost:4567/post/9115</guid><dc:creator><![CDATA[avayax]]></dc:creator><pubDate>Mon, 09 Nov 2015 20:17:58 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Mon, 09 Nov 2015 20:11:45 GMT]]></title><description><![CDATA[<p dir="auto">Do not create the file, it should be created by fop2.. if you create the file you might do it with incorrect permissions, so it is better to let the software do it for you. Also, are you sure you restarted FOP2? what is the output from</p>
<p dir="auto">ps uax | grep fop2</p>
<p dir="auto">?</p>
]]></description><link>http://localhost:4567/post/9114</link><guid isPermaLink="true">http://localhost:4567/post/9114</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 09 Nov 2015 20:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Mon, 09 Nov 2015 19:52:09 GMT]]></title><description><![CDATA[<p dir="auto">Also trying to accomplish that.<br />
I got this in /etc/sysconfig/fop2:<br />
OPTIONS="-d -a /var/log/fop2_audit.log"</p>
<p dir="auto">Created fop2_audit.log in /var/log/.<br />
Now nothing gets written into fop2_audit.log, the file stays empty.<br />
What am I missing?</p>
]]></description><link>http://localhost:4567/post/9113</link><guid isPermaLink="true">http://localhost:4567/post/9113</guid><dc:creator><![CDATA[avayax]]></dc:creator><pubDate>Mon, 09 Nov 2015 19:52:09 GMT</pubDate></item><item><title><![CDATA[Reply to FOP2 logs on Sun, 25 Oct 2015 13:37:09 GMT]]></title><description><![CDATA[<p dir="auto">Enable the audit log with the -a command line variable. Edit /etc/sysconfig/fop2 and change the OPTIONS variable to include it, something similar to this:</p>
<p dir="auto">OPTIONS="-d -a /var/log/fop2_audit.log"</p>
<p dir="auto">Then you can add that log to fail2ban rules.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/9112</link><guid isPermaLink="true">http://localhost:4567/post/9112</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sun, 25 Oct 2015 13:37:09 GMT</pubDate></item></channel></rss>