HaProxy RDP Forwarding

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp

PortNumber = 000001BB

frontend fe_rdp_tsc
  bind 0.0.0.0:443 name rdp_web ssl crt kimconnect.com.pem
  mode http
  
  log global
  option httplog
  
  maxconn 1000
  acl path_rdweb path_beg -i /RDWeb/
  http-request redirect location /RDWeb/ if { path -i / /RDWeb }
  http-request deny unless path_rdweb
  default_backend be_rdp_tsc

backend rdp
  balance leastconn
	timeout client 300s
	capture request header Host len 32
  timeout connect 4s
  timeout server 300s
  option httpchk GET /
  cookie RDPWEB insert nocache
  default-server inter 3s    rise 2  fall 3
  server srv01 10.10.10.4:443 maxconn 1000 weight 10 ssl check cookie srv01

Leave a Reply

Your email address will not be published. Required fields are marked *