Match a packet by its source or destination autonomous system number (ASN).

[!] --src-asn, --source-number number[,number...]
    Match packet coming from (one of) the specified ASN(s)

[!] --dst-asn, --destination-number country[,country...]
    Match packet going to (one of) the specified ASN(s)

The extra files you will need are the binary database files. They are generated
    from a ASN-subnet database with the asn_build_db.pl tool that is shipped with the source package, and which should be available in compiled packages in /usr/lib(exec)/xtables-addons/. The first command retrieves CSV files from MaxMind, while the other two build packed bisectable range files:

mkdir -p /usr/share/xt_asn; cd /tmp; $path/to/xt_asn_dl;

$path/to/xt_asn_build -D /usr/share/xt_asn

The shared library is hardcoded to look in these paths, so use them.