Forum Discussion
hc_andy_35682
Nimbostratus
May 07, 2010VS Redirection while maintaining Source IP
Hi All,
I need help with an iRule.
We have two VIPS set up on the LTM.
1/ PROXY_VIP
2/ WEBMAIL_VIP
We have schools that use the PROXY_VIP for all HTTP/HT...
Michael_Yates
Nimbostratus
May 07, 2010You should do a Redirect based on your compare, since the Client IP Address (Schoo's IP Address) will remain the same after the redirect.
After the redirect they will persist to the Webmail Virtual Server using the settings applied to that Virtual Server.
when HTTP_REQUEST {
IP::client_addr explained at http://devcentral.f5.com/Wiki/default.aspx/iRules.IP__client_addr
if { [IP::addr [IP::client_addr] equals xxx.xxx.xxx.xxx] } {
HTTP::redirect "https://webmail.domain.com"
}
}
If you decide to do some type of validation on the Webmail VIP, based on the Client IP Address coming from a specific set of Subnets, you can base that iRule on this one an modifiy the compare. See this as a reference:
http://devcentral.f5.com/Wiki/default.aspx/iRules.IP__addr
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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