Fail2Ban and SeLinux

Support for security such as Firewalls and securing linux
Isma329
Posts: 2
Joined: 2015/01/07 11:26:00

Re: Fail2Ban and SeLinux

Post by Isma329 » 2015/01/08 09:33:16

After moving owncloud.log to the folder /var/log. fail2ban works with SElinux enforced.

in config.php
'logfile' => '/var/log/owncloud.log',
in /etc/fail2ban/jail.local
enabled = true
filter = owncloud
bantime = 300
port = https
logpath = /var/log/owncloud.log
maxretry = 10
backend = pyinotify
and

Code: Select all

#chmod 660 /var/log/owncloud.log
#chown apache:apache /var/log/owncloud.log
#semanage fcontext -a -t httpd_log_t "/var/log/owncloud.log"
#restorecon -Rv /var/log/owncloud.log
#setenforce 1
#systemctl start fail2ban.service
->OK

Post Reply

Return to “CentOS 7 - Security Support”