Forum Discussion
Dormelchen_2406
Aug 15, 2014Nimbostratus
GeoIP Irule - what to do
hello together,
we have an virtual server with his irule.
Now we only want to allow access to this pool / server from poland and germany.
1) how can i solve this ?
2) the irule:
when H...
IheartF5_45022
Aug 15, 2014Nacreous
I don't think 'if' will work like that but you have the right idea about using CLIENT_ACCEPTED. Try - this - 'if' would work too, but I just like 'switch';-
when CLIENT_ACCEPTED {
switch [whereis [IP::client_addr] country] {
"DE" -
"PL" {
Allowed countries - do nothing
}
default {
reject
}
}
}
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