IP-ASN Rule
The IP-ASN rule matches traffic based on the Autonomous System Number (ASN) of the destination IP address.
IP-ASN
IP-ASN,13335,DIRECT
Rule matches if the destination IP address belongs to the specified ASN. This rule will trigger a DNS lookup if the hostname is a domain.
You can use the no-resolve option to skip DNS resolution for domain hostnames:
IP-ASN,13335,DIRECT,no-resolve
The AS prefix is optional: IP-ASN,AS13335,DIRECT is the same rule.
IP-ASN,UNKNOWN,DIRECT matches an address the ASN database has no entry for, in [Rule] and inside a rule set alike.
You may find the ASN for an IP range using services like bgp.he.net.
Common ASN Examples
| ASN | Organization |
|---|---|
| 13335 | Cloudflare |
| 15169 | |
| 16509 | Amazon (AWS) |
| 8075 | Microsoft |
| 32934 | |
| 54113 | Fastly |
Notice: The IP-ASN rule uses the built-in MaxMind GeoLite2 database for lookup, and ASN data may not always be accurate or up-to-date. Chute iOS, tvOS, Mac and Android all ship this database. On macOS a file at
~/Chute/Content/GeoLite2-ASN.mmdbtakes precedence over the built-in copy, so a newer database can be placed there — see File Locations (macOS). On Android, GeoIP Database in Settings updates it — from the default source or a URL you set — or imports one from a file.