All free tools Looked up on the VPSLake server

ASN Lookup

Enter an AS number, an IP address or part of a network name to get the autonomous system behind it and the full list of IPv4 and IPv6 prefixes it announces.

Find a network and its prefixes

BGP data
Try AS13335, AS16509, AS24940, AS55836 or a name such as ovh.

Answered from a database on the VPSLake server. No outside service is contacted for this lookup and what you type is not saved.

From ASN to firewall rule

One box accepts all three kinds of input and works out which one you meant.

  1. 1

    Enter what you know

    An AS number (AS24940 or just 24940), any public IP address, or a few letters of the network's name.

  2. 2

    Pick the right network

    A name search lists every matching AS, biggest first. Select one to open its details.

  3. 3

    Review the prefixes

    The result shows the network name, registry country, how many IPv4 and IPv6 prefixes it announces and the total IPv4 space.

  4. 4

    Copy them where you need them

    Copy the IPv4 or IPv6 list as one CIDR per line and feed it to ipset, nftables sets, UFW, a cloud security group or a CDN firewall rule.

What an autonomous system is

The internet is made of tens of thousands of independently run networks: ISPs, mobile operators, clouds, hosting companies, universities and large enterprises. Each one has an autonomous system number and uses BGP to tell its neighbours which IP blocks it can deliver traffic to.

Knowing the ASN behind an address tells you who really carries that traffic, which is often more useful than the city a geolocation database guesses.

Blocking or allowing a whole network

When abuse arrives from many addresses on one provider, an ASN's prefix list lets you act once instead of chasing single IPs. Load the list into an ipset or an nftables set and match the set in one rule, which stays fast even with thousands of entries.

The same list works the other way round: allow only your office ISP or your monitoring provider to reach SSH, RDP or an admin panel.

Why the country can look wrong

The country shown is where the AS is registered, not where each prefix is used. Global networks such as Cloudflare, Google or Amazon are registered in one country but announce space used on every continent. Use IP Lookup to locate a specific address.

Large networks and the list limit

The page lists up to 500 IPv4 and 500 IPv6 prefixes per network, which covers almost every hosting provider and ISP. For the very largest clouds the counts at the top show the full size, and the list notes when it was shortened.

Test before you block a whole ASN

Blocking a large ISP or cloud can cut off real customers, payment callbacks, monitoring and your own access. Add the rule with a log-only or short-lived action first, keep your management address on an allow-list above it, and refresh the prefix list regularly because networks change what they announce.

ASN Lookup FAQ

Type the IP into the box. The tool finds the prefix that contains it in the BGP table and opens the network that announces it, with all of its other prefixes. Your own ASN appears on the What Is My IP page.
Originally AS numbers ran up to 65,535. Since 2007 registries also hand out 32-bit numbers (up to about 4.29 billion), so newer networks often have six- or seven-digit ASNs such as AS213230. Both work the same way and the tool accepts either.
It is a block of addresses in CIDR notation. The number after the slash is how many leading bits are fixed: /24 is 256 IPv4 addresses, /22 is 1,024 and /16 is 65,536. IPv6 blocks are much larger; a single /48 contains 65,536 /64 subnets.
Big providers run separate networks for different regions, products or acquisitions, for example a cloud ASN and a legacy hosting ASN. Each is listed separately with its own prefix counts; open each one you need.
The address belongs to a block nobody is currently routing on the public internet. It may be reserved, held in stock by a registry or provider, or used only inside a private network.
Each visitor can run about 40 lookups in 10 minutes. That is plenty for normal research; if you reach it, wait a few minutes.
The database is rebuilt every week from iptoasn.com, which is generated from public BGP routing tables. The date of the last build is shown under each result.