Is it possible to use iptables on Ubuntu to limit brute force attacks for certain URLs? Basically I want to detect where user calls same url over and over again and drop his connection or somehow slow down if it happens too often.
Asked
Active
Viewed 182 times
2 Answers
0
The netfilter/iptables system doesn't really work at the URL level so it's probably not the right tool for the job.
You could use the iptables rate limiting module but that could be difficult to tune.
You may get some mileage out of a tool like fail2ban. That monitors log files and reacts as you determine.
![](../../users/profiles/9517.webp)
user9517
- 114,104
- 20
- 206
- 289