shubhampathak / modsecurity-nginx-setup Goto Github PK
View Code? Open in Web Editor NEWBash scripts to automatically install, setup and update ModSecurity WAF with NGINX.
Bash scripts to automatically install, setup and update ModSecurity WAF with NGINX.
First of all, thanks for creating original content and putting in the work :)
I just downloaded the ubuntu LTS iso "ubuntu-18.04.4-live-server-amd64.iso"
Installed it with standard settings (made sure it installed openssh server and configured it with a static ip, during the installer)
Then setup ssh keys and apt update -y ; apt upgrade -y
Then git cloned your repo and followed your install instructions, and ended up with this.
root@modsec:~# git clone https://github.com/shubhampathak/ModSecurity-NGINX-setup.git
---> https://pastebin.com/UtbA7pZr <---
root@modsec:~/ModSecurity-NGINX-setup# ls
README.md owasp.sh setup.sh update.sh
root@modsec:~/ModSecurity-NGINX-setup# ./owasp.sh
Setting up OWASP Top-10 official Core Rule Set (CRS)
Cloning into 'owasp-modsecurity-crs'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 10275 (delta 0), reused 4 (delta 0), pack-reused 10265
Receiving objects: 100% (10275/10275), 3.27 MiB | 679.00 KiB/s, done.
Resolving deltas: 100% (7531/7531), done.
Can i help troubleshooting your script so it can get up and running or am i doing something wrong ?:)
root@modsec:~/ModSecurity-NGINX-setup# nginx -V
nginx version: nginx/1.14.0 (Ubuntu)
built with OpenSSL 1.1.1 11 Sep 2018
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-GkiujU/nginx-1.14.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module
thanks for your time.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.