1 class roles::security_tracker {
3 include apache2::proxy_http
4 include apache2::expires
6 apache2::module { 'cache_disk':
10 # security-tracker abusers
11 # 66.170.99.1 20180706 excessive number of requests
12 # 66.170.99.2 20180706 excessive number of requests
13 @ferm::rule { 'dsa-sectracker-abusers':
15 rule => "saddr (66.170.99.1 66.170.99.2) DROP",
19 ssl::service { 'security-tracker.debian.org':
20 notify => Exec['service apache2 reload'],
24 apache2::site { 'security-tracker.debian.org':
25 site => 'security-tracker.debian.org',
26 content => template('roles/apache-security-tracker.debian.org.conf.erb')
29 # traffic shaping http traffic
30 #@ferm::rule { 'dsa-security-tracker-shape':
33 # rule => "proto tcp sport 443 MARK set-mark 20",
36 file { '/usr/local/sbin/traffic-shape':
38 content => template('roles/security-tracker/traffic-shape'),
39 notify => Exec['/usr/local/sbin/traffic-shape'],
41 exec { '/usr/local/sbin/traffic-shape':