Forum Discussion
ssam_138429
Nimbostratus
Jan 03, 2018Irule Help
Dears,
Need some help on the F5 configuration. The requirements are:
1.Do not apply URI redirect if the request is coming from a particular subnet.
2.Apply URI redirect otherwise.
Tried the...
Lee_Sutcliffe
Nacreous
Jan 03, 2018Morning, please try this iRule, it will redirect if the client IP address is not within the 10.1.2.0/24 range.
when HTTP_REQUEST {
if {!([IP::addr[IP::client_addr] equals 10.1.2.0/24])} {
HTTP::redirect "http://[HTTP::host]/cams"
}
}
Please see the following link for IP::addr syntax https://devcentral.f5.com/wiki/iRules.IP__addr.ashx
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