LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-16-2006, 05:37 AM   #1
keithdj
LQ Newbie
 
Registered: Aug 2005
Location: New Zealand
Distribution: Fedora 4.0
Posts: 27

Rep: Reputation: 15
Squid proxy startup problem


Relaitively new to linux,

Trying to setup Squid and then Dansgaurdian. Purpose is to provide web filtering for my kids at home.

Had some troubles initally getting squid to install, turned out GCC was missing, got over that but when I try to start squid I get the following

Squid Cache (Version 2.5.STABLE13): Terminated abnormally.
CPU Usage: 0.045 seconds = 0.023 user + 0.022 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted

There is nothing in the log file, this is all running on an old'ish pentium 2 using Fedora Core 4.

Regards

Keith
 
Old 04-16-2006, 06:37 AM   #2
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
try and run this command

squid -NCd9

this will run squid in degub mode and hopefully tell you whats going wrong, or if you don't understand it, you can post the output here
 
Old 04-17-2006, 06:32 AM   #3
keithdj
LQ Newbie
 
Registered: Aug 2005
Location: New Zealand
Distribution: Fedora 4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the advice, it has allowed me to find and fix a few other issues, and now squid appears to start up, but when I direct the browser of another computer towards the linux box running squid, it doesn't work. Pasted below is the squid debug messages. Any further hints gratefully recieved.


2006/04/17 23:26:12| Starting Squid Cache version 2.5.STABLE13 for i686-pc-linux-gnu...
2006/04/17 23:26:12| Process ID 9861
2006/04/17 23:26:12| With 1024 file descriptors available
2006/04/17 23:26:12| Performing DNS Tests...
2006/04/17 23:26:12| Successful DNS name lookup tests...
2006/04/17 23:26:12| DNS Socket created at 0.0.0.0, port 32776, FD 4
2006/04/17 23:26:12| Adding nameserver 192.168.0.1 from /etc/resolv.conf
2006/04/17 23:26:12| Unlinkd pipe opened on FD 9
2006/04/17 23:26:12| Swap maxSize 102400 KB, estimated 7876 objects
2006/04/17 23:26:12| Target number of buckets: 393
2006/04/17 23:26:12| Using 8192 Store buckets
2006/04/17 23:26:12| Max Mem size: 8192 KB
2006/04/17 23:26:12| Max Swap size: 102400 KB
2006/04/17 23:26:12| Rebuilding storage in /usr/local/squid/var/cache (CLEAN)
2006/04/17 23:26:12| Using Least Load store dir selection
2006/04/17 23:26:12| Set Current Directory to /usr/local/squid/var/cache
2006/04/17 23:26:12| Loaded Icons.
2006/04/17 23:26:12| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2006/04/17 23:26:12| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2006/04/17 23:26:12| WCCP Disabled.
2006/04/17 23:26:12| Ready to serve requests.
2006/04/17 23:26:14| Done reading /usr/local/squid/var/cache swaplog (0 entries)2006/04/17 23:26:14| Finished rebuilding storage from disk.
2006/04/17 23:26:14| 0 Entries scanned
2006/04/17 23:26:14| 0 Invalid entries.
2006/04/17 23:26:14| 0 With invalid flags.
2006/04/17 23:26:14| 0 Objects loaded.
2006/04/17 23:26:14| 0 Objects expired.
2006/04/17 23:26:14| 0 Objects cancelled.
2006/04/17 23:26:14| 0 Duplicate URLs purged.
2006/04/17 23:26:14| 0 Swapfile clashes avoided.
2006/04/17 23:26:14| Took 1.6 seconds ( 0.0 objects/sec).
2006/04/17 23:26:14| Beginning Validation Procedure
2006/04/17 23:26:14| Completed Validation Procedure
2006/04/17 23:26:14| Validated 0 Entries
2006/04/17 23:26:14| store_swap_size = 0k
2006/04/17 23:26:15| storeLateRelease: released 0 objects
 
Old 04-17-2006, 06:41 AM   #4
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
check out your ACL's, make sure that http_access allow all is above all the other http_access rules and then restart squid
 
Old 04-17-2006, 07:18 AM   #5
keithdj
LQ Newbie
 
Registered: Aug 2005
Location: New Zealand
Distribution: Fedora 4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

Did that still doesn't work, was reading the quickstart guide and it talsk about editing some of the ACL to match my internal IP range, which I've done, and I believe is covered by the following line

acl our_netowrks src 192.168.0.100/24
http_access allow our_networks

I have also got a few lines above this

http_access allow all

I don't yet understand the format of 192.168.0.100/24 -- what does the 24 mean ?

When I restarted Squid after making the above changes, I now get the message;

aclParseIpData: WARNING: Netmask masks away part of the specified IP in '192.168.0.100/24'

what does this mean ?

lastly, to test this I'm using my work laptop running XP, and telling IE that I have a proxy on 192.168.0.100, using port 3128. don't have to do anything else ?

Regards
 
Old 04-17-2006, 07:28 AM   #6
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
it has to be 192.168.0.0/24
 
Old 04-17-2006, 07:29 AM   #7
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
Quote:
lastly, to test this I'm using my work laptop running XP, and telling IE that I have a proxy on 192.168.0.100, using port 3128. don't have to do anything else ?
yes thats right

it has to be 192.168.0.0/24
 
Old 04-17-2006, 07:38 AM   #8
keithdj
LQ Newbie
 
Registered: Aug 2005
Location: New Zealand
Distribution: Fedora 4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

Changed that, and also put the correct IP address of my linux box in and it all works. Probalby would of worked hours ago if I had put the right IP address in from the start, proof that these things shouldn't be done late at night.

Next I move on to Dansgaurdian, but not tonight.

Thank you for your help.

Regards

Keith
 
Old 04-17-2006, 08:04 AM   #9
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
no worries, i've got some interesting how-tos for squid on my website if you want ot take a look later
 
Old 04-17-2006, 05:41 PM   #10
keithdj
LQ Newbie
 
Registered: Aug 2005
Location: New Zealand
Distribution: Fedora 4.0
Posts: 27

Original Poster
Rep: Reputation: 15
Hi,

Yep, registered to your web site last night, I've also since taken a crack at Dansguardian and have got it working, just need to tighten up the configuration now.

Now off to figure out how to enable DHCP server under linux. Once again thanks for your help.
 
Old 04-17-2006, 06:35 PM   #11
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
If you want you can try my server setup scripts found at the bottom of the page, one of them will help you setup DDNS and DHCP, it's pretty easy and althought it is targets for fc5 it should work on fc4, DDNS and DHCP is only on version 8 under fc5
 
  


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
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
squid proxy problem linuxboy_inside Linux - Networking 2 01-04-2006 11:17 PM
Squid Proxy Problem algates Linux - Enterprise 1 11-13-2005 06:31 AM
squid proxy: load startup? flump Linux - Software 1 08-28-2003 09:42 AM
Squid proxy problem kelper Linux - Software 2 06-16-2003 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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