Настроил squid поставил SAMS, все работает, авторизация по ip на ура.
Но вот NCSA не работает , у подключившихся пишет что запрещен доступ deny access. Шаблон создаю для NCSA указываю в нем эту авторизацию, создаю пользователя с этой же авторизацией и все равно доступ запрещен.
Настройки прокси:
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/ncsa.sams
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/24 # RFC1918 possible internal network
#
acl SSL_ports port 443 # https
acl SSL_ports port 563 # snews
acl SSL_ports port 873 # rsync
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 Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow _sams_4d91d3ab380f4
http_access allow _sams_4d91dbdab5927
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow localhost
# And finally deny all other access to this proxy
acl users proxy_auth REQUIRED
http_access allow users
http_access deny all
icp_access allow localnet
icp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid 3000 16 256
pid_filename /var/run/squid.pid
url_rewrite_program /usr/local/bin/samsredir
url_rewrite_children 5
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|?) 0 0% 0
refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
refresh_pattern . 0 20% 4320
delay_pools 2
delay_class 1 2
delay_class 2 2
delay_access 1 allow _sams_4d91d3ab380f4
delay_access 1 deny all
delay_parameters 1 128000/128000 128000/128000
delay_access 2 allow _sams_4d91dbdab5927
delay_access 2 deny all
delay_parameters 2 64000/64000 64000/64000
error_directory /usr/share/squid/errors/ru
hosts_file /etc/hosts
memory_pools_limit 126 MB