HaProxy RDP - sessions



  • I want to make haproxy RDPs
    I made use of this tutorial:

    listen RDP
    bind 0.0.0.0:3389
    balance rdp-cookie
    maxconn 50000
    mode tcp
    tcp-request inspect-delay 5s
    tcp-request content accept if RDP_COOKIE
    persist rdp-cookie
    option tcpka
    timeout connect 500000
    timeout client 500000
    timeout server 500000
    server rdp0 192.168.100.10:3389 check fall 3 rise 5 inter 2000 weight 10
    server rdp1 192.168.100.11:3389 check fall 3 rise 5 inter 2000 weight 10
    

    but I would like the user from one computer to connect to the same server within 5 hours.

    there are options for:

    persisting rdp-cookies
    balance rdp-cookie
    tcp-request content accept if RDP_COOKIE

    but not yet

    Do I need to turn on something on the server side to store cookies?

    how to do this?



  • this my config on HaProxy.cfg File
    working perfect

    backend view_rdp
            mode tcp
            option tcplog
            balance roundrobin
            stick-table type ip size 200k expire 4h
            stick on src
            server TS17 192.168.1.17:3389 check id 1
            server TS19 192.168.1.19:3389 check id 2
            server TS20 192.168.1.20:3389 check id 3
            server TS21 192.168.1.21:3389 check id 4
            server TS23 192.168.1.23:3389 check id 5
            server TS26 192.168.1.26:3389 check id 6
            server TS22 192.168.1.22:3389 check id 7



  • @yahav02:

    And how did you solve the session?
    Do users from different devices log into different servers?
    Is there a different policy?


Log in to reply