# Allow users to have multiple rdp sessions?

**URL:** <https://discourse.haproxy.org/t/allow-users-to-have-multiple-rdp-sessions/488>\
**Category:** Help!\
**Created:** [July 7, 2016, 10:29pm UTC](https://discourse.haproxy.org/t/allow-users-to-have-multiple-rdp-sessions/488 "2016-07-07T22:29:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwilson\_aus](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@gwilson\_aus](https://discourse.haproxy.org/u/gwilson_aus)\
**Post date:** [July 7, 2016, 10:29pm UTC](https://discourse.haproxy.org/t/allow-users-to-have-multiple-rdp-sessions/488/1 "2016-07-07T22:29:30Z")

</div>

Testing haproxy as a load balancing tool to our 4 2008 R2 terminal servers.

It’s working ok except that I can’t work out how to let staff have more than one simultaneous rdp session. At present if they start a second rdp session from a different device haproxy always connects them to their existing session. I can understand why this is happening as the hash is seeing the user name but I’d like users to be allowed 2 different rdp server sessions simultaneously.

Does anyone know how to acheive this with ha proxy?

Many thanks,

Greg.

---

<div class="post-metadata">

**Author:** ![killefer762](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@killefer762](https://discourse.haproxy.org/u/killefer762)\
**Post date:** [July 14, 2016, 5:53pm UTC](https://discourse.haproxy.org/t/allow-users-to-have-multiple-rdp-sessions/488/2 "2016-07-14T17:53:45Z")

</div>

Can you post your haproxy.cfg file ?

---

<div class="post-metadata">

**Author:** ![gwilson\_aus](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@gwilson\_aus](https://discourse.haproxy.org/u/gwilson_aus)\
**Post date:** [August 14, 2016, 10:36pm UTC](https://discourse.haproxy.org/t/allow-users-to-have-multiple-rdp-sessions/488/3 "2016-08-14T22:36:11Z")

</div>

global  
log /dev/log local0  
log /dev/log local1 notice  
chroot /var/lib/haproxy  
stats socket /run/haproxy/admin.sock mode 660 level admin  
stats timeout 30s  
user haproxy  
group haproxy  
daemon  
maxconn 40000  
ulimit-n 81001

```
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private

# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
ssl-default-bind-options no-sslv3

```

defaults  
log global  
mode http  
option httplog  
option dontlognull  
timeout connect 5000  
timeout client 50000000  
timeout server 50000000  
stats enable  
stats uri /  
stats hide-version  
option httpclose  
frontend F1  
bind 10.99.122.100:3389  
maxconn 40000  
default\_backend B1  
mode tcp  
option tcplog  
backend B1  
mode tcp  
option tcpka  
balance leastconn  
tcp-request inspect-delay 5s  
tcp-request content accept if RDP\_COOKIE  
persist rdp-cookie  
stick-table type string size 204800 expire 1d  
stick on rdp\_cookie(mstshash)  
clitimeout 2h  
option tcplog  
server SCULTS9 10.99.122.4:3389 weight 1 check port 3389 inter 2000 rise 2 fall 3 minconn 0 maxconn o on-marked-down shutdown-sessions  
server SCULTS10 10.99.122.6:3389 weight 1 check port 3389 inter 2000 rise 2 fall 3 minconn 0 maxconn o on-marked-down shutdown-sessions  
server SCULTS11 10.99.122.8:3389 weight 1 check port 3389 inter 2000 rise 2 fall 3 minconn 0 maxconn o on-marked-down shutdown-sessions  
server SCULTS12 10.99.122.10:3389 weight 1 check port 3389 inter 2000 rise 2 fall 3 minconn 0 maxconn o on-marked-down shutdown-sessions  
option redispatch  
option abortonclose  
persist rdp-cookie  
#balance rdp-cookie

```
   listen stats
     bind 10.99.122.100:8181
     stats enable
     stats uri /
     stats realm Haproxy\ Statistics
     stats auth username:password

errorfile 400 /etc/haproxy/errors/400.http
errorfile 403 /etc/haproxy/errors/403.http
errorfile 408 /etc/haproxy/errors/408.http
errorfile 500 /etc/haproxy/errors/500.http
errorfile 502 /etc/haproxy/errors/502.http
errorfile 503 /etc/haproxy/errors/503.http
errorfile 504 /etc/haproxy/errors/504.http
```
