]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tilecache/recipes/default.rb
tilecache: tweak shorewall ICP UDP rule
[chef.git] / cookbooks / tilecache / recipes / default.rb
index 647e0dc0731a714ef76f6b1f9341b62a8853f712..b6db40164f1513748f442096abc60030fa13b8e0 100644 (file)
@@ -46,7 +46,16 @@ tilecaches.each do |cache|
       dest "fw"
       proto "udp"
       dest_ports "3130"
-      source_ports "1024:"
+      source_ports "3130"
+    end
+    firewall_rule "accept-squid-icp-reply" do
+      action :accept
+      family "inet"
+      source "fw"
+      dest "net:#{address}"
+      proto "udp"
+      dest_ports "3130"
+      source_ports "3130"
     end
   end
 end