]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
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 1ce12c90778934317edbd658c143f627864a8575..a2dde9d3c863e7c651e2a567d7140da9efea142f 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',