LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-14-2009, 03:28 AM   #1
Eisendale
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 192.168.0.0/255.255.255.0
acl blocked_sites dstdomain .youtube.com
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
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

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

On the proxy server, run:
Code:
# 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:
Code:
$ nc -zvw 1 proxy.host.here 3128
What does that tell you? If it times out, something is likely filtering traffic to that host/port.
 
  


Reply

Tags
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 12 12-19-2010 11:47 PM
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


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration