summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/templates/squid/squid.conf.epp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/templates/squid/squid.conf.epp')
-rw-r--r--sitemodules/profiles/templates/squid/squid.conf.epp15
1 files changed, 14 insertions, 1 deletions
diff --git a/sitemodules/profiles/templates/squid/squid.conf.epp b/sitemodules/profiles/templates/squid/squid.conf.epp
index 66cc63f..da39138 100644
--- a/sitemodules/profiles/templates/squid/squid.conf.epp
+++ b/sitemodules/profiles/templates/squid/squid.conf.epp
@@ -1,3 +1,9 @@
+<%- | Array[String] $acls = [],
+ Array[String] $http_access = [],
+ |-%>
+# THIS FILE IS MANAGED BY PUPPET, MANUAL CHANGES WILL BE OVERWRITTEN AT THE
+# NEXT PUPPET RUN.
+#
# WELCOME TO SQUID 3.5.23
# ----------------------------
#
@@ -978,6 +984,10 @@
#acl localnet src fc00::/7 # RFC 4193 local private network range
#acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
+<%- $acls.each |acl| { %>
+acl <%= $acl %>
+<% } -%>
+
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
@@ -1178,7 +1188,7 @@ http_access deny manager
# We strongly recommend the following be uncommented to protect innocent
# web applications running on the proxy server who think the only
# one who can access services on "localhost" is a local user
-#http_access deny to_localhost
+http_access deny to_localhost
#
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
@@ -1189,6 +1199,9 @@ http_access deny manager
# from where browsing should be allowed
#http_access allow localnet
http_access allow localhost
+<%- $http_access.each |access_rule| { %>
+http_access <%= $access_rule %>
+<% } -%>
# And finally deny all other access to this proxy
http_access deny all