Forum Discussion
sbadea_81872
Nimbostratus
Feb 03, 2009Restricting access using irule
Is it possible to create an irule to restrict access to a certain ip range/hosts? I created a data group list containing a number of hosts ip addresses; need some help to create the irule. Can it look...
hoolio
Cirrostratus
Feb 04, 2009Hi there,
That would work fine. Just make sure to use an address type datagroup (called a class in the bigip.conf).
when CLIENT_ACCEPTED {
if { [matchclass [IP::remote_addr] equals $::mylist] } {
pool my_pool
} else {
discard
}
}
Aaron
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