vampire: Add special hook for DNS badness.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 4 Jun 2009 14:55:44 +0000 (15:55 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 4 Jun 2009 15:10:35 +0000 (16:10 +0100)
commit83610d8aa07970a77bcb27f0cffe9db38b09cc1d
tree60d047e58507f8926504107535a6c8eb0b93410a
parentd6dd88f5fe5213e6d5bdf944791e331edf283426
vampire: Add special hook for DNS badness.

There's a DDOS attack which works by sending DNS servers bogus requests
with spoofed source addresses.  The servers' error reports end up
bombarding the victim.

The `logtrawl' program maintains an ipset listing the known victim IP
addresses based on the DNS server's logs; here, we /drop/ matching
packets -- otherwise the ICMP fallout would do just as well as the DNS
errors at clobbering the victim.  Fortunately this isn't very evil,
since DNS over UDP is unreliable anyway.

It may be that `logtrawl' grows up to do more of this stuff later.
Makefile
local.mk
logtrawl [new file with mode: 0755]
vampire.m4