运行带有 acl 随机 ip 设置的 Squid,池中有 745 个 ip,大约有 10 个用户使用它,使用运行多个线程的工具,检查 Google 上的排名等
问题:我们确实开始遇到一些问题,某个 IP 号码出现的频率比其他所有 IP 号码都要高得多。我进行了一个简单的测试,在测试中,我在 chrome 中使用了代理插件,并访问了“我的 IP 是什么”网站,每次我刷新页面时,我都会得到一个新的 IP,但在 2 - 5 次请求后,我会得到服务器的主 IP,而不是后备 IP。
认为主要问题之一是 1 个连接锁定 1 个 IP,我如何让它们共享?这是我的配置
http_port 3128
visible_hostname mydomain.com
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl CONNECT method CONNECT
auth_param basic program /lib/squid/basic_db_auth --user squid
--password x420WVNgm2D226v --plaintext --persist
auth_param basic children 5
auth_param basic realm mydomain.com
auth_param basic credentialsttl 1 minute
auth_param basic casesensitive off
acl db-auth proxy_auth REQUIRED
http_access allow db-auth
http_access allow localhost
http_access deny all
# Limit to 1 connection per user
# OR NAT
client_ip_max_connections 100
authenticate_ttl 1 hour
authenticate_ip_ttl 5 seconds
acl ip_unico max_user_ip -s 1
http_access deny ip_unico
server_persistent_connections off
acl RandomIP random 1/754
#anonymizer paranoid
request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access All deny all
header_replace User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4 AlexaToolbar/alxg-3.1
# RandomIP Pool
tcp_outgoing_address xx.xxx.68.10 RandomIP
tcp_outgoing_address xx.xxx.68.11 RandomIP
tcp_outgoing_address xx.xxx.68.12 RandomIP
tcp_outgoing_address xx.xxx.68.13 RandomIP
tcp_outgoing_address xx.xxx.68.14 RandomIP
tcp_outgoing_address xx.xxx.68.15 RandomIP
tcp_outgoing_address xx.xxx.68.16 RandomIP
tcp_outgoing_address xx.xxx.68.17 RandomIP
.... 745 tot
# Fallback IP
tcp_outgoing_address xx.xxx.67.255
有人可以帮我从这里出去吗 ?