Overview
The integration uses HAProxy as the ingress point and Fluent Bit as the log collection and forwarding layer.- HAProxy emits structured access logs with the
HAPROXY_LOGprefix. - Fluent Bit receives HAProxy syslog events over UDP.
- The OneFirewall Fluent Bit adapter parses the records using
catchall_parser. - OneFirewall analyzes the traffic for malicious behavior and pattern detection mapped to MITRE ATT&CK.
- Optional IPS reporting can send suspicious IP intelligence back to the OneFirewall cloud.
1. HAProxy Logging Configuration
Update theglobal section of your haproxy.cfg to send logs both to stdout and to the Fluent Bit adapter over UDP.
172.17.0.1:31514 and forwards UDP traffic to container port 514.
2. HAProxy Frontend Configuration
In the HAProxy frontend, capture the relevant request headers and define a log format that the OneFirewall Fluent Bit adapter can parse.http-request set-var(txn.xff) hdr(X-Forwarded-For)stores the original client IP from theX-Forwarded-Forheader.log-format "HAPROXY_LOG ..."emits a predictable log structure containing the original IP, connection metadata, HTTP protocol, raw request, and status code.
3. OneFirewall Fluent Bit Adapter
Add the OneFirewall Fluent Bit adapter to your Docker Compose stack.For
OFA_API_URL, provide only the protocol, host, and optional port, for example https://app.onefirewall.com or http://localhost:8080. Do not include the API path; the adapter resolves the required endpoint automatically.4. Environment Variables
5. MITRE ATT&CK Pattern Detection Flow
With this configuration, HAProxy provides enough context for OneFirewall to analyze web traffic and detect suspicious patterns. TheHAPROXY_LOG records allow OneFirewall to evaluate request behavior such as suspicious paths, attack tooling, anomalous source IPs, abusive request patterns, and other indicators associated with MITRE ATT&CK techniques.
6. Validation Checklist
After deploying the configuration, verify the following:- HAProxy starts successfully with the updated
globalandfrontendconfiguration. - UDP port
31514is bound on172.17.0.1by the Fluent Bit adapter. - HAProxy logs contain the
HAPROXY_LOGprefix. - The Fluent Bit adapter logs show parsed records matching
*_ofa_logs. - OneFirewall receives traffic events from the
haproxy_wafagent. - IPS reporting is enabled only when
OFA_API_URL_CLOUDandOFA_JWT_TOKEN_CLOUDare configured with valid cloud credentials.

