Forum Discussion
The_Bhattman
Feb 06, 2010Nimbostratus
Hi Vijay,
One way you can do this is if you create a pool containing the virtual server. The iRule would look like the following:
when HTTP_REQUEST {
log local0. "The following is the URI: [HTTP::URI]"
switch -glob [string tolower [HTTP::uri]] {
"*services/TelephonyGatewayCheckSystemAvailable/1.0*" -
"*services/TelephonyGatewayNotifyTopUpAccount/1.0*" -
"*services/TelephonyGatewayNotifyBuyCLPPass/1.0*" -
"*services/TelephonyGatewayNotifyGetPassCount/1.0*" -
"*services/TelephonyGatewayNotifyLookupInvoice/1.0*" -
"*services/TelephonyGatewayNotifyGetAccountBalance/1.0*" -
"*services/TelephonyGatewayNotifyValidateLPN/1.0*" -
"*services/TelephonyGatewayNotifyPayInvoice/1.0*" {
HTTP::header replace Host "DAPPEXTVIP10-9906"
Turn on SNAT if the client and virtual this irule is applied on is on the same side of the Interface on the LTM
snat automap
}
}
I hope this helps
Bhattman