Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 07-14-2009, 03:28 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 1

Rep: Reputation: Disabled
Squid running but seems not to be working

Hi All,

I am new to linux administration and I am currently having a problem running Squid and Dansguardian on our new server. In our previous server, Squid and Dansguardian seems to be running fine but when one of our former administrators transferred the applications to another machine the apps seemed to malfunction.

The issue is, Squid seems to be running on the new server:

[root@server init.d]# ps -aux | grep squid
root 18048 0.0 0.0 7752 1096 ? Ss 15:50 0:00 squid -D
squid 18050 0.2 0.2 9980 5924 ? S 15:50 0:00 (squid) -D
squid 18052 0.0 0.0 1512 224 ? Ss 15:50 0:00 (unlinkd)
root 18055 0.0 0.0 3912 664 pts/1 S+ 15:50 0:00 grep squid

Now, when we access any website, nothing is logged to the log files of squid at /usr/local/squid/logs/access.log or even at /usr/local/squid/logs/cache.log.

The content of squid.conf are as follows:
http_port 3128
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
cache_dir ufs /var/spool/squid 1024 16 256
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320
acl my_subnetwork src
acl blocked_sites dstdomain
http_access deny blocked_sites my_subnetwork
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_effective_user squid
cache_effective_group squid
coredump_dir /var/spool/squid

We also specified that youtube be blocked by squid. It doesn't seem to be working. What else do I need to check if squid is really running?

Thanks in advance!
Old 07-14-2009, 06:11 PM   #2
Senior Member
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Is your web browser pointing to the new proxy server?

On the proxy server, run:
# watch -n 1 'netstat -tn | grep 3128'
Do you see any activity in that netstat session when you try to visit a web page? If not, double check (again) your web browser settings. If those look OK, run the following from your workstation:
$ nc -zvw 1 3128
What does that tell you? If it times out, something is likely filtering traffic to that host/port.


centos5, squid

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
[SOLVED] Squid+DansGuardian not working properly. squid blocking sites that should be linuxlover.chaitanya Linux - Server 13 11-10-2014 10:34 AM
Ubuntu 8.04: Transparent proxy using squid working but block domain not working bleketux Linux - Networking 10 03-16-2009 06:41 AM
Squid 2.6 Reverse Proxy from Squid(3128) to OrginServer(80) Not working rraj Linux - Server 0 06-06-2008 02:29 PM
Have Squid running, would like to get Squidguard running? tbaker Red Hat 0 08-09-2006 06:28 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration