add an anti-ddos rule
authorMartin Zobel-Helas <zobel@debian.org>
Thu, 9 May 2013 19:23:17 +0000 (21:23 +0200)
committerMartin Zobel-Helas <zobel@debian.org>
Thu, 9 May 2013 19:23:17 +0000 (21:23 +0200)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
modules/named/manifests/init.pp

index 1ce12c9..a2dde9d 100644 (file)
@@ -16,6 +16,12 @@ class named {
                ensure => running,
        }
 
+       @ferm::rule { 'dsa-bind-no-ddos-any':
+               domain      => '(ip ip6)',
+               description => 'Allow nameserver access',
+               rule        => 'proto udp dport 53 mod string from 32 to 64 algo bm hex-string \'|0000ff0001|\' jump DROP'
+       }
+
        @ferm::rule { 'dsa-bind':
                domain      => '(ip ip6)',
                description => 'Allow nameserver access',