LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-03-2003, 07:00 AM   #1
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Rep: Reputation: 15
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
 
Old 01-03-2003, 04:31 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
One thing would be to give it more ram, and a faster harddrive if that's the problem, how slow is it?
 
Old 01-06-2003, 01:44 AM   #3
80s
Member
 
Registered: Dec 2002
Location: Pretoria South Africa
Distribution: Mandrake 8.1 & 9 Debian Woody
Posts: 41

Original Poster
Rep: Reputation: 15
thanks..
looks like it's related to our diginet line. there is a problem..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make booting faster? tuxuser19 Debian 7 10-15-2005 04:42 AM
SQUID proxy in multisession mode > Faster downloading Fr33B5D Linux - Software 0 08-28-2005 10:39 AM
Too slow any way to make it faster? Mr. New Linux - Newbie 12 12-29-2004 03:22 PM
how to make MPlayer faster ? PunkPT Linux - Software 1 07-30-2004 03:16 PM
See how the squid swim.. 80s Linux - Newbie 2 01-06-2003 06:35 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration