LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-16-2006, 07:10 PM   #1
sharadshankar
Member
 
Registered: Dec 2003
Posts: 43

Rep: Reputation: 15
squid terminates from fatal error help quick


Alright I'm almost finished setting up squid however when running it, it terminates abnormally. Here is the output when i do
Quote:
/etc/init.d/squid restart
Quote:
Restarting proxy server: 2006/02/16 19:52:47| ACL name '192.168.15.101/255.255.255.0' not defined!
FATAL: Bungled squid.conf line 5: http_access allow 192.168.15.101/255.255.255.0Squid Cache (Version 2.5.STABLE10): Terminated abnormally.
squid.
Here is my config file.
Quote:
http_port 8080
cache_mem 16 MB
cache_dir ufs /home/admin/cache/ 200 16 256
redirect_rewrites_host_header off
http_access allow 192.168.15.101/255.255.255.0
cache_effective_user admin
cachemgr_passwd my-secret-pass all
buffered_logs on
I'm using this website as a guide and tweak it a little bit.
http://howtos.linux.com/guides/solrh...28sec232.shtml
 
Old 02-16-2006, 07:49 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The process they follow in that tutorial is to create an access control list (acl) and then define whether to allow or deny access to anything that matches the acl. I don't have a box here to test it on, but try something like:
Code:
acl lanhost 192.168.15.101/255.255.255.0
http_access allow lanhost
 
Old 02-16-2006, 08:18 PM   #3
sharadshankar
Member
 
Registered: Dec 2003
Posts: 43

Original Poster
Rep: Reputation: 15
alright I kind of got it working. Now, it doesn't have a fatal error. Your suggestion was right expcet you're suppose to put src after lanhost. Here is what I get now.
Config file
Quote:
http_port 8080
cache_mem 16 MB
cache_dir ufs /home/admin/cache/ 200 16 256
acl lanhost src 192.168.15.101/255.255.255.0
acl localhost src 127.0.0.1/255.255.255.255
acl all src 0.0.0.0/0.0.0.0
http_access allow lanhost
http_access deny all
cache_effective_user admin
buffered_logs on
Quote:
Restarting proxy server: 2006/02/16 21:14:28| aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.15.101/255.255.255.0'
squid.
What is that error?
 
Old 02-16-2006, 08:26 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Oops, sorry about leaving off the src.

The error means that the netmask is wrong. If you just want to allow the 192.168.15.101 address, try it as 192.168.15.101/255.255.255.255 or as just 192.168.15.101, if you want to allow all of the PCs in the subnet 192.168.15.0, try 192.168.15.0/255.255.255.0. I hope that works - I'm still not at a PC where I can try it myself
 
Old 02-16-2006, 09:12 PM   #5
sharadshankar
Member
 
Registered: Dec 2003
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks man. It starts up now just fine. However, if i try to connect to the proxy via firefox from the allowed ip it doesn't respond. I guess there is something messed up during startup. On the installation they tell how to debug it but I'm running ubuntu and I don't know how to display that. Here is the link. http://http://squid-docs.sourceforge...html/x897.html
I also found this cgiproxy which would work but having trouble installing it. Has anyone done this before? Here is the cgi proxy link. http://www.jmarshall.com/tools/cgiproxy/
 
Old 02-16-2006, 09:30 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I'm not sure what is causing that - what errors are being displayed by Firefox? There may be some information in the logs also. My squid logs to the /var/log/squid directory, in the files access.log, cache.log and store.log.
 
Old 02-16-2006, 09:45 PM   #7
sharadshankar
Member
 
Registered: Dec 2003
Posts: 43

Original Poster
Rep: Reputation: 15
here is the log file when i start squid.
Quote:
2006/02/16 22:38:12| Starting Squid Cache version 2.5.STABLE10 for i386-debian-linux-gnu...
2006/02/16 22:38:12| Process ID 5231
2006/02/16 22:38:12| With 1024 file descriptors available
2006/02/16 22:38:12| DNS Socket created at 0.0.0.0, port 33733, FD 6
2006/02/16 22:38:12| Adding nameserver 68.87.73.242 from /etc/resolv.conf
2006/02/16 22:38:12| Adding nameserver 68.87.71.226 from /etc/resolv.conf
2006/02/16 22:38:12| User-Agent logging is disabled.
2006/02/16 22:38:12| Referer logging is disabled.
2006/02/16 22:38:12| Unlinkd pipe opened on FD 11
2006/02/16 22:38:12| Swap maxSize 204800 KB, estimated 15753 objects
2006/02/16 22:38:12| Target number of buckets: 787
2006/02/16 22:38:12| Using 8192 Store buckets
2006/02/16 22:38:12| Max Mem size: 8192 KB
2006/02/16 22:38:12| Max Swap size: 204800 KB
2006/02/16 22:38:12| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec
2006/02/16 22:38:12| Rebuilding storage in /home/admin/cache (DIRTY)
2006/02/16 22:38:12| Using Least Load store dir selection
2006/02/16 22:38:12| Current Directory is /
2006/02/16 22:38:12| Loaded Icons.
2006/02/16 22:38:12| Accepting HTTP connections at 0.0.0.0, port 8080, FD 12.
2006/02/16 22:38:12| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
2006/02/16 22:38:12| HTCP Disabled.
2006/02/16 22:38:12| WCCP Disabled.
2006/02/16 22:38:12| Ready to serve requests.
2006/02/16 22:38:13| Done scanning /home/admin/cache (0 entries)
2006/02/16 22:38:13| Finished rebuilding storage from disk.
2006/02/16 22:38:13| 0 Entries scanned
2006/02/16 22:38:13| 0 Invalid entries.
2006/02/16 22:38:13| 0 With invalid flags.
2006/02/16 22:38:13| 0 Objects loaded.
2006/02/16 22:38:13| 0 Objects expired.
2006/02/16 22:38:13| 0 Objects cancelled.
2006/02/16 22:38:13| 0 Duplicate URLs purged.
2006/02/16 22:38:13| 0 Swapfile clashes avoided.
2006/02/16 22:38:13| Took 0.5 seconds ( 0.0 objects/sec).
2006/02/16 22:38:13| Beginning Validation Procedure
2006/02/16 22:38:13| Completed Validation Procedure
2006/02/16 22:38:13| Validated 0 Entries
2006/02/16 22:38:13| store_swap_size = 0k
2006/02/16 22:38:14| storeLateRelease: released 0 objects
 
Old 02-16-2006, 10:11 PM   #8
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
OK, there are no errors in that output. If the proxy settings are correct in your browser, it should be returning something. Can you try manually connecting to the proxy server. For example, if the proxy is proxy.yourdomain.com and the port is 8080:
Code:
telnet proxy.yourdomain.com 8080
GET /
What do you see as the output for this?
 
Old 02-16-2006, 10:34 PM   #9
sharadshankar
Member
 
Registered: Dec 2003
Posts: 43

Original Poster
Rep: Reputation: 15
alright it connects to the proxy but it doesnt do anything after that. Here is what it says.
Quote:
Trying 192.168.15.100...
Connected to 192.168.15.100.
Escape character is '^]'.
After i type GET / it wont do anyhting.

Last edited by sharadshankar; 02-16-2006 at 10:35 PM.
 
Old 02-16-2006, 11:03 PM   #10
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Can you check the permissions/ownership on squid's cache directory? It sounds as though it hasn't started up correctly, although there should be error messages.
 
Old 02-16-2006, 11:25 PM   #11
sharad
Member
 
Registered: Dec 2005
Posts: 48

Rep: Reputation: 15
Try one thing,add one acl statement in the squid.conf file

acl allow_net src 192.168.15.101

and then add the following

http_access allow allow_net

it should work.

if not,let me know your total squid configuration.


Regards,
sharad.
 
  


Reply



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 FATAL: Could not determine fully qualified hostname. Please set 'visible_hostn tarakthakor Linux - Networking 5 12-04-2010 05:29 AM
Squid terminates shortly after starting Dawyea Linux - Software 4 06-12-2004 02:55 PM
Squid Fatal Error with RH 9.0 ryanzietlow Linux - Networking 4 03-16-2004 11:34 PM
Fatal error in Squid HELP!!!! kbrian38 Linux - Networking 3 02-15-2004 08:44 PM
FATAL Error in (squid as a proxy server)!!! hitesh_linux Linux - Networking 1 03-24-2003 02:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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
Open Source Consulting | Domain Registration