]> git.openstreetmap.org Git - chef.git/commitdiff
Add shorewall stoppedrules support
authorGrant Slater <git@firefishy.com>
Wed, 25 Aug 2021 16:52:40 +0000 (17:52 +0100)
committerGrant Slater <git@firefishy.com>
Wed, 25 Aug 2021 16:52:40 +0000 (17:52 +0100)
cookbooks/networking/recipes/default.rb
cookbooks/networking/templates/default/shorewall-stoppedrules.erb [new file with mode: 0644]

index 41daefe7eacc378af9bf812c82063a7221b0796e..c76d47e3e120bf91b4478b5f7e8d909dfeddf012 100644 (file)
@@ -443,6 +443,14 @@ template "/etc/shorewall/rules" do
   notifies :restart, "service[shorewall]"
 end
 
+template "/etc/shorewall/stoppedrules" do
+  source "shorewall-stoppedrules.erb"
+  owner "root"
+  group "root"
+  mode "644"
+  notifies :restart, "service[shorewall]"
+end
+
 if node[:networking][:firewall][:enabled]
   service "shorewall" do
     action [:enable, :start]
diff --git a/cookbooks/networking/templates/default/shorewall-stoppedrules.erb b/cookbooks/networking/templates/default/shorewall-stoppedrules.erb
new file mode 100644 (file)
index 0000000..276e00a
--- /dev/null
@@ -0,0 +1,2 @@
+ACCEPT -       -
+ACCEPT -       $FW