Forum Discussion
kend
Altostratus
Jan 10, 2012iRule for Microsoft RDP
I want to create an iRule that can direct a user to a pool based on the remote computer name they are specifying when using the Microsoft RDP client. So, if they enter host1.network.net in the RDP client, I want the iRule to direct them to pool host1.network.net. If a different user enters host2.network.net in the RDP client, I want the iRule to direct them to pool host2.network.net. Does any one know if this is possible?
3 Replies
- hoolio
Cirrostratus
In a quick test connecting from a Win7 client to a Win2008 server, I see the hostname the client uses for the connection sent in the TCP payload. If that's always the case, this seems plausible to do.
Here's an example from Jason for parsing the RDP data to get the username. You could modify that to parse the hostname/IP.
http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/25271/showtab/groupforums/Default.aspx
Aaron - kend
Altostratus
Did you use a sniffer to see the TCP payload? I am new to iRules, so how would I parse that portion of the payload?
Thanks,
Ken - Colin_Walker_12Historic F5 AccountYou could certainly write an iRule to expose the parts of the payload you want, but yes generally speaking some sort of traffic capturing tool is the quickest way to see what's going on. Wireshark, snort, etc.
Colin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
