# ============================================================ # squid.conf - managed by Squid Web Manager # WARNING: this file is regenerated by the web UI. # Manual edits may be lost - use the Raw Editor tab # if you need to add directives not covered by the UI. # ============================================================ # ---- Network ---- http_port 3128 visible_hostname proxy.example.com # ---- Cache ---- cache_mem 256 MB cache_dir ufs /var/spool/squid 100 16 256 # ---- ACLs ---- acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 acl safeports port 80 443 21 70 80-1024 acl sslports port 443 563 acl CONNECT method CONNECT acl all src 0.0.0.0/0 acl manager proto cache_object acl local_lan src 172.16.0.0/12 #局域网测试 # ---- Refresh patterns ---- 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 # ---- Access rules ---- http_access deny manager http_access deny !safeports http_access deny !sslports CONNECT http_access allow localhost http_access deny all # ---- Logging ---- # ---- DNS ---- # ---- Timeouts ---- # ---- Admin ---- cache_mgr admin@example.com