diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-01-19 16:49:25 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-01-19 16:49:25 -0200 |
commit | 72cdc0884266bf7151033405878834d18ce0c05c (patch) | |
tree | c9c49e425595979155b21f9c5412228fec23bfd9 /manifests/subsystems | |
parent | f05b524d8cdac05b5672dd91d17ee474c306653b (diff) | |
download | puppet-nodo-72cdc0884266bf7151033405878834d18ce0c05c.tar.gz puppet-nodo-72cdc0884266bf7151033405878834d18ce0c05c.tar.bz2 |
Moving ssl DoS mitigation snippets to firewall.pp
Diffstat (limited to 'manifests/subsystems')
-rw-r--r-- | manifests/subsystems/firewall.pp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index 949a81d..a43662f 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -2,6 +2,16 @@ 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, |