2 munin::check { 'bind': }
12 @ferm::rule { '00-dsa-bind-no-ddos-any':
14 description => 'Allow nameserver access',
15 rule => 'proto udp dport 53 mod string from 32 to 64 algo bm hex-string \'|0000ff0001|\' jump DROP'
18 if has_role('dns_primary') {
19 @ferm::rule { '01-dsa-bind-4':
21 description => 'Allow nameserver access',
22 rule => '&TCP_UDP_SERVICE_RANGE(53, ( $HOST_DNS_GEO_V4 $HOST_NAGIOS_V4 $HOST_RCODE0_V4 $HOST_EASYDNS_V4 $HOST_NETNOD_V4 ) )',
24 @ferm::rule { '01-dsa-bind-6':
26 description => 'Allow nameserver access',
27 rule => '&TCP_UDP_SERVICE_RANGE(53, ( $HOST_DNS_GEO_V6 $HOST_NAGIOS_V6 $HOST_RCODE0_V6 $HOST_NETNOD_V6 ) )',
30 @ferm::rule { '01-dsa-bind':
32 description => 'Allow nameserver access',
33 rule => '&TCP_UDP_SERVICE(53)'
37 @ferm::rule { 'dsa-bind-notrack':
39 description => 'NOTRACK for nameserver traffic',
41 chain => 'PREROUTING',
42 rule => 'proto (tcp udp) dport 53 jump NOTRACK'
45 @ferm::rule { 'dsa-bind-notrack-out':
47 description => 'NOTRACK for nameserver traffic',
50 rule => 'proto (tcp udp) sport 53 jump NOTRACK'
53 file { '/var/log/bind9':
60 file { '/etc/bind/named.conf.puppet-shared-keys':
62 content => template('named/named.conf.puppet-shared-keys.erb'),
65 notify => Service['bind9'],