И это всё МОЁ

Решил обновить сервер прокси,старый работал на squid 2.7, накотил Suse Leap 15.1 установил squid 4.4 и тут возникла проблема с аутентификацией.

192.168.1.50 TCP_DENIED/407 4131 CONNECT www.google.ru:443 test HIER_NONE/- text/html

Создал самый просто конфиг c одним пользователем test.
В старой версии 2.7 программа аутентификацией была pam_auth, в новой версии я так понял перешли на basic_pam_auth.

Сам конфиг:

auth_param basic program /usr/sbin/basic_pam_auth -n /etc/passwd
auth_param basic children 90
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours

acl password 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 Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
acl test proxy_auth test

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access allow test
http_access deny all
http_port 3128

cache_dir ufs /var/cache/squid 100 16 256
coredump_dir /var/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
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
unlinkd_program /usr/sbin/unlinkd
error_directory /usr/share/squid/errors/ru
visible_hostname my_host

PAM squid имеется

#%PAM-1.0
auth include common-auth
account include common-account
password include common-password
session include common-session

В рекомендациях на счет прав basic_pam_auth, cделано

chown u+s /usr/sbin/basic_pam_auth

-rwsr-x--- 1 root shadow 18504 май 4 06:52 /usr/sbin/basic_pam_auth

Запустив basic_pam_auth проверку проходит

/usr/sbin/basic_pam_auth
test 123
OK

Самое интересное этот же конфиг на ubuntu 18.04 работает








 , , ,