From aa7b44fc6db3cb338b9aa830e547960a9904e329 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 7 Mar 2023 19:07:36 +0000 Subject: [PATCH] Merge http and https rules --- cookbooks/networking/recipes/default.rb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index dccba7c7a..831d7ce84 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -459,17 +459,7 @@ firewall_rule "accept-http" do source "net" dest "fw" proto "tcp:syn" - dest_ports "http" - rate_limit node[:networking][:firewall][:http_rate_limit] - connection_limit node[:networking][:firewall][:http_connection_limit] -end - -firewall_rule "accept-https" do - action :accept - source "net" - dest "fw" - proto "tcp:syn" - dest_ports "https" + dest_ports %w[http https] rate_limit node[:networking][:firewall][:http_rate_limit] connection_limit node[:networking][:firewall][:http_connection_limit] end -- 2.43.2