Forum Discussion
Khan_2739
Nimbostratus
Sep 30, 2014HELP in writing the irule
i want to allow IP's only from India and Australia to hit my Virtual IP.
All IP's from Australia,
but only specific IP's from India.
I also want to give access to our LAN users on 172...
Khan_2739
Nimbostratus
Oct 01, 2014I have done this rule, but specific all IP from India are getting allowed.
Irule name: ALLOWED_IPs_INDIA
when CLIENT_ACCEPTED {
Get the country client IP
switch [whereis [IP::client_addr] country] {
"AUS" -
"IN" {
set allowed 0
}
default { set allowed 1 }
}
} when HTTP_REQUEST { if { not ( [class match [IP::client_addr] equals ALLOWED_IPs_INDIA] ) } { reject } }
Address group: ALLOWED_IPs_INDIA
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