代理魷魚非常慢

代理魷魚非常慢

我在一所學校工作,那裡有大約 500 台電腦。我們安裝了代理 SQUID 來過濾成人網站等。但當客戶端太多時,衝浪就會變得太慢。 -可能是什麼原因? - 一台代理伺服器不足以容納 500 個客戶端嗎?

魷魚.conf:

# /etc/squid/squid.conf


acl localnet src xxx.xxx.xxx.xxx/xx

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

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128

cache_mem 20480 MB

cache_dir aufs /dev/partage 200000 16 256
cache_dir aufs /dev/data 200000 16 256
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
logfile_rotate 10

dns_nameservers xxx.xxx.xxx.xxx 1.1.1.1 1.0.0.1
dns_v4_first on
positive_dns_ttl 12 hours
negative_dns_ttl 1 minutes

fqdncache_size 4096
#maximum_object_size 4 MB
minimum_object_size 0 KB
maximum_object_size 96 MB

memory_cache_mode always
memory_replacement_policy lru


acl srv_interne dst xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

cache deny srv_interne

coredump_dir /var/spool/squid

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern \/(Packages|Sources)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
refresh_pattern \/Release(|\.gpg)$ 0 0% 0 refresh-ims
refresh_pattern \/InRelease$ 0 0% 0 refresh-ims
refresh_pattern \/(Translation-.*)(|\.bz2|\.gz|\.xz)$ 0 0% 0 refresh-ims
refresh_pattern .               0       20%     4320


url_rewrite_program /usr/bin/squidGuard
url_rewrite_children 8


max_filedesc 4096

相關內容