mod_sec for centos 7?

Hi

is anybody here using mod_sec with centos 7?

if so which repo or install method are you using?

most/all the howtos out there are saying use epel, but epel7 doesnt have mod_sec

I can only find atomic, and… well… it just seems a bit cheeky really :wink:
any others?

regards

l.

For example:


[root@localhost ~]# less /etc/centos-release
[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core) 
[root@localhost ~]# ls -la /etc/yum.repos.d/
total 64
drwxr-xr-x.  2 root root 4096 Jun 18  2015 .
drwxr-xr-x. 82 root root 8192 Feb  9 14:32 ..
-rw-r--r--.  1 root root 1664 Apr  1  2015 CentOS-Base.repo
-rw-r--r--.  1 root root 1309 Apr  1  2015 CentOS-CR.repo
-rw-r--r--.  1 root root  649 Apr  1  2015 CentOS-Debuginfo.repo
-rw-r--r--.  1 root root  290 Apr  1  2015 CentOS-fasttrack.repo
-rw-r--r--.  1 root root 1331 Apr  1  2015 CentOS-Sources.repo
-rw-r--r--.  1 root root 1002 Apr  1  2015 CentOS-Vault.repo
-rw-r--r--.  1 root root  957 Nov 25  2014 epel.repo
-rw-r--r--.  1 root root 1056 Nov 25  2014 epel-testing.repo
-rw-r--r--   1 root root 1209 Jan 29  2014 mysql-community.repo
-rw-r--r--   1 root root 1060 Jan 29  2014 mysql-community-source.repo
-rw-r--r--.  1 root root 2260 Jun 17  2015 remi.repo
-rw-r--r--.  1 root root  449 Jun  2  2015 remi-safe.repo

But in one of this repos ModSec v. 2.7.3. There are two ways to install higher version:

  1. your own rpm-building and install;
  2. install mod_security from sources.

We use both of them.

Hi,

Here’s a guide on how to build mod_security from sources: Install mod_security with the OWASP core rule set on a CentOS VPS - RoseHosting

thanks for replies

I dont have a problem to build the rpm or install from source. Its just maintaining it.

the atomic repo seems to work, with a bit of fiddling around configs etc - so its thank you asl I suppose.

I used rh and centos for a long time (omg - maybe 15 years!) so it s what I know best, but sometimes I hate it for stuff like this. and php versions and… and…

regards

l.

Hi

Atomic repo works just fine for us.
Found no issues so far with it.

Regards, Oleg