Forum Discussion
hjadams123_1054
Dec 15, 2011Nimbostratus
Using IRules to Direct Remote Desktop Traffic?
- Pav_70755NimbostratusSomething like this could work?!
when CLIENT_ACCEPTED { if {[TCP::local_port] == 3389 and [HTTP:host] == "computer.termserver.com" }{ pool rdp_servers } else { pool default } }
- nitassEmployeeSomething like this could work?! i do not think so. rdp is not http, so HTTP::host is not valid.
- nitassEmployee
sorry it is duplicated.
- Pav_70755NimbostratusI've done something similar for SQL traffic and hostnames so you would need to create a VS listening on port 3389 and then it should work?
when CLIENT_ACCEPTED { if { [matchclass [IP::remote_addr] equals $::Wip_Server] } { pool SQL-Wip } elseif { [matchclass [IP::remote_addr] equals $::UAT_Server] } { pool SQL-UAT } elseif { [matchclass [IP::remote_addr] equals $::Live_Servers] } { although instead of re-directing traffic based on a tcp port you would just need to create datagroups with the IP addresses of the clients connecting via RDP and then the VS will only re-direct traffic to pools going to port 3389? So you would create seperate VS for the different terminal server hostnames? Pav pool SQL-Live } }
- Pav_70755NimbostratusI've done something similar for SQL traffic and hostnames so you would need to create a VS listening on port 3389 and then it should work?
when CLIENT_ACCEPTED { if { [matchclass [IP::remote_addr] equals $::Wip_Server] } { pool SQL-Wip } elseif { [matchclass [IP::remote_addr] equals $::UAT_Server] } { pool SQL-UAT } elseif { [matchclass [IP::remote_addr] equals $::Live_Servers] } {
- Pav_70755NimbostratusI've done something similar for SQL traffic and hostnames so you would need to create a VS listening on port 3389 and then it should work?
when CLIENT_ACCEPTED { if { [matchclass [IP::remote_addr] equals $::Wip_Server] } { pool SQL-Wip } elseif { [matchclass [IP::remote_addr] equals $::UAT_Server] } { pool SQL-UAT } elseif { [matchclass [IP::remote_addr] equals $::Live_Servers] } {
- Pav_70755NimbostratusI've done something similar for SQL traffic and hostnames so you would need to create a VS listening on port 3389 and then it should work?
when CLIENT_ACCEPTED { if { [matchclass [IP::remote_addr] equals $::Wip_Server] } { pool SQL-Wip } elseif { [matchclass [IP::remote_addr] equals $::UAT_Server] } { pool SQL-UAT } elseif { [matchclass [IP::remote_addr] equals $::Live_Servers] } {
- Pav_70755Nimbostratusdam duplicate posts!
- Pav_70755Nimbostratusdam duplicate posts!
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