pvaughan
Jun 24, 2013Nimbostratus
Irule to redirect traffic to a pool with node that is out on the internet
Grettings Dev central, I have been asked to write an Irule to do the following. Client connects to www.company.com and gets directed to pool configured in virtual server as normal. Client connects to www.company.com/alternate and get sent to alternate_pool which has a host that is out on the internet via external vlan. I need the F5 to proxy this connection and not just redirect to the different URL. I have the following Irule and was hoping someone could look at it and tell me if it will work and what should be added.
Thanks
Assign a pool and SNAT based on HTTP URI
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path ]] {
"/alternet*" {
select the pool and SNAT automap
pool alternet_pool
snat automap
}
}
}