Forum Discussion
Erwin_25552
May 04, 2018Nimbostratus
Forwarding traffic to specific port
Hi All
Building a IRule were a specific path is directed towards a node / member with a specific port.
To do so I created a datagroup (string) where each path has a value (port)
So far the ...
Simon_Blakely
May 06, 2018Employee
Try the following - shifting the node command to the HTTP_REQUEST event
when HTTP_REQUEST {
set URI [string tolower [HTTP::uri]]
log local0. "Path is $URI"
if { [class match $URI starts_with ITSM_URL_Port] }
{
set port [class match -value [string tolower [HTTP::uri]] starts_with ITSM_URL_Port]
log local0. $URI selects $server_address:$port
node $server_address $port
} else {
log local0. "no match - [HTTP::uri] "
}
}
when LB_SELECTED {
set server_address = [LB::server addr]
}
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