Closed schadom closed 4 years ago
Hi, thanks for the nice feedback!
I had planned to include it some time, but am working on stability right now. The library was refactored the last two days and is now an official package on PyPI: https://pypi.org/project/netflow/
You're very welcome to experiment with IPFIX of course. Feel free to add a netflow.ipfix
module!
@schadom regarding your mentioned issue in manuelkasper/AS-Stats#88, you said
Currently I'm working on ip2as-lookups
I recently built a tool which mapped hostname
-> IPs
-> ASN
. Maybe you find something useful in the repo: https://github.com/bitkeks/fediverse-infra-analysis/blob/master/ip2asn.py (links to my related blog article in the README).
@bitkeks world is small it seems :-) I did the same already, a Python script which fetches the pfx2as data daily from http://data.caida.org/datasets/routing and then uses this to do IP2AS lookups. This is more accurate than relying on - for example ripe-delegated list or other sources - because this really has fresh prefix/origin-as data. as-name
is then resolved via whois.cymru.com by looking up the AS number.
This is already built-in into as-stats-python
which is using python-netflow-v9-softflowd. So we need IPFIX support next :-)
That's good to hear! Currently investigating the diff for v9 to IPFIX. I'd also try to adapt the collector to speak TCP. And SCTP, but that might be more of a case of learning purpose..
Maybe this also helps resolving #21
Another alternative would be to do IP2AS and AS-NAME lookups by querying whois.cymru.com
(https://asn.cymru.com) and store the results into a file. The downside of both methods is, that this won't work on installations without internet access.
is now an official package on PyPI: https://pypi.org/project/netflow/
thanks for the hint!
I will push the repo to github later on.
IPFIX is now included in the package and available to the collector. Could anyone of you test it in your setups? I'd then release a new version on PyPI with IPFIX. Thanks!
@bitkeks wow, that's amazing! thank you very much! will test later 👍
After adding some more tests, netflow v0.10.1 with IPFIX support is now published on PyPI: https://pypi.org/project/netflow/0.10.1/
Thanks for this great project. Any plans for supporting IPFIX?