X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a31229e5ab1291d79d14ac9bf4ad210db4895cea..cc6b107e2e4aa6d7b882d4fb626a1a80a41104c8:/cookbooks/networking/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index e23b1dae3..1774b637b 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -131,12 +131,6 @@ end package "shorewall" -service "shorewall" do - action [:enable, :start] - supports :restart => true - status_command "shorewall status" -end - template "/etc/default/shorewall" do source "shorewall-default.erb" owner "root" @@ -196,6 +190,12 @@ template "/etc/shorewall/rules" do notifies :restart, "service[shorewall]" end +service "shorewall" do + action [:enable, :start] + supports :restart => true + status_command "shorewall status" +end + template "/etc/logrotate.d/shorewall" do source "logrotate.shorewall.erb" owner "root" @@ -221,8 +221,8 @@ end source zone dest "fw" proto "udp" - dest_ports "1194:1196" - source_ports "1194:1196" + dest_ports "1194:1197" + source_ports "1194:1197" end end @@ -244,12 +244,6 @@ end unless node.interfaces(:family => :inet6).empty? package "shorewall6" - service "shorewall6" do - action [:enable, :start] - supports :restart => true - status_command "shorewall6 status" - end - template "/etc/default/shorewall6" do source "shorewall-default.erb" owner "root" @@ -309,6 +303,12 @@ unless node.interfaces(:family => :inet6).empty? notifies :restart, "service[shorewall6]" end + service "shorewall6" do + action [:enable, :start] + supports :restart => true + status_command "shorewall6 status" + end + template "/etc/logrotate.d/shorewall6" do source "logrotate.shorewall.erb" owner "root"