diff --git a/doc/_index.html b/doc/_index.html index b9c274a..f5b0f9a 100644 --- a/doc/_index.html +++ b/doc/_index.html @@ -73,6 +73,11 @@ +
# File 'manifests/firewall/iptables.pp', line 6
@@ -121,7 +130,7 @@
class confdroid_ssh::firewall::iptables (
) inherits confdroid_ssh::params {
- if $ssh_use_firewall {
+ if $ssh_use_firewall == true {
firewall { "${ssh_fw_order}${ssh_fw_port} allow SSH on port ${ssh_fw_port}":
ensure => 'present',
proto => 'tcp',
@@ -130,6 +139,15 @@ class confdroid_ssh::firewall::iptables (
jump => 'accept',
}
}
+ else {
+ firewall { "${ssh_fw_order}${ssh_fw_port} remove SSH on port ${ssh_fw_port}":
+ ensure => 'absent',
+ proto => 'tcp',
+ source => $ssh_source_range,
+ dport => $ssh_fw_port,
+ jump => 'accept',
+ }
+ }
}