鱿鱼代理上的NTLM身份验证返回400错误请求

时间:2019-08-21 13:57:40

标签: ntlm squid ntlm-authentication

我已经在带有WinBind和Samba的Ubuntu 16.4 LTS上通过NTLM身份验证安装了Squid 2.7。在客户端,我使用Windows 7 Professional(配置了Ubuntu服务器的NTLM代理)。

但是当它在我的Internet Explorer浏览器中呈现时,它在/var/log/squid/access.log中显示407代码,并不断弹出身份验证框,并且没有重定向到我希望的URL。同样,当我使用WinHTTP以编程方式对C ++代码执行相同的操作时,它也会返回400错误请求。

Access.log在从浏览器访问时说:1566392960.125 1 172.16.xx.xx1 TCP_DENIED/407 1541 GET http://172.16.xx.xx2/ - NONE/- text/html

而172.16.xx.xx1是代理服务器,而http://172.16.xx.xx2/本地http服务器我希望它进行重定向。

以下是我的squid.conf设置:

auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp
auth_param ntlm children 5
auth_param ntlm keep_alive on
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
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 SSL_ports port 443      # https
acl SSL_ports port 8443     # 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 8443        # 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
acl users proxy_auth REQUIRED
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access allow Safe_ports
http_access allow CONNECT SSL_ports
http_access allow localhost
http_access allow users
http_access allow all
icp_access allow localnet
icp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
debug_options ALL,1 33,8
refresh_pattern ^ftp:       1440    20% 10080
refresh_pattern ^gopher:    1440    0%  1440
refresh_pattern -i (/cgi-bin/|\?) 0 0%  0
refresh_pattern (Release|Packages(.gz)*)$   0   20% 2880
refresh_pattern .       0   20% 4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY.[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
forwarded_for on
coredump_dir /var/spool/squid
debug_options ALL,0 11,2 28,5 29,5

它应通过ntlm代理进行身份验证,并应重定向到已定义的url。

0 个答案:

没有答案