OP#561 try new fw settings
This commit is contained in:
@@ -6,17 +6,8 @@
|
||||
class confdroid_ssh::firewall::iptables (
|
||||
|
||||
) inherits confdroid_ssh::params {
|
||||
case $ssh_use_firewall {
|
||||
true, 'true', 'yes', '1': {
|
||||
$ssh_fw_ensure = 'present'
|
||||
}
|
||||
default: {
|
||||
$ssh_fw_ensure = 'absent'
|
||||
}
|
||||
}
|
||||
|
||||
firewall { "${ssh_fw_order}${ssh_fw_port} allow SSH on port ${ssh_fw_port}":
|
||||
ensure => $ssh_fw_ensure,
|
||||
ensure => $ssh_use_firewall,
|
||||
proto => 'tcp',
|
||||
source => $ssh_source_range,
|
||||
dport => $ssh_fw_port,
|
||||
|
||||
Reference in New Issue
Block a user