# ACL settings acl manager proto cache_object acl webserver src 10.0.0.2 acl localhost src 127.0.0.1/32 ::1 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl localnet src fc00::/7 # RFC 4193 local private network range acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines acl kromkrom src 2001:4dd0:ff00:56::2 acl SSL_ports port 443 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 Safe_ports port 901 # SWAT acl CONNECT method CONNECT acl BAD_DOMAINS dstdom_regex -i "/etc/squid/bad_domains" # HTTP access allows http_access allow manager localhost http_access allow manager webserver http_access allow localnet http_access allow localhost http_access allow kromkrom # HTTP access denys http_access deny BAD_DOMAINS http_access deny manager http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access deny all # ICP icp_port 3130 icp_access allow localnet icp_access deny all # HTCP default disabled. Port not set htcp_access allow localnet htcp_access deny all htcp_clr_access deny all # Allow ident lookups ident_lookup_access allow all #Port settings http_port 8080 https_port 8088 cert=/etc/lighttpd/kromonos.net.pem cache_peer squidi.kromonos.net sibling 8080 3130 default hierarchy_stoplist cgi-bin ? # Cache settings cache_mem 1024 MB cache_dir ufs /public/misc/squid.cache 20480 16 256 # Log files access_log /public/misc/squid.cache/access.log cache_log /public/misc/squid.cache/cache.log cache_store_log /public/misc/squid.cache/store.log logfile_rotate 10 ######################## pid_filename /var/run/squid.pid coredump_dir /var/cache/squid refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 refresh_pattern . 0 20% 4320 # User Agent faking request_header_access User-Agent deny all reply_header_access User-Agent deny all header_replace User-Agent Mozilla/5.0 (X11; U; Linux 2.6.35.3-SquidSheep; de-DE) Gecko/20100402 Epiphany/2.31.3 ######################## cache_mgr webmaster@kromonos.net visible_hostname "yinichi.kromonos.net" dns_nameservers 10.0.0.2 forwarded_for delete # squish settings auth_param basic program /usr/libexec/squid/pam_auth auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours acl AUTHENTICATED proxy_auth REQUIRED http_access allow AUTHENTICATED acl SQUISHLOC dst yinichi.kromonos.net acl SQUISHED1 proxy_auth -i "/etc/squid/squished" acl SQUISHED3 src "/etc/squid/squished" deny_info http://localhost/RZ/squish/?squished& SQUISHED1 #deny_info http://localhost/RZ/squish/?squished& SQUISHED2 deny_info http://localhost/RZ/squish/?squished& SQUISHED3 http_access allow SQUISHLOC http_access deny SQUISHED1 http_access deny SQUISHED3