Forum Discussion
JCMATTOS_41723
Nimbostratus
Dec 10, 2009HTTPS IP redirect?
We are using 9.4.7 and trying to create an irule that passess certain IP's thru w/o a redirect and redirects everyone else. I like to use one using a class/datagroup for easier IP entry, but I can't s...
The_Bhattman
Nimbostratus
Dec 10, 2009Hi JC,
Sure if you add the default pool in the VS resource tab. Then your irule can be rewritten as
when HTTP_REQUEST {
if { ![matchclass [IP::client_addr] equals $::NETgroup] } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Basically if it doesn't match anything is $::NETgroup then redirect. If does match then ignore the redirect and continue to the default pool
I hope this helps
Bhattman
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