Openresty with WAF installed
Force HTTPS & HTTP2, TLSv1.3 Supported
SSL Cert & PrivKey required
-
Openresty
version 1.17.8.2
-
Nginx
version 1.17.8.2
-
Openssl
version 1.1.1c
-
WAF
git clone https://github.com/evi0s/Openresty-WAF.git
cd Openresty-WAF
docker build -t user/name .
Copy SSL Cert & Privkey to a path
mkdir /home/user/openresty-waf
cd /home/user/openresty-waf
mkdir ssl && mkdir html
cp /path/to/your/fullchain ./ssl/fullchain.pem # Fullchain name unmodifiable
cp /path/to/your/privkey ./ssl/privkey.pem # Private key name unmodifiable
openssl dhparam -out ./ssl/dhparam.pem 2048
Deploy
docker run -it -d \
-p 80:80 \
-p 443:443 \
-v /home/user/openresty-waf/ssl/:/usr/local/openresty/nginx/ssl/:ro \
-v /home/user/openresty-waf/html/:/usr/local/openresty/nginx/html/ \
--name=nginx-waf \
user/name
docker run -it -d \
-p 80:80 \
-p 443:443 \
-v /home/user/openresty-waf/ssl/:/usr/local/openresty/nginx/ssl/:ro \
-v /home/user/openresty-waf/html/:/usr/local/openresty/nginx/html/ \
--name=nginx-waf \
evi0s/openresty-waf
-
WAF logs
/usr/local/openresty/waf_logs/
Can be modified in config.lua
-
Nginx access log
/usr/local/openresty/nginx/access.log
Can be modified in nginx.conf
-
WAF warning html
Can be modified in config.lua
-
WAF CC Blocking
Default: 10 Requests Max within 60 seconds
Can be modified in config.lua