title: fail2ban adding PHP Function
body: <p>fail2ban has to add the banned IP, TIME and which protocol was used before banning in mysql.</p>
  
  <p>I used the following manual: 
  <a href="https://de.saas-secure.com/online-services/fail2ban-ip-weiterleiten.html" rel="nofollow noreferrer">https://de.saas-secure.com/online-services/fail2ban-ip-weiterleiten.html</a></p>
  
  <p>But I get some troubles until the point where I have to setup the iptables-multiport.conf</p>
  
  <p>I added the actionban where is written in the manual. If I delete the actionban, everything is working fine.</p>
  
  <p>I also tried to write the actionban in the actually format but nothing happen.
  I don't know where the problem is.</p>
  
  <p>Here my actionban:</p>
  
  <pre><code>actionban = &lt;iptables&gt; -I f2b-&lt;name&gt; 1 -s &lt;ip&gt; -j &lt;blocktype&gt; DROP /opt/fail2ban.php &lt;name&gt; &lt;protocol&gt; &lt;port&gt; &lt;ip&gt;
  </code></pre>
  
  <p>I can restart the fail2ban process but nothing happens if I try to login with wrong data.</p>
  
  <p>I already tried the php-Data in /opt/ with ./fail2ban.php it works perfect.</p>