Forum Discussion
Saib_175162
Nimbostratus
Oct 26, 2014Irule Request
Hi,
I have a Big IP LTM 3600. I want to build an irule with the following requirements,
1- Allow IPs only from America and India.
2- Allow only certain IP addresses from India
3- Allow 10.0...
kunjan_118660
Cumulonimbus
Oct 26, 2014https://devcentral.f5.com/wiki/irules.whereis.ashx
Try this
when CLIENT_ACCEPTED {
set CC [whereis [IP::client_addr] country]
if { !([IP::addr [IP::client_addr] equals 10.0.0.0/8 ]
or $CC equals "US" or $CC equals "IN" ) } {
drop
}
}
- Saib_175162Oct 26, 2014
Nimbostratus
Hi Kunjan, many thanks for your response. Sorry I am very new to this. I have a list of IPs from india that I need to allow. I can put this into an address group. Then how would I call this group into the above irule. Thanks again. BR Mazhar
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