Forum Discussion
Joe_Clark_45172
Mar 07, 2013Nimbostratus
iRule for source IP addresses
I am very new to iRules.
I need some help creating an iRule to make HTTP redirect based on the source IP address
when CLIENT_ACCEPTED {
if {([IP::addr [IP::client_addr] e...
Michael_Yates
Mar 07, 2013Nimbostratus
Hi Joe,
An HTTP::redirect is not valid in the CLIENT_ACCEPTED Event. You may want to consider moving to the HTTP_REQUEST Event.
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr] equals 10.70.64.0/20] } {
HTTP::redirect https://10.70.162.59
}
}
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