From 0bbf95c137e2fc7e7f909bb8f07fc97d50ba3c09 Mon Sep 17 00:00:00 2001 From: Haroon Rafique Date: Tue, 26 Jul 2022 13:27:31 -0400 Subject: [PATCH] allow persistence of firewall rules for Suse --- lib/puppet/util/firewall.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/puppet/util/firewall.rb b/lib/puppet/util/firewall.rb index 666347e..8761d18 100644 --- a/lib/puppet/util/firewall.rb +++ b/lib/puppet/util/firewall.rb @@ -241,6 +241,12 @@ module Puppet::Util::Firewall ['/bin/sh', '-c', '/usr/sbin/ip6tables-save > /etc/iptables/ip6tables.rules'] end end + when :Suse + case proto.to_sym + when :IPv4 + ['/bin/sh', '-c', '/usr/sbin/iptables-save > /etc/sysconfig/iptables'] + end + end # Catch unsupported OSs from the case statement above. if cmd.nil? -- 2.45.2