2013-04-08 2 views
0

Windows 컴퓨터에서 squid 프록시 (Win2K8 Server, 64 비트)를 사용하고 있습니다. NCSA 인증을 사용하려면 this 링크를 참조하십시오. 설치가 잘되고 서비스를 시작할 수 있지만 여전히 사용자 이름과 암호를 묻지 못합니다.NCSA를 사용할 때 Squid가 사용자 이름과 암호를 요구하지 않습니다.

다음은 제 오징어 구성입니다. 게시물의 크기를 줄이기 위해 원본 squid 구성 파일에서 주석 처리 된 행을 모두 제거했습니다 (스택의 문자 제한으로 인해).

# WELCOME TO SQUID 2.7.STABLE8 
# ---------------------------- 
# 

    auth_param basic program c:/squid/libexec/ncsa_auth.exe c:/squid/etc/passwd 
    auth_param basic children 5 
    auth_param basic realm Squid proxy-caching web server 
    auth_param basic credentialsttl 2 hours 
    auth_param basic casesensitive off 
# 
#Recommended minimum configuration: 
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 
# 
# Example rule allowing access from your local networks. 
# Adapt to list your (internal) IP networks from where browsing 
# should be allowed 
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 
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 ncsa_users proxy_auth REQUIRED 
http_access allow ncsa_users 

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

http_access deny all 

icp_access allow localnet 
icp_access deny all 
# Squid normally listens to port 3128 
http_port 3128 

hierarchy_stoplist cgi-bin ? 


#Default: 
cache_mem 8 MB 

access_log c:/squid/var/logs/access.log squid 

# none 

#Suggested default: 
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 


coredump_dir c:/squid/var/cache 

나는 this 이 도와주세요 사용하여 passwd 파일을 생성했다. 당신이 내부에서이 액세스하는 경우

http_access allow ncsa_users 
http_access allow manager localhost 
http_access deny manager 
http_access deny !Safe_ports 
http_access deny CONNECT !SSL_ports 
http_access allow localnet 

http_access deny all 
난 당신이 ncsa_users 모두 허용하고 볼

및 localnet에 :. 나는 규칙을 보면 지난 주 :(

답변

0

이후이 작품을 얻기 위해 노력하고 있어요 10.0 네트워크 (설명에 표시되지 않음)를 사용하는 경우이 규칙을 사용하여 모든 트래픽을 승인하지 않고 허용합니다. acl localnet src 10.0.0.0/8 # RFC1918 possible internal network 따라서 댓글을 달아보고 작동하는지 확인하십시오.

관련 문제