SPOE
约 1 分钟阅读
HAProxy SPOE
- 参考
| term | for |
|---|---|
| SPOE | Stream Processing Offload Engine |
| SPOA | Stream Processing Offload Agent |
| SPOP | Stream Processing Offload Protocol |
frontend myproxy
# 调用 SPOE
# filter spoe [engine <name>] config <spoe-config-file>
filter spoe engine ip-reputation config iprep.conf
# 通过 SPOE 变量做判断
tcp-request content reject if { var(sess.iprep.ip_score) -m int lt 20 }
# 定义 SPOE 后端
backend agents
mode tcp
balance roundrobin
timeout connect 5s # greater than hello timeout
timeout server 3m # greater than idle timeout
option spop-check
server agent2 192.168.1.11:12345 checkspoe-config-file
[ip-reputation]
spoe-agent iprep-agent
messages check-client-ip
# 变量前缀
option var-prefix iprep
timeout hello 2s
timeout idle 2m
timeout processing 10ms
# 指向后端
use-backend agents
log global
spoe-message check-client-ip
args ip=src
event on-client-session if ! { src -f /etc/haproxy/whitelist.lst }- SpiderLabs/ModSecurityGitHubSpiderLabs/ModSecurity
- corazawaf/corazaGitHubcorazawaf/corazaWAF - web application firewall · SpiderLabs/ModSecurity · Apache-2.0, C++ · corazawaf/coraza · Apache-2.0, Go · modsecurity compatible web application firewall library笔记:WAF
- 兼容 ModSecurity
关联信息
反向链接、本文链接的其他页面和外部资料。
参考资料
GitHub3 条
- corazawaf/corazagithub.com/corazawaf/coraza
- haproxy/haproxy/doc/SPOE.txtgithub.com/haproxy/haproxy/blob/master/doc/SPOE.txt
- SpiderLabs/ModSecuritygithub.com/SpiderLabs/ModSecurity
其他外链1 条
- www.haproxy.com/blog/extending-haproxy-with-the-stream-processing-offload-enginewww.haproxy.com/blog/extending-haproxy-with-the-stream-processing-offload-engine