Forum Discussion
How to extract autonomous_system_number from GeoIPISP.dat in an iRule
We are trying to create an iRule to redirect an LTM HTTP request based on AS number/autonomous_system_number. I tried using the "whereis" function but it does not have AS Number as an option just the ISP. According to Maxmind GeoIPISP.dat file includes the AS number. Is there a way extract AS Number besides using "whereis"?
when CLIENT_ACCEPTED {
log local0. "client IP address for connection is: [IP::client_addr] [whereis [IP::client_addr] isp]"
}
- Patrick_Chang_7Historic F5 Account
The Geo IP data comes from Digital Envoy now. I think you will have to open a support case to verify if AS data is actually available.
However, I question why you want to use AS data? AS data is very broad. If you are looking for specific types of web sites, you will get a lot of false positives. Why not use something much more specific like the IPI data feed that is available (and already categorized)?
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