Forum Discussion
Mike_Graston_10
Nimbostratus
Sep 13, 2007allow specified IP addresses
All,
I have wrote this after looking through the code share and it doesn't seem too efficent. I would have like to create a class where as I could edit the class to allow either IP or networks access to the specific virtual server. I don't get the whole class thing. I have put toghther this rule to allow certain IPs and networks access to the app but would appreciate a sanity check to make sure I am going down the right path here.
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool pool-my-pool
}
elseif { [IP::addr [IP::client_addr] equals 11.10.10.10] } {
pool pool-my-pool
}
elseif { [IP::addr [IP::client_addr] equals 12.10.10.10] } {
pool pool-my-pool
}
elseif { [IP::addr [IP::client_addr] equals 13.10.10.0/24] } {
pool pool-my-pool
}
drop
}
- Mike_Graston_10
Nimbostratus
After looking at it I would like tobe able to use a data group to allow access where as I specify the ip/networks but can not figure out how my Irule will look.
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