Skip to content
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

Bulk report when integrated with fail2ban #27

Open
Shadok opened this issue Jul 15, 2022 · 2 comments
Open

Bulk report when integrated with fail2ban #27

Shadok opened this issue Jul 15, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Shadok
Copy link

Shadok commented Jul 15, 2022

Hello,

Thanks for the project :)

Is there a way to bulk report when integrated with fail2ban ?
It would help if we had a way, using banaction, to tell abuseipdb-cli to fill a csv file, then we only would have to send it once a day using cron.

When there is a report each time there's a ban, i often get a 429 error.

Thanks.

@kristuff
Copy link
Owner

Hello,
Glad you like this project :)

The bulk report command exists, but expects an existing file and there is for now no command to prepare that csv file, sorry. I never reached limits so never used the bulk report in real life. But It's a good idea.

I do not promise anything. Thinking out loud, I could create:

  • a command to prepare blank csv file with headers in defined order
  • a command to fill in an existing csv file (same parameters and filter than report command) to use in banaction.

Duplicates will be handled by API.

End user will be responsible to send and erase/remove file using cron.

Supposes a file name as parameter or to be defined in config.

The only one "difficulty" will be to check and what to do when the file will reach limit (2MB or 10000 lines). Fill in as many files as needed?

Again I do not promise anything but feel free to comment if you think to something else.

@kristuff kristuff added the enhancement New feature or request label Jul 15, 2022
@Shadok
Copy link
Author

Shadok commented Jul 15, 2022

Sadly, i reach the limit in less than half a day, with two vps :)

Regarding the files, yes it would need to create more than one when the limit is reached.
Or the file could be submitted, then emptied to start from scratch for the next entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants