Open lordraiden opened 1 year ago
Now it's solved, I miss the dummy part Note that I used traefik/whoami and not the proposed one, since it was deprecated
## ModSecurity Core Rule Set (CRS) ############################
# https://blog.xentoo.info/2022/01/22/traefik-reverse-proxy-with-modsecurity/
modsecurity:
image: owasp/modsecurity-crs:apache
container_name: ProxyDMZ-ModSecurity
restart: unless-stopped
networks:
- netmodsecurity
volumes:
- /mnt/user/Docker/WebProxyDMZ/ModSecurity/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf:/etc/modsecurity.d/owasp-crs/rules/REQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf
- /mnt/user/Docker/WebProxyDMZ/ModSecurity/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf:/etc/modsecurity.d/owasp-crs/rules/RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf
environment:
- PARANOIA=1
- ANOMALY_INBOUND=10
- ANOMALY_OUTBOUND=5
- BACKEND=http://dummy
dummy:
image: traefik/whoami
container_name: ProxyDMZ-ModSecurity-Dummy
restart: unless-stopped
networks:
- netmodsecurity
I'm have read the doc from this project and https://github.com/coreruleset/modsecurity-crs-docker/tree/master
Everything works but as son as I enable the modsecurity middleware I get a blank page. Any idea what I'm doing wrong? I'm publishing the sites in https and the entrypoints redirects http to https, has this something to do?
Any help or working example are welcome, thanks
This is my current setup, domains are fake
### Traefik.yml static
### this is fileconfig.yml / Dynamic
### Docker compose