2015-11-08 44 views
3

所以我想爲我的抓取工具創建一個代理服務器來使用,而且我不確定爲什麼我會被拒絕。當我去到任何網站在瀏覽器中,我已經安裝了魷魚,一切都在電腦上,它給我下面的錯誤消息:魷魚在創建代理服務器時拒絕所有網站

ERROR 

The requested URL could not be retrieved 

While trying to retrieve the URL: http://www.whatismyipaddress.com/ 

The following error was encountered: 

Access Denied. 
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect. 

Your cache administrator is webmaster. 
Generated Sun, 08 Nov 2015 04:03:13 GMT by WIN-AIUOBK0JHPA (squid/2.7.STABLE8) 

我已經編輯在Internet選項我的局域網設置,以允許對於正確IP地址的代理服務器(當我運行ipconfig時爲IPv4),給了它正確的端口以打開,並且我還打開了Windows防火牆中的端口。

下面是我的squid.conf文件的片段:

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 localhost src 192.168.1.0/255.255.255.255 
http_access allow localhost 

(skip through some commented out segments....) 

http_access allow manager localhost 

http_access allow localnet 

正如你所知道的,我已經去掉了很多不必要的註釋部分。降低,我有我的...

http_port #### 

...線。

我不知道爲什麼我被堵塞了。我會不斷提神,所以如果您需要更多信息或有任何問題,請告訴我。非常感謝!!

+0

您是否修復了此問題?我得到同樣的錯誤信息並尋找解決方案,但找不到理由。 –

回答

1

你的配置應該有點像下面

http_access allow localhost 
http_access allow localnet 
# And finally deny all other access to this proxy 
http_access deny all 

,並從你的配置

acl localhost src 192.168.1.0/255.255.255.255 

本地主機中刪除以下行不必被指定爲ACL它只是用於訪問本地主機的網頁。你混淆了localhost通過localnet的,修改該行像下面

acl localnet src 192.168.1.0/255.255.255.255 

你的局域網的客戶機IP是擊中代理應該屬於上述範圍的src或修改的範圍內根據您的需要。來自其他ips的所有其他請求將被拒絕