pfSense Gold Subscription

Author Topic: HaProxy RDP - sessions  (Read 117 times)

0 Members and 1 Guest are viewing this topic.

Offline brandon2

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
HaProxy RDP - sessions
« on: November 28, 2017, 10:42:20 am »
I want to make haproxy RDPs
I made use of this tutorial:

Code: [Select]
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:
Quote
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?

Offline yahav02

  • Newbie
  • *
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Re: HaProxy RDP - sessions
« Reply #1 on: December 10, 2017, 12:40:46 pm »
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

Offline brandon2

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: HaProxy RDP - sessions
« Reply #2 on: Yesterday at 09:00:25 am »

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