]> git.ipfire.org Git - thirdparty/xtables-addons.git/commit
xt_asn: new module
authorD. Stussy <d.stussy@yahoo.com>
Sun, 10 Mar 2019 06:45:11 +0000 (06:45 +0000)
committerJan Engelhardt <jengelh@inai.de>
Thu, 23 Jun 2022 10:55:06 +0000 (12:55 +0200)
commitcd778808cd0793013b116de10e10c1fa9523d37d
treef4afbf3c15dbc75bded97e3123c560f0e6de0009
parentb6611c54f2b547b61941fd70e87d8044bf236e21
xt_asn: new module

Recevied by private mail.
Date: Thu, 7 Mar 2019 00:49:16 +0000 (UTC)

"""
New feature: In thinking about various blocking of IP address groups,
I came to the conclusion that blocking by ASN may be a good
choice. Therefore, taking the lead of the geoip match module,
attached is what I have for an ASN matching module. I assume that the
support files generated will be the same format as those used for the
geoip match. [...]

I bet someone might want the ASNs on the same rule to be sorted in
numerical order. However, geoip didn't do that with country names, so
I didn't bother.

Matching by ASN may be "better" than matching by an ipset of all one
entities IP blocks (assuming that all of an entity's ASNs are known
if multiples exist). Of course, I would like to see this module make
it into your next release (3.3).  ;-)
"""

Date: Sun, 10 Mar 2019 06:45:11 +0000 (UTC)

"""
I think I got everything including the documentation and build script
this time. [...]

I noticed that some other people tried to write similar patches (saw
one on github), but those have things that were missed.

I'm running the module on my colocated server now, and it's working
well. Already blocked ASN 4134 (a botnet-infected Chinese net) a few
hundred times in the first hour.
"""
15 files changed:
Makefile.am
asn/.gitignore [new file with mode: 0644]
asn/Makefile.am [new file with mode: 0644]
asn/xt_asn_build [new file with mode: 0755]
asn/xt_asn_build.1 [new file with mode: 0644]
asn/xt_asn_dl [new file with mode: 0755]
asn/xt_asn_dl.1 [new file with mode: 0644]
asn/xt_asn_fetch [new file with mode: 0755]
extensions/Kbuild
extensions/Mbuild
extensions/libxt_asn.c [new file with mode: 0644]
extensions/libxt_asn.man [new file with mode: 0644]
extensions/xt_asn.c [new file with mode: 0644]
extensions/xt_asn.h [new file with mode: 0644]
mconfig