Douglas,
I'm a bit confused on the question but an example Session Broker
Config would be:
listen Test
bind 192.168.64.28:3389 transparent
mode tcp
balance leastconn
persist rdp-cookie
server backup 192.168.64.15:3389 backup non-stick
timeout client 12h
timeout server 12h
tcp-request inspect-delay 5s
tcp-request content reject if { req_ssl_hello_type 1 }
tcp-request content accept if RDP_COOKIE
option tcpka
option redispatch
option abortonclose
maxconn 40000
server Accounts 192.168.64.15:3389 weight 100 check port 80
inter 4000 rise 2 fall 2 minconn 0 maxconn 0 on-marked-down
shutdown-sessions
And a config for using the Microsoft RDP client cookie would be :
listen Test
bind 192.168.64.28:3389 transparent
mode tcp
balance leastconn
server backup 192.168.64.15:3389 backup non-stick
timeout client 12h
timeout server 12h
tcp-request inspect-delay 5s
tcp-request content reject if { req_ssl_hello_type 1 }
tcp-request content accept if RDP_COOKIE
stick-table type string size 10240k expire 30m
stick on rdp_cookie(mstshash) upper
stick on src
option tcpka
option redispatch
option abortonclose
maxconn 40000
server Accounts 192.168.64.15:3389 weight 100 check port 80
inter 4000 rise 2 fall 2 minconn 0 maxconn 0 on-marked-down
shutdown-sessions
More information here:
http://www.haproxy.com/doc/aloha/7.0/deployment_guides/microsoft_remote_desktop_services.html
and here:
http://www.loadbalancer.org/blog/category/microsoft-terminal-services-blog-posts
On 20 November 2015 at 10:43, Douglas Fabiano Specht
<[email protected]> wrote:
> Hello..
> I'm actually using this down, but I'm not coseguindo set to capture the logs
> and analyze them by html.
>
> listen tse-farm
> bind 0.0.0.0:3389
> balance leastconn
> persist rdp-cookie
> timeout server 1h
> timeout client 1h
> timeout connect 4s
> tcp-request inspect-delay 5s
> tcp-request content accept if RDP_COOKIE
> persist rdp-cookie
> stick-table type string size 204800
> stick on req.rdp_cookie(mstshash)
> server srv1 10.240.0.3:3389
> server srv2 10.240.0.4:3389
>
>
> 2015-11-20 5:38 GMT-02:00 Malcolm Turnbull <[email protected]>:
>>
>> Douglas,
>>
>> Why not use RDP cookies or Session Broker support with HAProxy?:
>>
>> http://www.loadbalancer.org/blog/load-balancing-windows-terminal-server-haproxy-and-rdp-cookies
>>
>>
>>
>>
>> On 19 November 2015 at 15:08, Douglas Fabiano Specht
>> <[email protected]> wrote:
>> > staff,
>> > who would have a sample configuration file to use TCP connections on
>> > port
>> > 3389 RDP and could share?
>> >
>> > --
>> >
>> > Douglas Fabiano Specht
>>
>>
>>
>> --
>> Regards,
>>
>> Malcolm Turnbull.
>>
>> Loadbalancer.org Ltd.
>> Phone: +44 (0)330 1604540
>> http://www.loadbalancer.org/
>
>
>
>
> --
>
> Douglas Fabiano Specht
--
Regards,
Malcolm Turnbull.
Loadbalancer.org Ltd.
Phone: +44 (0)330 380 1064
http://www.loadbalancer.org/