aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-12-16 20:20:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-12-16 20:20:53 -0200
commit30a4593a05a09b669a9cd8fff4318779a532b123 (patch)
tree6d29732b54f3e845d3bb355491df3200315e043e
parent2c9e690d90e8fda3ad9b9ed7dc755c198127df7d (diff)
downloadpuppet-sshd-30a4593a05a09b669a9cd8fff4318779a532b123.tar.gz
puppet-sshd-30a4593a05a09b669a9cd8fff4318779a532b123.tar.bz2
Introducing perfect forward secrecy for SSH
-rw-r--r--manifests/init.pp3
-rw-r--r--templates/sshd_config/Debian_lenny.erb4
2 files changed, 7 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index c0a8cd5..ede4fdc 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -217,6 +217,9 @@ class sshd {
case $sshd_shared_ip {
'': { $sshd_shared_ip = "no" }
}
+ case $sshd_perfect_forward_secrecy {
+ '': { $sshd_perfect_forward_secrecy = "no" }
+ }
include sshd::client
diff --git a/templates/sshd_config/Debian_lenny.erb b/templates/sshd_config/Debian_lenny.erb
index 5f7afb4..3e4d1f7 100644
--- a/templates/sshd_config/Debian_lenny.erb
+++ b/templates/sshd_config/Debian_lenny.erb
@@ -190,3 +190,7 @@ PrintMotd no
<%= sshd_tail_additional_options %>
<%- end %>
+<%- if sshd_perfect_forward_secrecy.to_s == 'yes' then -%>
+Ciphers aes256-ctr
+MACs hmac-sha1
+<%- end %>