Skip to content

Instantly share code, notes, and snippets.

@rms1000watt
Created June 15, 2016 20:19
Show Gist options
  • Save rms1000watt/4e23e9d942ccd50b041f824277511041 to your computer and use it in GitHub Desktop.
Save rms1000watt/4e23e9d942ccd50b041f824277511041 to your computer and use it in GitHub Desktop.
HAProxy RDP Filtering
frontend rdp
mode tcp
bind 192.168.1.11:3389
tcp-request inspect-delay 2s
tcp-request content accept if RDP_COOKIE
acl userID_a19281 rdp_cookie(mstshash) -i user123
use_backend backend_a19281 if userID_a19281
acl userID_8721bc rdp_cookie(mstshash) -i user456
use_backend backend_8721bc if userID_8721bc
backend backend_a19281
mode tcp
server Server 192.168.1.12:3389 check
backend backend_8721bc
mode tcp
server Server 192.168.1.13:3389 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment