From 5481c3619828d43bcbae77d2d56e74974c26a9a7 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Thu, 9 Apr 2026 14:32:06 +0200 Subject: [PATCH] OP#561 fix fw setting --- manifests/firewall/iptables.pp | 2 +- manifests/main/service.pp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/manifests/firewall/iptables.pp b/manifests/firewall/iptables.pp index d7b0dcf..42da410 100644 --- a/manifests/firewall/iptables.pp +++ b/manifests/firewall/iptables.pp @@ -15,7 +15,7 @@ class confdroid_ssh::firewall::iptables ( jump => 'accept', } } - if $ssh_use_firewall != true { + if $ssh_use_firewall == false { firewall { "${ssh_fw_order}${ssh_fw_port} remove SSH on port ${ssh_fw_port}": ensure => 'absent', proto => 'tcp', diff --git a/manifests/main/service.pp b/manifests/main/service.pp index 7d1a318..46d850f 100644 --- a/manifests/main/service.pp +++ b/manifests/main/service.pp @@ -7,9 +7,7 @@ class confdroid_ssh::main::service ( ) inherits confdroid_ssh::params { require confdroid_ssh::main::files require confdroid_ssh::selinux::semanage - if $ssh_use_firewall { - require confdroid_ssh::firewall::iptables - } + require confdroid_ssh::firewall::iptables service { $sshd_service: ensure => running,