Forum Discussion
Chris_Howell_11
Nimbostratus
Aug 17, 2006How DO I exclude an IP Address
I looked through the forum and could not find an example that would work for me.
Below is my current rule for redirection:
when HTTP_REQUEST
{
log local0. "Redirecti...
Chad_Roberts_21
Nimbostratus
Aug 18, 2006One more spin...
I prefer Colin's approach above for a single address exclusion, but if you ever decide to add further addresses, here would be the logic for comparing the address to a group list. Just create a Data Group List of type Address in the iRules section in GTM for this to work. In the example, I have named the group list "address_exceptions".
when HTTP_REQUEST {
if { not [matchclass [IP::client_addr] equals $::address_exceptions] } {
log local0. "Redirection to HTTPS!"
HTTP::redirect "HTTPS://testcase.college.edu/test/"
}
}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
