X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/eae9091a7de8aa4ebd28957f9b3837ee2b7496ad..7dbac3592f79206cde96fe602cee8c54311d7ea5:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 16dd48269..09b431fd3 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -216,7 +216,7 @@ firewall_rule "limit-icmp-echo" do rate_limit "s:1/sec:5" end -%w(ucl ic bm aws).each do |zone| +%w[ucl ic bm aws].each do |zone| firewall_rule "accept-openvpn-#{zone}" do action :accept family :inet @@ -336,6 +336,7 @@ firewall_rule "accept-http" do 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 @@ -345,5 +346,6 @@ firewall_rule "accept-https" do dest "fw" proto "tcp:syn" dest_ports "https" + rate_limit node[:networking][:firewall][:http_rate_limit] connection_limit node[:networking][:firewall][:http_connection_limit] end