Answer the question
In order to leave comments, you need to log in
I set up Squid, the browser asks for login and password all the time, how to fix it?
Installed ubuntu with squid3 on Amazon ec2, configured the latter:
sudo nano /etc/squid3/squid.conf
http_port 8888
# And finally deny all other access to this proxy
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/internet_users
auth_param basic children 5
auth_param basic realm =PROXY=
auth_param basic credentialsttl 2 hours
acl internet_users proxy_auth REQUIRED
http_access allow internet_users
http_access deny all
sudo touch internet_users
sudo htpasswd -c /etc/squid3/internet_users user1
sudo chmod 440 /etc/squid3/internet_users
sudo service squid3 restart
GET http://ya.ru/ HTTP/1.1
Host: ya.ru
Connection: keep-alive
Proxy-Connection: keep-alive
Proxy-Authorization: Basic ZmxhdHR5OmRLNko2Z011dHB6OA==
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.4.10 (KHTML, like Gecko) Version/8.0.4 Safari/600.4.10
Accept-Language: ru
DNT: 1
Accept-Encoding: gzip, deflate
----------
FATAL: /etc/squid3/internet_users: (13) Permission denied
2015/03/20 17:52:00.317| WARNING: basicauthenticator #1 exited
2015/03/20 17:52:00.317| Too few basicauthenticator processes are running (need 1/5)
2015/03/20 17:52:00.317| Starting new helpers
2015/03/20 17:52:00.317| helperOpenServers: Starting 1/5 'basic_ncsa_auth' processes
2015/03/20 17:52:00.317| client_side_request.cc(786) clientAccessCheckDone: The request GET http://ya.ru/ is AUTH_REQUIRED, because it matched 'internet_users'
2015/03/20 17:52:00.318| client_side_reply.cc(1974) processReplyAccessResult: The reply for GET http://ya.ru/ is ALLOWED, because it matched 'internet_users'
2015/03/20 17:52:00.318| client_side.cc(1377) sendStartOfMessage: HTTP Client local=private_ip:8888 remote=my_ip:53001 FD 14 flags=1
2015/03/20 17:52:00.318| client_side.cc(1378) sendStartOfMessage: HTTP Client REPLY:
---------
HTTP/1.1 407 Proxy Authentication Required
Server: squid/3.3.8
Mime-Version: 1.0
Date: Fri, 20 Mar 2015 17:52:00 GMT
Content-Type: text/html
Content-Length: 3677
X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0
Vary: Accept-Language
Content-Language: ru
Proxy-Authenticate: Basic realm="=PROXY serveR 1="
X-Cache: MISS from ip-private_ip
X-Cache-Lookup: NONE from ip-private_ip:8888
Via: 1.1 ip-private_ip (squid/3.3.8)
Connection: keep-alive
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question