VJ_96387
Mar 08, 2010Nimbostratus
URI Redirection
Hello all,
Need your help again!!!
I have a portal which has a multiple alias names and this is registered with external DNS servers. This portal can be accessed via internet.
The requests get hits the External VIP on the F5;. which has a 2 ISA servers in a pool. The ISA servers translate the request from .com to .corp, where the traffic is now passed to the internal f5 pair. (PS I use SNAT on the internal f5 pair)
I now need to redirect the request based on the original inputs to the pools based on the user input which inturn passes the traffic to the required portal.
My issue is that despite all the configs incl IRule, users are unable to access the portals.
THis is how it should work:
The users access the portal from internet using ped-a.abc.com or ped-b.abc.com... ped-d.abc.com; This traffic must be Translated to ped-a.abc.corp; ped-b.abc.corp...ped-d.abc.corp using IRULE on the internal f5 and ISA Servers.
I have done the necessary configs, but am unable to get this working. My setup is below. please help me to get this working.
Extenal VIP : 1.2.3.4
Pool: ISA_SERVERS
MEMBERS: 3.4.5.6:80 & 3.4.5.7 :80
Internal VIP:
ped-a.abc.corp : 10.10.10.10:80
pool: pool-Ped-a
MEMBERS: 192.168.1.100:54700
ped-b.abc.corp : 11.11.11.11:80
pool: pool-Ped-b
MEMBERS: 192.168.1.101:51100
ped-c.abc.corp : 12.12.12.12:80
pool: pool-Ped-c
MEMBERS: 192.168.1.200:51110
ped-d.abc.corp : 120.120.120.120:80
pool: pool-Ped-d
MEMBERS: 192.168.1.200:54700
IRULE (INTERNAL):
RULE NAME: ped_iRule
SHORT DESC: Redirects for ped portals
VERSION: 1.0
LONG DESC: Redirects for electronic ped portal.
when HTTP_REQUEST {
set H [HTTP::host]
set U [HTTP::uri]
if { ![regexp {.abc.corp$} $H] and ![regexp {.abc.com$} $H] } {
log "$H$U Redirect should be http://$H.abc.corp$U"
set H "$H.abc.corp"
}
if {[string equal "/" $U] and [string match "ped*.abc.corp" $H]}{
set U "/webdynpro/dispatcher/abc.com/pedwebform/pedWebForm"
}
HTTP::redirect "http://$H$U"
}
Awaiting your response.