Forum Discussion
dan02_161715
Nimbostratus
Jul 02, 2014iRule of HTTP::header insert with class match
I have an iRule set so:
when HTTP_REQUEST {
HTTP::header insert CLIENT_IP_ADDRESS [IP::client_addr]
}
I need that when obtain the IP make a matchclass to validate whether this within the group, ...
Kevin_Stewart
Employee
Jul 02, 2014Try this:
when CLIENT_ACCEPTED {
if { not ( [class match [IP::client_addr] equals my_allow_list] ) } {
drop
}
}
when HTTP_REQUEST {
HTTP::header insert CLIENT_IP_ADDRESS [IP::client_addr]
}
where "my_allow_list" is an address-based data group.
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