Created
June 15, 2016 20:19
-
-
Save rms1000watt/4e23e9d942ccd50b041f824277511041 to your computer and use it in GitHub Desktop.
HAProxy RDP Filtering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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