LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-17-2006, 04:57 AM   #1
Dedah
LQ Newbie
 
Registered: Feb 2005
Posts: 11

Rep: Reputation: 0
Problem with starting squid


Hi,

I've configured squid on my RH server and now cannot be able to start it.

I get an error message:

/init/var/spool/squid ...... line 162 [FAILED]
starting squid [FAILED]

help me out.
 
Old 01-17-2006, 05:21 AM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
have you looked in the squid log file?

/var/log/squid/

look in there and if you can't find the answer try posting the log file here and maybe someone will be able to help you.
 
Old 01-19-2006, 04:02 AM   #3
vathna
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
dear paul_mat

I have same problem as Dedah
i have check /var/log/squid

but in this folder i saw only one file its is squid.out
 
Old 01-19-2006, 04:44 AM   #4
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
okay, well first i suggest that you look in your squid configuration file 'squid.conf' and check out where your log files go, if they are commented out then remove the '#' and make the log /var/log/squid, then restart squid and see what the log puts out.

i've got a fairly debugging command for squid ... but it's at work and i can't remember it, i think it's something like this ' squid -XNDz' try this, and if that dosn't tell you whats wrong, post the output here and i'll post the command when i get to work tomorrow.
 
Old 01-19-2006, 04:25 PM   #5
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
squid -NCd1

thats always been a good debugging command me when using squid
 
Old 01-19-2006, 10:42 PM   #6
vathna
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
after run squid -NCd1 i got the following message

Warning: failed to resolve 127.0.0.1 to a fully qualified in hostname
GetMyHostname: 'Fedserver'resolved into 'Fedserver'
FATA: Could not determine fully qualified hostname. Please set 'visible_hostname'

Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
CPU Usage: 0.046 seconds = 0.019 user + 0.027 sys
Maximum Resident Size: 0 KB
Page Faults with Physical i/o: 0
Aborted
 
Old 01-19-2006, 11:08 PM   #7
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
okay well, not too sure, but go into your /etc/squid/squid.conf file and set your visible hostname setting, then start it failing that, post your squid.conf file on this forum. if you don't know what your FQDN is look in /etc/hosts file

Also you might want to try installing webmin and using the squid module to setup your squid server, webmin is an easy to follow web interface into a lot of servers including squid.
 
Old 01-20-2006, 02:17 AM   #8
vathna
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
dear paul_mat,

the problem has been fixed

but i want to ask you one more question.

I want to block the website the has the word sex or games in the address like games.yahoo.com sex.com etc

I have create acl list

by the following cal badur url_regex -i games

http_access deny badurl

but it seen no effected to this

I still can open the website the have the word games

Pls help me

thank in advance
 
Old 01-20-2006, 03:27 AM   #9
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
well once again, you've caught me out of the office, i have most of my information in there, i've just hit a weekend so i wont be back in for a couple of days, but i have found a website that might help.

http://www.swelltech.com/support/procyonguide/ch14.html

I know i've suggest it before, but try and install webmin! it makes squid management and setup so much easier!

Using the Provided Block Lists

Content blocking is quite simple to use. Using the Webmin tool, you select Servers and then Squid Proxy Server and, finally, Access Control. On this screen you will see three boxes of options. Two are relevant to content blocking, Access Control Lists and Proxy Restrictions.

Access Control Lists are lists of patterns to be matched. It is possible to make matches based on every facet of a web request, but the ones we are interested in for content blocking are URL Regexp and Web Server Regexp. As you can see, several lists are already provided for you. In our example, we will turn on blocking of pornography and pirated software sites. Further, we will "unblock" several sites that would be unjustly blocked by our pattern because they are found at similar URLs but do not contain the questionable content being blocked.

To turn on blocking, you click on Add Proxy Restriction in the Proxy Restrictions options box. This will bring you to a new screen where you can select which list to use for matching. Here you click Deny and choose the porn.block and games.block ACLs. After clicking Save you will be returned to the Access Control page. Also be aware that the order in which ACLs appear in the Proxy Restrictions box is important. The ACL code only reads through the entries until it reaches one that matches. So if an allow rule is in place before the deny rule the allow rule will take precedence. Use the movement arrows on the right side of the Proxy Restriction box to reorder your rules.

Don't forget to add the unblock list for whatever Block Lists you are using to prevent unfair blocking of harmless or educational sites. The unblock list must come before the block list in the Proxy Restrictions list. Use the arrows to reorder again.

The Squid server will need to be restarted by clicking Apply Changes in the upper right hand corner of the page. At this point, blocking should be in place. Test it with your browser by going to a known site that should be blocked, such as http://www.playboy.com, if blocking is working you will receive an Access Denied page from the proxy. This, and all other message pages from the proxy, can be customized for your environment.
 
Old 01-23-2006, 01:12 AM   #10
vathna
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
Ok
now everything work fine.

thank you for helping me

 
Old 03-07-2006, 09:51 AM   #11
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Rep: Reputation: 30
this is what it gives me (the last lines) when i do "squid -XNDz" any ideas_?

2006/03/07 09:42:24| parse_line: no_cache deny QUERY
2006/03/07 09:42:24| aclParseAccessLine: looking for ACL name 'QUERY'
2006/03/07 09:42:24| Processing: 'auth_param ntlm program /usr/bin/ntlm_auth --h elper-protocol=squid-2.5-ntlmssp'
2006/03/07 09:42:24| parse_line: auth_param ntlm program /usr/bin/ntlm_auth --he lper-protocol=squid-2.5-ntlmssp
FATAL: authparam ntlm program /usr/bin/ntlm_auth: (13) Permission denied
Squid Cache (Version 2.5.STABLE11): Terminated abnormally.
CPU Usage: 0.010 seconds = 0.003 user + 0.007 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 18
Aborted
 
Old 03-08-2006, 04:15 AM   #12
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
well this line here

FATAL: authparam ntlm program /usr/bin/ntlm_auth: (13) Permission denied

makes me think that you don't have permission, i've never come across this before so i can give you some things to try.

chmod a+s /usr/bin/ntlm_auth

if that isn't it

try running squid as root (i'm guessing your running it as a squid user)

edit /etc/squid/squid.conf

i can't remember where it is off the top of my head, but it's in there, somewhere, or even easier yet, change it on webmin

if that isn't it

chmod a+rwx a+rwx /usr/bin/ntlm_auth

if that isn't it, i'm out of idea's, post back here if one of those fixes it to tell everyone esle
 
  


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
Squid not starting..... Ricky Linux - Networking 5 05-31-2006 06:54 AM
Error starting Squid mrpc_cambodia Red Hat 2 07-20-2004 03:45 AM
Squid starting error abhram Linux - Networking 1 10-12-2003 07:17 AM
Squid starting problem?? deepika Linux - Networking 4 10-10-2003 11:13 AM
Starting squid from boot? kabads Linux - Software 3 02-14-2003 06:23 AM


All times are GMT -5. The time now is 06:15 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