Forum Discussion
Chris_Miller
Altostratus
May 13, 2010Reject Traffic Unless Client has Certain Header or Client-IP
I'm looking for iRule assistance again! I'm handling traffic that comes through Akamai for a staging environment. Because this environment is staging, yet requires internet access, we only want traffi...
Michael_Yates
Nimbostratus
May 13, 2010Try this and see if it works out for you. I did something similar for a Maintenance Override Page.
Create a Data Group List of IP Addresses:
- LTM -> iRules -> Data Group List -> Create -> Type (Address)
Replace Data Group List Name in place of "ListOfPeoplesIPAddresses" and add the IP Addresses of the Developers / Testors that you want to allow to override the iRule.
when HTTP_REQUEST {
if { !([HTTP::header exists "True-Client-IP"]) or !([matchclass [IP::remote_addr] equals $::ListOfPeoplesIPAddresses]) } {
reject
}
}
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