> Is this a common use case? Yes. > I see that section 3.1 in the configuration guide discusses using > stunnel for this, but it's not clear whether haproxy will choose the > sticky server based on stunnel's X-Forwarded-For header or it will > choose the destination by the stunnel machine's address? You can balance on X-Forwarded-For or sourceip (you want x-forwarded-for). You could also inject cookies to archieve stickyness. Just read the documentation. ;)
Best regards, Craig