Work around bug in squid 3 that was enabling reverse DNS lookups
authorTom Hughes <tom@compton.nu>
Thu, 14 Jun 2018 10:42:57 +0000 (11:42 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 14 Jun 2018 10:42:57 +0000 (11:42 +0100)
cookbooks/squid/templates/default/squid.conf.erb

index b5827e2..659b3c8 100644 (file)
@@ -113,6 +113,13 @@ cache_store_log none
 buffered_logs on
 client_db off
 strip_query_terms off
+<% if node[:squid][:version] == "3" -%>
+# Work around bug in squid 3 that causes log_fqdn to be
+# turned on by some of the (unused by us) default formats:
+# http://lists.squid-cache.org/pipermail/squid-users/2016-February/thread.html#8999
+url_rewrite_extras "%>a %un %>rm myip=%la myport=%lp"
+store_id_extras "%>a %un %>rm myip=%la myport=%lp"
+<% end -%>
 
 digest_generation on