]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #131
authorhno <>
Sat, 20 Oct 2001 15:32:51 +0000 (15:32 +0000)
committerhno <>
Sat, 20 Oct 2001 15:32:51 +0000 (15:32 +0000)
Added a recommended default rule to block access TO localhost

commented out by default as some people need to be able to access
localhost, or run in environments where DNS isn't used
(never_direct allow all).

src/cf.data.pre

index f8eaee83f185dd8a774978bd80a9f7ac1c8728c9..54db8a84ad1352540227cc9e75d5b8b8d06f686c 100644 (file)
@@ -1,6 +1,6 @@
 
 #
-# $Id: cf.data.pre,v 1.235 2001/10/19 23:49:36 hno Exp $
+# $Id: cf.data.pre,v 1.236 2001/10/20 09:32:51 hno Exp $
 #
 #
 # SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -1939,6 +1939,7 @@ NOCOMMENT_START
 acl all src 0.0.0.0/0.0.0.0
 acl manager proto cache_object
 acl localhost src 127.0.0.1/255.255.255.255
+acl to_localhost dst 127.0.0.0/8
 acl SSL_ports port 443 563
 acl Safe_ports port 80         # http
 acl Safe_ports port 21         # ftp
@@ -1988,8 +1989,13 @@ http_access deny !Safe_ports
 # Deny CONNECT to other than SSL ports
 http_access deny CONNECT !SSL_ports
 #
-# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
+# We strongly recommend to uncomment the following to protect innocent
+# web applications running on the proxy server who think that the only
+# one who can access services on "localhost" is a local user
+#http_access deny to_localhost
 #
+# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
+
 # And finally deny all other access to this proxy
 http_access deny all
 NOCOMMENT_END