Skip to content

Basic Squid configuration

Davide Beatrici edited this page Nov 18, 2019 · 1 revision
# Disable caching
cache deny all

# Username + password authentication, credentials stored in "/etc/squid/passwords"
auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwords

# Enable authentication
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED

# Allow "CONNECT" method
acl CONNECT method CONNECT

# Allow access to localhost
http_access allow authenticated to_localhost

# Deny everything else
http_access deny all

# Listen on port 80, 443, 8080 and 8443
http_port 80
http_port 443
http_port 8080
http_port 8443