Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » 7. Operating System » Parameter Authentikasi Squid

Parameter Authentikasi Squid

Cek dahulu Library NCSA …

root~/># locate ncsa_auth

/usr/lib/squid/ncsa_auth
/usr/share/doc/squid/README.auth_module.ncsa_auth.gz

auth_param basic program /usr/lib/squid/ncsa_auth /root/usersquid
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255

acl MENANGGAL src 192.168.1.0/255.255.255.0
redirect_children 5

acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 110         # pop
acl Safe_ports port 119 20      # Lain2x
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
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 Safe_ports port 6667-7002   # IRC ports
acl Safe_ports port 5050        # YM ports

acl CONNECT method CONNECT

#acl porno1 url_regex -i “/etc/porno.txt”
#acl porno2 url_regex -i “/etc/squid/deny_access/domains”

acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users

 

Filed under: 7. Operating System

Leave a Reply

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>