Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ACL
- 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 CONNECT method CONNECT
- # Squid normally listens to port 3128
- http_port 0.0.0.0:3128
- # Leave coredumps in the first cache dir
- coredump_dir /var/spool/squid
- # TAG: refresh_pattern
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880
- refresh_pattern . 0 20% 4320
- # Add auth_params
- auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd
- auth_param basic children 2
- auth_param basic realm My Proxy Server
- auth_param basic credentialsttl 24 hours
- auth_param basic casesensitive off
- # Add acl rules
- #acl squid_users proxy_auth REQUIRED
- acl badsites dstdomain "/etc/squid/badsites.acl"
- # http access rules
- http_access deny CONNECT !SSL_ports
- http_access allow localhost manager
- http_access deny manager
- http_access allow localhost
- #http_access allow squid_users
- http_access deny badsites
- http_access deny all
- # Anonymous Proxy
- forwarded_for off
- request_header_access Allow allow all
- request_header_access Authorization allow all
- request_header_access WWW-Authenticate allow all
- request_header_access Proxy-Authorization allow all
- request_header_access Proxy-Authenticate allow all
- request_header_access Cache-Control allow all
- request_header_access Content-Encoding allow all
- request_header_access Content-Length allow all
- request_header_access Content-Type allow all
- request_header_access Date allow all
- request_header_access Expires allow all
- request_header_access Host allow all
- request_header_access If-Modified-Since allow all
- request_header_access Last-Modified allow all
- request_header_access Location allow all
- request_header_access Pragma allow all
- request_header_access Accept allow all
- request_header_access Accept-Charset allow all
- request_header_access Accept-Encoding allow all
- request_header_access Accept-Language allow all
- request_header_access Content-Language allow all
- request_header_access Mime-Version allow all
- request_header_access Retry-After allow all
- request_header_access Title allow all
- request_header_access Connection allow all
- request_header_access Proxy-Connection allow all
- request_header_access User-Agent allow all
- request_header_access Cookie allow all
- request_header_access All deny all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement