Answer the question
In order to leave comments, you need to log in
How to limit traffic in nginx and block via fail2ban?
Hello!
Organized on the basis of seafile file storage, with proxying through nginx
And the task was to limit traffic.
More specifically, in terms of quantity.
According to the following rules
, 10gb per IP per day. If the limit is exceeded - blocking fail2ban, and sending a notification to the mail.
About fail2ban, these are just my assumptions :))
Perhaps you need to block traffic in general at the level of the entire server?
Answer the question
In order to leave comments, you need to log in
This needs to be logged, counted and limited not on the web server, but on the firewall.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question