Skip to content

Instantly share code, notes, and snippets.

@AnoopAlias
Created April 5, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnoopAlias/40625d404078f21312a930b9ee19e81b to your computer and use it in GitHub Desktop.
Save AnoopAlias/40625d404078f21312a930b9ee19e81b to your computer and use it in GitHub Desktop.
#!/bin/bash
#Author: Anoop P Alias
##Vars
MODSEC_VERSION="3.0"
MODSEC_RPM_ITER="1.el7"
rm -rf /opt/libmodsec ModSecurity
yum install gcc-c++ flex bison yajl yajl-devel curl-devel curl GeoIP-devel doxygen zlib-devel pcre-devel
git clone https://github.com/SpiderLabs/ModSecurity
cd ModSecurity
git checkout -b v3/master origin/v3/master
sh build.sh
git submodule init
git submodule update
./configure --prefix=/opt/nDeploy-libmodsecurity
make DESTDIR=/opt/libmodsec install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment