Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4721

Extract SNI value for logging in TCP mode

$
0
0

My frontend is in TCP mode and I use the following acl rule to extract the sni.

    tcp-request inspect-delay 5s
    tcp-request content accept if { req_ssl_hello_type 1 }
    acl is_my_domain req.ssl_sni -i www.domain.com

How can log the sni in access logs? I’ve already tried

log-format "%[var(req.ssl_sni)]"

And it seems to only write “-” in the log. I’ve confirmed that I’m doing a HTTPS request with SNI.

NOTE:- I use this rule to change the backend based on SNI and that’s working which confirms that the tcp buffer matching rule and ACL rules are written correctly.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>