-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(inputs.ipset): Add metric for number of entries and individual IPs #16124
base: master
Are you sure you want to change the base?
feat(inputs.ipset): Add metric for number of entries and individual IPs #16124
Conversation
368af7d
to
28500db
Compare
…r of individual IPs
28500db
to
c562e98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @verybadsoldier for your contribution. I do have some comments in the code...
3b048ee
to
60e0d89
Compare
Thanks for the review comments! |
Should I resolve the conversation I think I have solved or is that up to you? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update @verybadsoldier! A few more comments...
e534444
to
7bb1170
Compare
* rename misnamed "initialized" parameter * remove "reset" function * remove "initSet" function * return err from addLine instead of adding to acc * rework switch block in addLine
7bb1170
to
44a78df
Compare
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
Thanks for bearing with me, I think I addressed all your latest comments now. |
Summary
Some automatic blacklist systems (like e.g. FireHOL) are feeding known malicious IP addresses regularly into ipsets to be blocked by firewalls (e.g. iptables/nftables). It would be useful to be able to track the number of entries of such ipsets over time.
As entries can use CIDR notation to target a range of IPs (e.g. 10.12.4.0/8) with a single ipset entry, it is also useful to see the number of actualy IPs affected by one ipset.
Checklist
Related issues
resolves #16103