# Squid listens on the loopback and on # the internal interface (8080 port) # If you run Squid on a dual-homed machine with an internal # and an external interface we recommend you to specify the # internal address:port in http_port. # This way Squid will only be visible on the internal address. # transparent to work with PF # In Squid 3.1+ the transparent option has been split. # Use 'intercept to catch PF packets. # # http_port 127.0.0.1:8080 transparent http_port 127.0.0.1:8080 intercept # http_port 172.18.0.1:8080 transparent http_port 172.18.0.1:8080 intercept # Words defined in this tag when matched in the URLs, # directs squid not to query caches. # For example dynamic content - php or asp pages. hierarchy_stoplist cgi-bin ? php asp acl QUERY urlpath_regex cgi-bin \? no_cache deny QUERY # Specify the amount of RAM, to be used for caching the # so called: In-Transit objects, Hot Objects, # Negative-Cached objects. cache_mem 32 MB # If a file size is less than - 100 MB, # squid will place it in cache maximum_object_size 100 MB # Define the path to cache directory where all objects # which are to be cached are stored: # 1024 - is the amount of disk space (MB) # to use under /usr/local/squid/cache directory # 16 - is the number of first-level subdirectories # which will be created under the # /usr/local/squid/cache directory # 256 - is the number of second-level # subdirectories which will be created under # each first-level directory # Specify the amount of RAM, to be used for caching the # so called: In-Transit objects, Hot Objects, # Negative-Cached objects. cache_mem 32 MB # If a file size is less than - 100 MB, # squid will place it in cache maximum_object_size 100 MB # Define the path to cache directory where all objects # which are to be cached are stored: # 1024 - is the amount of disk space (MB) # to use under /usr/local/squid/cache directory # 16 - is the number of first-level subdirectories # which will be created under the # /usr/local/squid/cache directory # 256 - is the number of second-level # subdirectories which will be created under # each first-level directory cache_dir ufs /usr/local/squid/cache 1024 16 256 # To disable, enter "none". There are not really # utilities to analyze this data, so you can safely # disable it. cache_store_log none # Log client request activities to the # /usr/local/squid/logs/access.log file # using the squid log format access_log /usr/local/squid/logs/access.log squid logfile_rotate 2 auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern (cgi-bin|\?) 0 0% 0 refresh_pattern . 0 20% 4320 # Define access control lists # acl all is defined by default in version 3.0 STABLE acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 # Don't write netmask 172.18.0.0/12 in 3.0STABLE # RFC1918 internal network acl localnet src 172.18.0.1-172.18.0.254 acl SSL_ports port 443 # does not work with pf rdr # browser must be aware of proxy if 443 shall be # proxied acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https # acl Safe_ports port 70 # gopher # acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports # acl Safe_ports port 280 # http-mgmt # acl Safe_ports port 488 # gss-http acl Safe_ports port 591 # filemaker # acl Safe_ports port 777 # multiling http acl CONNECT method CONNECT acl PURGE method PURGE # Allowing or Denying access based on defined access lists # Recommended minimum configuration: # Only allow cachemgr access from localhost http_access allow manager localhost http_access deny manager # Only allow purge requests from localhost http_access allow PURGE localhost http_access deny PURGE # Deny requests to unknown ports http_access deny !Safe_ports # Deny CONNECT to other than SSL ports http_access deny CONNECT !SSL_ports # If we want to block certain sites. # acl block dstdomain "/usr/local/etc/squid/dstdomain" # Show message when blocked # deny_info ERR_DSTDOMAIN block # http_access deny blockedsites # Allow the localhost to have access by default http_access allow localhost # Allow access from your local network. http_access allow localnet # And deny all other access to this proxy http_access deny all # Allow ICP queries from local networks only icp_access allow localnet icp_access deny all # Define the hostname that will be shown in # error messages etc. visible_hostname dentista01.no-ip.org # Email-address of local cache manager who will receive # mail if the cache dies. cache_mgr dentista@eskk.nu # Speed up the writing of some log files buffered_logs on coredump_dir /usr/local/squid/cache