Hello HAProxy Community,
I’m using HAProxy for my Pfsense and traffic management needs, but I’m facing a challenge when it comes to identifying and redirecting traffic based on the User-Agent header. Specifically, I want to route traffic from a specific device, the Newland NFT10 scanner, to a separate backend server based on its User-Agent header.
Here are the details of my setup:
- HAProxy devel version: 0.62_13
- pfsense 2.7.0
I have tried configuring ACLs in a specific backend in HAProxy, but it seems that the available options for ACL expressions don’t directly support matching the User-Agent header.
(the list of expressions:
host_starts_with
host_ends_with
host_matches
host_regex
host_contains
path_starts_with
path_ends_with
path_matches
path_regex
path_contains
path_dir
url_parameter
ssl_c_verify_code
ssl_c_verify
ssl_c_ca_commonname
source_ip
backendservercount
traffic_is_http
traffic_is_ssl
ssl_sni_matches
ssl_sni_contains
ssl_sni_starts_with
ssl_sni_ends_with
ssl_sni_regex
custom)
I would greatly appreciate any guidance or suggestions on how to achieve this specific use case. Is there a way to match and redirect traffic based on the User-Agent header.