-auth_param basic program /usr/libexec/squid/ncsa_auth /usr/local/Squid/etc/passwd
+auth_param basic program /usr/sbin/ncsa_auth /etc/squid/users.conf
auth_param basic children 5
auth_param basic realm Proxy
auth_param basic credentialsttl 2 hours
acl purge method PURGE
acl CONNECT method CONNECT
+acl users proxy_auth REQUIRED
+
% for host in hosts:
acl proxy_hosts src ${host.ip}/32
% endfor
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
+% if hosts:
http_access allow proxy_hosts
+% endif
+http_access allow users
http_access deny all
http_port ${ip}:${port}
error_directory /usr/share/squid/errors/Spanish
forwarded_for off
-coredump_dir /var/cache/squid
\ No newline at end of file
+coredump_dir /var/cache/squid