This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Fail2ban for Sentora (Centos 7)
#2
RE: Fail2ban for Sentora
(06-28-2015, 07:06 AM)bbspike Wrote: Hi there,

I have made a little script to install fail2ban for Sentora Centos 7.

The script will do the follow:

- Disable firewalld as fail2ban for Sentora will use iptables
- install iptables
-configuring common ports for iptables (please check if you have custom ports open)
- Install fail2ban
- Download de files for Sentora from my server
- Install the filters for Sentora
- Replace the jail.local for Sentora
- start iptbales and fail2ban

Please read the follow:

Only for centos 7 for now
Not possible to use firewalld after install
Make sure you add your own ports to iptables after install
Test it first

Code:
bash <(curl -L -Ss http://park.webimproved.nl/fail2ban/install.sh)

It comes with the following jails:

Proftpd
Ssh
Apache
Dovecot
Postfix

You may want tot edit the jail.local file in /etc/fail2ban tot enable email notification. Here you can also edit the ban times, retry failers and search time.

Hi! I´ll paste my log: fail2ban is working, but some errors during installation appeared:

Code:
Checking that minimal requirements are ok
Detected : CentOs  7  x86_64
Ok.

Failed to issue method call: Unit firewalld.service not loaded.


ln -s '/usr/lib/systemd/system/iptables.service' '/etc/systemd/system/basic.target.wants/iptables.service'
libkmod: kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error: could not get list of modules: No such file or directory

Installing : kernel-.10.0-229.11.1.el7.x86_64                                                                                                            2/10
grubby fatal error: unable to find a suitable template
Reply
Thanks given by:


Messages In This Thread
Fail2ban for Sentora (Centos 7) - by bbspike - 06-28-2015, 07:06 AM
RE: Fail2ban for Sentora - by Tango - 09-10-2015, 02:09 AM
RE: Fail2ban for Sentora - by Me.B - 09-10-2015, 05:56 PM
RE: Fail2ban for Sentora - by bbspike - 09-10-2015, 06:59 PM
RE: Fail2ban for Sentora - by Tango - 09-11-2015, 08:29 PM
RE: Fail2ban for Sentora - by bbspike - 09-12-2015, 04:01 PM
RE: Fail2ban for Sentora - by bbspike - 10-18-2015, 06:11 AM
RE: Fail2ban for Sentora - by Tango - 10-19-2015, 06:52 PM
RE: Fail2ban for Sentora - by bbspike - 10-20-2015, 03:16 AM
RE: Fail2ban for Sentora (Centos 7) - by Jettaman - 01-07-2020, 10:05 AM
RE: Fail2ban for Sentora (Centos 7) - by Vedran B - 01-14-2020, 07:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Secure Sentora Domains with Let's Encrypt TGates 27 97 ,359 06-08-2024, 05:06 PM
Last Post: andykimpe
Secure Sentora With SSLForFree Chris L 1 5 ,334 01-22-2020, 09:19 PM
Last Post: ralphharder
[How To] Update from PHP v5.4.16 to v5.6.31 (Includes suhosin patch) [CentOS] betatester3.0 5 19 ,426 03-18-2019, 01:23 AM
Last Post: BigBang

Forum Jump:


Users browsing this thread: 1 Guest(s)