Dear all,
I want to use NCSA base auth, and I want to limit one login for one ip
address but it seems my configuration didn't work; here the config. Thank
you
#redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
http_port 3128
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
cache_swap_low 90
cache_swap_high 95
ipcache_size 1024
ipcache_low 90
ipcache_high 95
cache_replacement_policy lru
memory_replacement_policy lru
cache_dir diskd /var/cache 2048 16 256 Q1=72 Q2=64
access_log /var/log/squid/access.log
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Perpustakaan Wifi Zone
auth_param basic credentialsttl 2 hour
auth_param basic casesensitive off
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
quick_abort_min 16 KB
quick_abort_max 16 KB
quick_abort_pct 95
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 to_localhost dst 127.0.0.0/8
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
acl maxlogin max_user_ip -s 1
acl ncsa_users proxy_auth REQUIRED
acl blokaja url_regex "/etc/squid/blockdomain.acl"
http_access allow manager localhost
http_access deny ncsa_users maxlogin
http_access allow ncsa_users !blokaja
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all
#http_reply_access allow all
icp_access deny all
cache_effective_user squid
cache_effective_group squid
visible_hostname squid.i2dot.net
cache_mem 512 MB
cache_mgr andre_at_i2dot.net
delay_pools 1
delay_class 1 2
delay_parameters 1 64000000/64000 16000/32000
delay_access 1 allow all
Received on Wed Feb 11 2009 - 01:21:26 MST
This archive was generated by hypermail 2.2.0 : Wed Feb 11 2009 - 12:00:01 MST