由于开放代理,无法连接到freenode

kar*_*k87 4 squid

当我连接到 freenode 时,出现以下错误。

You are banned from this server- Your host is an open proxy (HTTP GET (3128)).                              
Email proxyscan@freenode.net when corrected.        
karthick [~karthick@117.206.87.12] has quit [K-Lined]            
ERROR Closing Link: 117.206.87.12 (K-Lined)                
Irssi: Connection lost to irc.freenode.net
Run Code Online (Sandbox Code Playgroud)

我在我的独立系统中使用鱿鱼来阻止几个网站和下载。这是我的鱿鱼配置。

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 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 badURL url_regex -i movie                  
acl badURL url_regex -i movies                     
acl badURL url_regex -i chat             
acl whitelist dstdomain "/etc/squid3/whitelist"                 
acl bad URL url_regex "/etc/squid3/websites"                   
acl badURL url_regex "/etc/squid3/blockdownload"                     
acl badURL url_regex "/etc/squid3/blockedsites"               
http_access allow manager localhost                     
http_access deny !Safe_ports                    
http_access deny CONNECT !SSL_ports                   
http_access allow whitelist               
http_access deny badURL                  
icp_access deny all              
htcp_access deny all               
http_port 3128              
hierarchy_stoplist cgi-bin ?             
access_log /var/log/squid3/access.log squid                 
refresh_pattern ^ftp:  1440 20% 10080                
refresh_pattern ^gopher: 1440 0% 1440                  
refresh_pattern (cgi-bin|\?) 0 0% 0               
refresh_pattern .  0 20% 4320             
icp_port 3130              
Run Code Online (Sandbox Code Playgroud)

有人说启用鱿鱼身份验证将解决我的问题。但我不确定这样做。有什么建议??

Rog*_*ght 5

目前,squid 正在侦听您所有的网络接口。如果您将其更改为仅侦听内部网络,则 Internet 上的任何人都无法连接。如果您只在一台机器上使用它,这很容易。换线

http_port 3128
Run Code Online (Sandbox Code Playgroud)

http_port 127.0.0.1:3128
Run Code Online (Sandbox Code Playgroud)

这意味着 squid 只会监听你的 localhost 接口。

如果您有其他机器使用一张网卡用于 Internet 和一张网卡用于内部网络访问代理,您将重复上述更改,但将您的内部网络 IP 地址替换为 127.0.0.1。

这在http://www.squid-cache.org/Doc/config/http_port/ 中有记录- 请参阅底部段落。

可能值得检查您的防火墙是否也在运行和配置 - 3128 不需要对外界可见。