Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    HaProxy RDP - sessions

    Scheduled Pinned Locked Moved Cache/Proxy
    3 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brandon2
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • Y
        yahav02
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • B
          brandon2
          last edited by

          @yahav02:

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.