2 munin::check { 'bind': }
4 site::aptrepo { 'bind-ratelimit':
6 #url => 'http://db.debian.org/debian-admin',
7 #suite => 'bind-ratelimit',
19 @ferm::rule { '00-dsa-bind-no-ddos-any':
21 description => 'Allow nameserver access',
22 rule => 'proto udp dport 53 mod string from 32 to 64 algo bm hex-string \'|0000ff0001|\' jump DROP'
25 if has_role('dns_primary') {
26 @ferm::rule { '01-dsa-bind-4':
28 description => 'Allow nameserver access',
29 rule => '&TCP_UDP_SERVICE_RANGE(53, ( $HOST_DNS_GEO_V4 $HOST_NAGIOS_V4 $HOST_RCODE0_V4 $HOST_EASYDNS_V4 $HOST_NETNOD_V4 5.153.231.21 ) )',
31 @ferm::rule { '01-dsa-bind-6':
33 description => 'Allow nameserver access',
34 rule => '&TCP_UDP_SERVICE_RANGE(53, ( $HOST_DNS_GEO_V6 $HOST_NAGIOS_V6 $HOST_RCODE0_V6 2001:41c8:1000:21::21:21 ) )',
37 @ferm::rule { '01-dsa-bind':
39 description => 'Allow nameserver access',
40 rule => '&TCP_UDP_SERVICE(53)'
44 @ferm::rule { 'dsa-bind-notrack':
46 description => 'NOTRACK for nameserver traffic',
48 chain => 'PREROUTING',
49 rule => 'proto (tcp udp) dport 53 jump NOTRACK'
52 @ferm::rule { 'dsa-bind-notrack-out':
54 description => 'NOTRACK for nameserver traffic',
57 rule => 'proto (tcp udp) sport 53 jump NOTRACK'
60 file { '/var/log/bind9':
67 file { '/etc/bind/named.conf.puppet-shared-keys':
69 content => template('named/named.conf.puppet-shared-keys.erb'),
72 notify => Service['bind9'],