I'm having a similar issue. Whether I connect via ssh or via the web terminal it always disconnects after about 30 seconds. My setup is a bit different (not using HAProxy), but for me at least it seems related to IPv6. If I connect via the IPv4 address the same behavior doesn't occur. Only when connecting via IPv6 address or hostname (which presumably resolves preferentially to the IPv6 address).