Re:Zerigo DNS services down for 6+ hours due to massive DDoS
by gabriel-samfia on Thursday August 02, 2012 @05:22AM
(#4327948)
We've seen the same kind of attack. We ended up limiting our DNS resolvers only to our own prefixes. It's a simple ACL in bind that allows recursion (domains your DNS server is not authoritative for), only to our subnets.
Re:Zerigo DNS services down for 6+ hours due to massive DDoS
by dedene on Monday July 23, 2012 @12:03PM
(#4281619)
Do you mind sharing the script / code to accomplish that? (some gist somewhere) I'm seeing a lot of these sort of things on our servers too..
Re:Zerigo DNS services down for 6+ hours due to massive DDoS
by metalruler on Monday July 23, 2012 @12:10PM
(#4281652)
It really is a disgusting hack, and specific to FreeBSD. It does need to be a bit more sophisticated than "block an IP if it floods me" because as it is now someone can simply spoof the IP of an ISP's DNS server and effectively firewall them, blocking their users from being able to resolve the domain names I'm hosting.
I can give you one tip to get you started: if you're running named, you can enable logging of every query, something like (hope this formats ok) :
logging {
channel query_logging {
file "/var/log/named/querylog"
versions 3 size 100M;
print-time yes; // timestamp log entries
};
category queries {
query_logging;
};
};
I ended up hacking something together to firewall any IPs which sent more than 1000 requests in a short period of time.