Forum Discussion
GeoffSweet_3221
Nimbostratus
Jun 16, 2009Need to permit a list of hosts
So I am sure that I can create an iRule that simply blocks a single host via
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool my_pool
}
else {
...
hoolio
Cirrostratus
Jun 16, 2009Hi,
You can use a datagroup and the matchclass command (Click here😞
when CLIENT_ACCEPTED {
Check if client IP is not defined in the allowed_clients datagroup
if { not ([matchclass [IP::client_addr] equals $::allowed_clients]) } {
Drop further packets from the client
drop
}
}
If a client doesn't get dropped the VS's default pool will be used.
Aaron
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
