### BEGIN LLIUREX_CHANGES ### # /etc/squid/squid.conf # ###################################################### ## Some sections of this file are ## ## AUTOMATICALLY GENERATED or MODIFIED by LliureX, ## ###################################################### ## # http_port {{ SRV_IP }}:{{ PROXY_HTTP_PORT }} http_port 127.0.0.1:{{ PROXY_HTTP_PORT }} visible_hostname {{ PROXY_HOST }} # Use /etc/resolv.conf instead #dns_nameservers 127.0.0.1 # enabling single-word hostnames resolution dns_defnames on #enabling ipv4 resolution first dns_v4_first on acl SSL_ports port "/etc/squid/lliurex/allow-SSL-ports.conf" acl our_networks src "/etc/squid/lliurex/allow-src-networks.conf" acl allow_dst dst "/etc/squid/lliurex/allow-dst-networks.conf" acl deny_dst dst "/etc/squid/lliurex/deny-dst-networks.conf" acl allow_domain dstdomain "/etc/squid/lliurex/allow-dst-domains.conf" acl deny_domain dstdomain "/etc/squid/lliurex/deny-dst-domains.conf" acl deny_domain_expr dstdom_regex "/etc/squid/lliurex/deny-dst-domains-expr.conf" acl HOSTS dst "/etc/squid/lliurex/no_cache_networks.conf" no_cache deny HOSTS deny_info http://{{ PROXY_HOST }}/lliurex-proxy/deny allow_dst deny_info http://{{ PROXY_HOST }}/lliurex-proxy/deny deny_dst # set cache dir size in MB in 16 folders with 256 subfolders, aufs--> multithread with POSIX threads mode cache_dir aufs /var/spool/squid 4000 16 256 # set the RAM memory used by squid (recommends 1/3 of total ram memory) cache_mem 512 MB # objects bigger than this size aren't stored in cache maximum_object_size {{ PROXY_MAX_FILE_SIZE }} KB pid_filename /var/run/squid.pid #acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 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 http_access deny manager http_access deny CONNECT !SSL_ports http_access allow allow_dst http_access deny deny_dst http_access deny deny_domain http_access deny deny_domain_expr http_access allow allow_domain http_access deny !Safe_ports http_access allow our_networks http_access allow localhost http_access deny all icp_access deny all access_log /var/log/squid/access.log squid refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern (cgi-bin|\?) 0 0% 0 refresh_pattern . 00 20% 4320 icp_port 3130 coredump_dir /var/spool/squid