make Squid swim faster ???
Please advise me on how i can make squid serve requests faster.
hardware -
celeron 733
192 Mb ram
40 gig hdd
2 x 100mbit ethernet cards
here is the squid.conf file as it stands ....
hutdown_lifetime 5 seconds
http_port 192.168.200.245:3128 192.168.200.245:8080 192.168.200.247:3128 192.168.200.247:8080
#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY
cache_effective_user squid
cache_effective_group squid
pid_filename /var/run/squid.pid
cache_access_log /home/squid/logs/access.log
cache_log /home/squid/logs/cache.log
cache_store_log none
useragent_log /home/squid/logs/useragent.log
emulate_httpd_log on
log_mime_hdrs off
# forward requests to parent proxy on port 8080
cache_peer 192.168.0.196 parent 8080 0 no-query default
acl all src 0.0.0.0/0.0.0.0
#can not by pass proxy for any request.
never_direct allow all
acl localhost src 127.0.0.1/255.255.255.255
acl localnet src 192.168.0.0/16
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
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
# banned sights
acl porn1 url_regex sex
acl porn2 url_regex xxx
acl porn3 url_regex porn
acl porn4 url_regex fuck
acl porn5 url_regex spank
acl porn6 url_regex sluts
# Limmit concurrent connection
acl 4CONN maxconn 3
deny_info ERR_PORN porn1
deny_info ERR_PORN porn2
deny_info ERR_PORN porn4
deny_info ERR_PORN porn5
deny_info ERR_PORN porn6
deny_info ERR_3CONNECTIONS 4CONN
http_access deny porn1
http_access deny porn2
http_access deny porn3
http_access deny porn4
http_access deny porn5
http_access deny porn6
#http_access deny 4CONN localnet
http_access allow localhost
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access deny all
# cache directories
cache_dir ufs /home/squid/cache 4000 16 256
cache_dir ufs /home/squid/cache2 4000 16 256
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
redirect_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
many thanks
|