HaProxy RDP - sessions

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

    listen RDP
    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 check fall 3 rise 5 inter 2000 weight 10
    server rdp1 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 check id 1
            server TS19 check id 2
            server TS20 check id 3
            server TS21 check id 4
            server TS23 check id 5
            server TS26 check id 6
            server TS22 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