Found my webserver getting hammered with bogus requests due to what seems like bad DNS pointing to my IP address. Pretty much seems like a DOS attack. Not sure if this is being done intentionally or by mistake.
Obvious solution is to change IP but if it is being done malicious, the attacker will just change the DNS record to point to my new IP. Trying to figure out a better solution.
I wrote a perl script that scans my apache log for these bad requests and then adds them into a custom IPFILTER ruleset to block the IPs and I put this script on a 5 minute cron but it is a pretty kludgy fix.
Any elegant solutions for something like this?
Obvious solution is to change IP but if it is being done malicious, the attacker will just change the DNS record to point to my new IP. Trying to figure out a better solution.
I wrote a perl script that scans my apache log for these bad requests and then adds them into a custom IPFILTER ruleset to block the IPs and I put this script on a 5 minute cron but it is a pretty kludgy fix.
Any elegant solutions for something like this?