Squid + AD
Добавлено: 2014-09-30 8:22:47
Прошу помощи, керб авторизация работает, группы вытыщить пока не получается... пользователей которым нужен инет не так много поэтому буду пускать в инет по списку... так же есть белые сайты к которым нужен доступ всем и авторизированным и неавторизированным... как отключить выскакивающее окно авторизации?
Код: Выделить всё
auth_param negotiate program /usr/local/libexec/squid/negotiate_kerberos_auth -d -s HTTP/gate.my.org.com
auth_param negotiate children 10
auth_param negotiate keep_alive on
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/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
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 auth_users proxy_auth REQUIRED
acl inet-users proxy_auth "/usr/local/etc/squid/db/users.txt"
acl deny_url url_regex "/usr/local/etc/squid/db/deny_url.txt"
acl deny_domains dstdomain "/usr/local/etc/squid/db/deny_domains.txt"
#acl allow_ip "/usr/local/etc/squid/db/allow_ip.txt"
acl allow_all dstdomain "/usr/local/etc/squid/db/allow_all.txt"
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access deny deny_url
http_access deny deny_domains
deny_info ERR_BAD_URL bad_url
deny_info ERR_BAD_NETWORKS bad_networks
deny_info ERR_DENY_DOMAINS deny_domains
deny_info ERR_SAFE_PORTS safe_ports
deny_info ERR_SSL_PORTS SSL_ports
#external_acl_type inet-users ttl=3600 negative_ttl=3600 %LOGIN /usr/local/libexec/squid/ext_kerberos_ldap_group_acl -g inet-users
#http_access deny to_localhost
http_access allow inet-users
#http_access allow localnet
http_access allow localhost
http_access allow allow_all
http_access deny allow_all
deny_info ERR_INET_NO_ALLOW all
http_access deny all
http_port 3128
#debug_options ALL,1 33,2 28,9
coredump_dir /var/squid/cache/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320