Forum Discussion

Linux_Admin_too's avatar
Linux_Admin_too
Icon for Nimbostratus rankNimbostratus
Oct 26, 2017

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]"
}

1 Reply

  • Patrick_Chang_7's avatar
    Patrick_Chang_7
    Historic 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)?