Forum Discussion
mbamusa_59409
Oct 16, 2012Nimbostratus
Geolocation Irule
Hi All ;
i have the following irule :
when CLIENT_ACCEPTED {
if {[ whereis [IP::client_addr] country] eq US ] or [IP::addr [IP::client_addr] equals 10.7.10.1]}
...
Naumin_Dave_144
Nimbostratus
Hi Arie,
I tested this Irule as well. But it is exactly doing opposite of my requirement. Meaning For India Users, It is not opening and sending page with "Blocked!" and for other country users page is opening.. I am working on it but need your help too for doing same.
Naumin_Dave_144
Sep 03, 2015Nimbostratus
Thanks for your Instant reply... I have already checked location issue. I have two M/C. 1 with DNS address 4.2.2.2 and another with DNS address 121.242.190.211.
[root@ltm:Active:Standalone] config geoip_lookup 121.242.190.211
Will attempt to lookup ip '121.242.190.211'
No database specified.
opening database in /shared/GeoIP/F5GeoIP.dat
size of geoip database = 73530756, segments = 16252928, version = GEO-148 20150806 Build 1 Copyright (c) F5 Networks Inc All Rights Reserved
geoip_seek = 00f8da67
geoip record ip = 121.242.190.211
country_code = IN
country_name = India
region_name = Maharashtra
continent_code = AS
[root@ltm:Active:Standalone] config geoip_lookup 4.2.2.2
Will attempt to lookup ip '4.2.2.2'
No database specified.
opening database in /shared/GeoIP/F5GeoIP.dat
size of geoip database = 73530756, segments = 16252928, version = GEO-148 20150806 Build 1 Copyright (c) F5 Networks Inc All Rights Reserved
geoip_seek = 00fb6de1
geoip record ip = 4.2.2.2
country_code = US
country_name = United States
region_name = Colorado
continent_code = NA
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