Vous êtes sur la page 1sur 2

Seting-Up a HTTP Proxy Server with Authentication and Filtering

sudo htpasswd -c /etc/squid/passwd dad Enter a password Again: htpasswd /etc/squid/passwd kid Another password: Again:

ACCESS CONTROLS (acl) sections in Squid.conf: acl dadUser proxy_auth dad acl kidUser proxy_auth kid acl whitelist dstdomain "/etc/squid/whitelist" http_access allow dadUser http_access allow kidUser whitelist

vim/etc/squid/whitelist. google.com .kids-play.com .yahoo.com .msn.com


.

# NETWORK OPTIONS # Squid normally listens to port 3128 http_port 192.168.0.1:3128

# TAG: auth_param #Recommended minimum configuration per scheme: auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd # ACCESS CONTROLS # TAG: acl acl dadUser proxy_auth dad acl kidUser proxy_auth kid acl whitelist dstdomain "/etc/squid/whitelist" http_access allow dadUser http_access allow kidUser whitelist # TAG: http_access # And finally deny all other access to this proxy http_access deny all

Vous aimerez peut-être aussi