Screenconnect / connectwise behind haproxy

Trying to get screenconnect working behind haproxy. Currently have the web interface working but running into a couple issues.

  1. Machines show connected in the host page but when trying to connect to a machine the session never fully connects, almost as if it isn’t connecting at all. The relay port is just directly forwarded to the internal box running sc. And it all works fine if not using haproxy at all. Does the relay port need to go through haproxy as well?

  2. We have the host page and admin page locked to only allow connection from our Internal ips which works when not using haproxy but with haproxy in the mix it can be accessed from anywhere. (I’m sure there is just a setting i need to tweak to make that work or maybe another of doing it.)

Thoughts anyone?