Страница 1 из 1

Squid 3.3 проблемы с авторизацией

Добавлено: 2013-08-15 11:09:02
lynx
Нужно было настроить на сервере простенькую непрозрачную проксю. Поставил Squid 3.3, собрал его с параметрами

Код: Выделить всё

[*] LARGEFILE      Support large (>2GB) cache and log files
[*] TP_IPFW        Enable transparent proxying with IPFW
и прописал в конфиге

Код: Выделить всё

acl MyNet src 10.44.0.0/16
acl auth proxy_auth REQUIRED

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

auth_param basic program /usr/local/libexec/squid/basic_ncsa_auth /usr/local/etc/squid/squid_users
auth_param basic children 20
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 8 hours

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow squidusers

http_access allow localhost

http_access allow MyNet
http_access allow auth
http_port 10.44.**.**:1****

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
    
При подключении через проксю, пользователь поолучает сообщение, что прокси-сервер не принимает логин и пароль. В логах авторизации:

Код: Выделить всё

1376490957.445      0 10.44.**.** TCP_DENIED/407 3985 GET http://ya.ru/ *** HIER_NONE/- text/html
1376490975.907      0 10.44.**.** TCP_DENIED/407 4139 GET http://www.squid-cache.org/Artwork/SN.png *** HIER_NONE/- text/html
Чувствую, что перемудрил где-то в конфигах, но не могу разобраться где именно :st:
Заранее благодарен за поомщь.