Forum Discussion
Pav_70755
Feb 20, 2012Nimbostratus
Accessing individual servers / nodes via a different port
I came accross a complete Irule which I used a few years ago which had this section in it:
when HTTP_REQUEST {
set srvr [findclass [TCP::local_port] $::TST_Individual_Servers " "]
...
Pav_70755
Feb 24, 2012Nimbostratus
I've now managed to get this to work and have even submitted the Irule
http://devcentral.f5.com/wiki/iRules.Accessing-individual-servers-nodes-through-different-ports.ashx?NoRedirect=1&NS=iRules
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [TCP::local_port] eq "80" } {
pool $default_pool
} else {
set srvr [findclass [TCP::local_port] $::TST_Individual_Servers " "]
if { $srvr ne "" } {
node $srvr 80
} else {
pool $default_pool
}
}
}
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