Forum Discussion
F5 ASM - locally defined geolocation
When using Geolocation with ASM, is there any way to add locally defined geolocation data? Or, to override the F5's geolocation data?
thanks!
4 Replies
- Hannes_Rapp
Nimbostratus
Hello,
It's not an open format that you can freely edit, but a proprietary 3rd party service that F5 is using in BigIP. You can use it as-is, or not use it at all. Alternative GeoIP deployments in BigIP are not supported.
If it's of major importance, you can look into using a solution to over-ride the ASM-produced Syslog messages on an external device. On-appliance, I'm afraid there's nothing you can do.
- spud_141786
Nimbostratus
Specifically, I am looking for an "Ignore Geolocation" on a per IP / per prefix basis, similar to the IP Address Exceptions configuration shown below:
- Stanislas_Piro2
Cumulonimbus
Hi,
you can try this irule to unblock requests based on the geolocalisation violation and the IP address in a data group
when HTTP_REQUEST { set disable_geolocalisation 0 if {([class match [IP::client_addr] equals "DG_Client_IP" ])} { set disable_geolocalisation 1 } elseif {[info exists AllowedGroups]}{ set disable_geolocalisation 0 } } when ASM_REQUEST_DONE { if {$disable_geolocalisation} { if {[llength [ASM::violation names] == 1 && [lsearch -exact VIOL_GEOLOCATION [ASM::violation names]] == 1 } { ASM::unblock } } } - Paul_Love_70462
Nimbostratus
We are currently using a rule to redirect to sites local in EU and need to exempt items from geolocation processing. This only works for items you are processing in a Irule but might help
when HTTP_REQUEST {
rangesif [IP::addr [IP::client_addr]/30 equals 212.146.95.34] {return}
Whitlisted addressif { [IP::client_addr] equals "212.18.1.146" } {return}
set country [whereis [IP::client_addr] country] switch $country { "AL" - "BY" - "BA" - "BG" - "CZ" - "GB" - "GE" - "GR" - "HR" - "HU" - "IE" - "MD" - "ME" - "RO" - "RS" - "SK" - "TR" - "UA" { HTTP::respond 301 Location "(https://someplace.eu); event HTTP_REQUEST disable } }
I think you could add functionality to force a selection with something like this but I haven't tested it.
if { [IP::client_addr] == "Your.IP.Address"} { set [whereis [IP::client_addr]] "FR" }
or perhaps use a set country "FR" of course you could use other geo subdivisions as well
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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