nginx+modsecurity image working as reverse proxy.
1.6K
1.15.2, latest (1.15.2/Dockerfile)
ModSecurity is a Web Application Firewall (WAF). There is two part :
For more information you can read https://github.com/SpiderLabs/ModSecurity/tree/v3/master.
This image is based on pockost/modsecurity-nginx image and add the support of using nginx with modsecurity as a reverse proxy.
PROXY_HOST Host on which we want to forward requestPROXY_PORT Port on which we want to forward requestYou can also used all environment variable available in pockost/modsecurity-nginx.
docker run --rm -it -e PROXY_HOST=myhost -v /path/to/rules/:/etc/modsecurity/rules/ pockost/modsecurity-proxy:latest
If you plan to used OWASP rules you can used the pockost/modsecurity-crs to automaticaly download and update rules.
Here a docker-compose.yml example
version: "3.0"
services:
proxy:
image: pockost/modsecurity-crs:latest
ports:
- "8080:80"
volumes:
- ./owasp-crs/rules:/etc/modsecurity/rules
depends_on:
- crs-updater
environment:
- PROXY_HOST=php
php:
image: nginx:latest
crs-updater:
image: pockost/modsecurity-crs:latest
volumes:
- ./owasp-crs:/workdir
environment:
- CRS_BRANCH=origin/v3.0/master
healthcheck:
test: ["CMD", "test", "-d", "/workdir/.git"]
Content type
Image
Digest
Size
24.7 MB
Last updated
over 8 years ago
docker pull pockost/modsecurity-proxy