aboutsummaryrefslogtreecommitdiff
path: root/templates/sshd_config/FreeBSD.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sshd_config/FreeBSD.erb')
-rw-r--r--templates/sshd_config/FreeBSD.erb9
1 files changed, 4 insertions, 5 deletions
diff --git a/templates/sshd_config/FreeBSD.erb b/templates/sshd_config/FreeBSD.erb
index 4e4329a..6714003 100644
--- a/templates/sshd_config/FreeBSD.erb
+++ b/templates/sshd_config/FreeBSD.erb
@@ -20,14 +20,13 @@
<%= sshd_head_additional_options %>
<%- end %>
-<%- unless sshd_port.to_s.empty? then -%>
-<%- if sshd_port.to_s == 'off' then -%>
+# What ports, IPs and protocols we listen for
+<%- sshd_ports.each do |port| -%>
+<%- if port.to_s == 'off' then -%>
#Port -- disabled by puppet
<% else -%>
-Port <%= sshd_port -%>
+Port <%= port %>
<% end -%>
-<%- else -%>
-Port 22
<%- end -%>
#AddressFamily any