class firewall {
class { 'shorewall': }
- # SSL computational DoS mitigation
- # See http://vincent.bernat.im/en/blog/2011-ssl-dos-mitigation.html
- $firewall_ssl_ratelimit = $firewall_ssl_ratelimit ? {
- '' => $firewall_global_ssl_ratelimit ? {
- '' => '-',
- default => $firewall_global_ssl_ratelimit,
- },
- default => $firewall_ssl_ratelimit,
- }
-
$rfc1918 = $shorewall_local_net ? {
true => true,
false => false,
order => 102,
}
+ # SSL computational DoS mitigation
+ # See http://vincent.bernat.im/en/blog/2011-ssl-dos-mitigation.html
shorewall::rule { 'https':
action => 'HTTPS/ACCEPT',
source => 'net',
destination => '$FW',
proto => '-',
destinationport => '-',
- ratelimit => "$firewall_ssl_ratelimit",
+ ratelimit => extlookup("firewall_ssl_ratelimit", '-'),
order => 103,
}
if $type == 'vserver' {
include nagios::target::fqdn
- nagios::service::ping { "$fqdn": }
+ nagios::service::ping { "$fqdn": }
}
if $type == 'host' or $type == 'personal' {