Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-08-2016, 09:18 AM   #1
LQ Newbie
Registered: Jun 2016
Posts: 1

Rep: Reputation: Disabled
Squid proxy is so slow and no idea why?

I have just setup a VM with squid proxy for the first time and it seems to be pretty slow for some reason and I'm not sure why. I have installed squidGuard and added a blacklist but it was slow before I had this setup so isnt to do with that.

Here is what I have tried based on other forums:
  • Changed DNS to Googles servers
  • Checked the internet is fast not using the proxy
  • Restarted service a number of times
  • Set cache_dir to aufs

In the logs there's a lot of TCP_MISS/200 if that is relevant? I've also attached my squid.conf file below.

Any help greatly appreciated

acl SSL_ports port 443
acl all src
acl bad_keywords url_regex "/etc/squid3/ban_keywords.txt"
acl ban_domains dstdomain "/etc/squid3/ban_domains.txt"
acl SSL_ports port 443 #https
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 internal_network src
http_access allow internal_network
http_access deny bad_keywords all
http_access deny ban_domains all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost manager
http_access deny manager
http_access allow localhost
http_access deny all
http_port 3128
cache_mem 1024 MB
cache_dir aufs /var/spool/squid3 81920 16 256
maximum_object_size 5120 MB
coredump_dir /var/spool/squid3
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Packages(.gz)*)$      0       20%     2880
refresh_pattern .               0       20%     4320
url_rewrite_program /usr/bin/squidGuard -c /etc/squid3/squidGuard.conf

Last edited by jaselinux; 06-08-2016 at 09:20 AM. Reason: added squid.conf file
Old 06-10-2016, 11:07 AM   #2
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Your squid proxy has a logger that's recording the HTTP (among other protocols) transactions. Have you reviewed it?
It should be able to tell you if your latency is local (mis-configuration on the instance) or is being driven by poor DNS caching or other network service issues.


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
squid proxy slow internet tonj Linux - Software 2 10-20-2013 05:05 PM
Squid as reverse proxy, too slow Felipe Linux - Server 1 03-16-2011 04:28 PM
squid proxy 2.6 stable 6 is very slow gautamnarayan Linspire/Freespire 1 10-16-2009 12:02 AM
My squid server is running slow i have 40 fedora 11 in my squid proxy Linux - Server 4 09-15-2009 01:17 AM
slow squid proxy connection with https sides Sammy2ooo Linux - Newbie 0 10-09-2003 03:43 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:50 AM.

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