Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
coraza [2026/02/24 11:23] jango |
coraza [2026/02/24 16:12] (aktuell) jango |
||
|---|---|---|---|
| Zeile 16: | Zeile 16: | ||
| cd coraza-spoa | cd coraza-spoa | ||
| - | go run mage.go build | + | sudo go run mage.go build |
| # binary is in build now | # binary is in build now | ||
| Zeile 37: | Zeile 37: | ||
| < | < | ||
| + | [root@vpsv-haproxy1 ~]# cat / | ||
| [coraza] | [coraza] | ||
| spoe-agent coraza-agent | spoe-agent coraza-agent | ||
| - | messages | + | messages |
| option var-prefix coraza | option var-prefix coraza | ||
| - | timeout hello 5s | + | timeout hello 2s |
| - | timeout idle 30s | + | timeout idle 10s |
| - | timeout processing | + | timeout processing |
| use-backend coraza-spoa-backend | use-backend coraza-spoa-backend | ||
| - | spoe-message | + | spoe-message |
| - | args app=str("sample_app") src_ip=src method=method path=path query=query version=req.ver | + | args app=str(sample_app) |
| event on-frontend-http-request | event on-frontend-http-request | ||
| + | [root@vpsv-haproxy1 ~]# | ||
| </ | </ | ||
| Zeile 71: | Zeile 73: | ||
| Include @coraza.conf-recommended | Include @coraza.conf-recommended | ||
| Include @crs-setup.conf.example | Include @crs-setup.conf.example | ||
| + | | ||
| + | SecRule REQUEST_FILENAME " | ||
| + | | ||
| Include @owasp_crs/ | Include @owasp_crs/ | ||
| Zeile 115: | Zeile 120: | ||
| root@ubuntuserver: | root@ubuntuserver: | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | backend coraza-spoa-backend | ||
| + | mode tcp | ||
| + | timeout connect 5s | ||
| + | timeout server | ||
| + | server coraza1 172.21.1.170: | ||
| + | | ||
| + | frontend outlook | ||
| + | bind 172.21.1.169: | ||
| + | mode http | ||
| + | log global | ||
| + | log-format " | ||
| + | filter spoe engine coraza config / | ||
| + | http-response set-header X-Coraza-Action %[var(txn.coraza.action)] if { var(txn.coraza.action) -m found } | ||
| + | default_backend outlook | ||
| </ | </ | ||