- file {
- "/etc/apache2/conf.d/ressource-limits":
- content => template("apache2/ressource-limits.erb"),
- require => Package["apache2"],
- notify => Exec["apache2 reload"];
- "/etc/apache2/conf.d/security":
- source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/security",
- "puppet:///apache2/common/etc/apache2/conf.d/security" ],
- require => Package["apache2"],
- notify => Exec["apache2 reload"];
- "/etc/apache2/conf.d/local-serverinfo":
- source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/local-serverinfo",
- "puppet:///apache2/common/etc/apache2/conf.d/local-serverinfo" ],
- require => Package["apache2"],
- notify => Exec["apache2 reload"];
- "/etc/apache2/conf.d/server-status":
- source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/conf.d/server-status",
- "puppet:///apache2/common/etc/apache2/conf.d/server-status" ],
- require => Package["apache2"],
- notify => Exec["apache2 reload"];
-
- "/etc/apache2/sites-available/default-debian.org":
- source => [ "puppet:///apache2/per-host/$fqdn/etc/apache2/sites-available/default-debian.org",
- "puppet:///apache2/common/etc/apache2/sites-available/default-debian.org" ],
- require => Package["apache2"],
- notify => Exec["apache2 reload"];
-
- "/etc/logrotate.d/apache2":
- source => [ "puppet:///apache2/per-host/$fqdn/etc/logrotate.d/apache2",
- "puppet:///apache2/common/etc/logrotate.d/apache2" ];
-
- "/srv/www":
- mode => 755,
- ensure => directory;
- "/srv/www/default.debian.org":
- mode => 755,
- ensure => directory;
- "/srv/www/default.debian.org/htdocs":
- mode => 755,
- ensure => directory;
- "/srv/www/default.debian.org/htdocs/index.html":
- content => template("apache2/default-index.html");
-
- # sometimes this is a symlink
- #"/var/log/apache2":
- # mode => 755,
- # ensure => directory;
- }
-
- exec { "apache2 reload":
- path => "/etc/init.d:/usr/bin:/usr/sbin:/bin:/sbin",
- refreshonly => true,
- }
+ mod recent name HTTPDOS update seconds 1800 jump log_or_drop;
+ mod hashlimit hashlimit-name HTTPDOS hashlimit-mode srcip hashlimit-burst 600 hashlimit 30/minute jump ACCEPT;
+ mod recent name HTTPDOS set jump log_or_drop'
+ }
+ @ferm::rule { "dsa-http":
+ prio => "23",
+ description => "Allow web access",
+ rule => "proto tcp dport (http https) jump http"
+ }
+ }
+ default: {
+ @ferm::rule { "dsa-http":
+ prio => "23",
+ description => "Allow web access",
+ rule => "&SERVICE(tcp, (http https))"
+ }
+ }
+ }
+ @ferm::rule { "dsa-http-v6":
+ domain => "(ip6)",
+ prio => "23",
+ description => "Allow web access",
+ rule => "&SERVICE(tcp, (http https))"
+ }