HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Squid Proxy Caching on Linux (http://www.howtoforge.com/forums/showthread.php?t=23161)

obzerver 11th May 2008 13:02

Squid Proxy Caching on Linux
 
Hi,

I need help with Squid Proxy Caching Software.

I have reviewed the official Squid documents and searched the web extensively for it but couldn't find a simple configuration guide.


Here is my problem:

1- I installed FREEBSD release 7 [ Full Installation ]

2- I installed SQUID 3
./configure
make
make install

3. added only
visible_hostname myhost

4. run the command
./squid -z

5. ./squid start

but ./squid -k check
gives me:
Squid: error: could not send signal 0 to process 15456: (3) no such process



my question:
what is the minimum configuration i can do to start using squid just ?

thanks

topdog 11th May 2008 14:45

why are you buiding your own squid when bsd ships with squid ?

obzerver 12th May 2008 08:29

I didn't know that. I am new windows-to-linux user.

ANyway, i have installed squid

here is the log
Quote:

Originally Posted by cache.log
Originally Posted by cache.log
2008/05/11 11:58:37| Creating Swap Directories
2008/05/11 11:58:37| Making directories in /usr/local/squid/var/cache/00
2008/05/11 11:58:37| Making directories in /usr/local/squid/var/cache/01
2008/05/11 11:58:37| Making directories in /usr/local/squid/var/cache/02
2008/05/11 11:58:37| Making directories in /usr/local/squid/var/cache/03
2008/05/11 11:58:37| Making directories in /usr/local/squid/var/cache/04
2008/05/11 11:58:38| Making directories in /usr/local/squid/var/cache/05
2008/05/11 11:58:38| Making directories in /usr/local/squid/var/cache/06
2008/05/11 11:58:38| Making directories in /usr/local/squid/var/cache/07
2008/05/11 11:58:38| Making directories in /usr/local/squid/var/cache/08
2008/05/11 11:58:39| Making directories in /usr/local/squid/var/cache/09
2008/05/11 11:58:39| Making directories in /usr/local/squid/var/cache/0A
2008/05/11 11:58:39| Making directories in /usr/local/squid/var/cache/0B
2008/05/11 11:58:40| Making directories in /usr/local/squid/var/cache/0C
2008/05/11 11:58:40| Making directories in /usr/local/squid/var/cache/0D
2008/05/11 11:58:40| Making directories in /usr/local/squid/var/cache/0E
2008/05/11 11:58:40| Making directories in /usr/local/squid/var/cache/0F
2008/05/11 12:00:01| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 12:00:01| Process ID 15444
2008/05/11 12:00:01| With 7168 file descriptors available
2008/05/11 12:00:01| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 5428 KB
Page faults with physical i/o: 0
2008/05/11 14:46:06| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:46:06| Process ID 2128
2008/05/11 14:46:06| With 7168 file descriptors available
2008/05/11 14:46:06| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 4532 KB
Page faults with physical i/o: 0
2008/05/11 14:46:12| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:46:12| Process ID 2132
2008/05/11 14:46:12| With 7168 file descriptors available
2008/05/11 14:46:12| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 3964 KB
Page faults with physical i/o: 0
2008/05/11 14:47:06| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:47:06| Process ID 2134
2008/05/11 14:47:06| With 7168 file descriptors available
2008/05/11 14:47:06| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.000 user + 0.019 sys
Maximum Resident Size: 4000 KB
Page faults with physical i/o: 0
2008/05/11 14:47:09| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:47:09| Process ID 2136
2008/05/11 14:47:09| With 7168 file descriptors available
2008/05/11 14:47:09| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.019 user + 0.000 sys
Maximum Resident Size: 5380 KB
Page faults with physical i/o: 0
2008/05/11 14:47:15| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:47:15| Process ID 2138
2008/05/11 14:47:15| With 7168 file descriptors available
2008/05/11 14:47:15| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 5472 KB
Page faults with physical i/o: 0
2008/05/11 14:48:09| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:48:09| Process ID 2140
2008/05/11 14:48:09| With 7168 file descriptors available
2008/05/11 14:48:09| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.014 user + 0.005 sys
Maximum Resident Size: 5476 KB
Page faults with physical i/o: 0
2008/05/11 14:48:12| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:48:12| Process ID 2142
2008/05/11 14:48:12| With 7168 file descriptors available
2008/05/11 14:48:12| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.019 user + 0.000 sys
Maximum Resident Size: 5004 KB
Page faults with physical i/o: 0
2008/05/11 14:48:18| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:48:18| Process ID 2144
2008/05/11 14:48:18| With 7168 file descriptors available
2008/05/11 14:48:18| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 5284 KB
Page faults with physical i/o: 0
2008/05/11 14:49:12| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:49:12| Process ID 2146
2008/05/11 14:49:12| With 7168 file descriptors available
2008/05/11 14:49:12| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.000 user + 0.019 sys
Maximum Resident Size: 4672 KB
Page faults with physical i/o: 0
2008/05/11 14:49:15| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:49:15| Process ID 2148
2008/05/11 14:49:15| With 7168 file descriptors available
2008/05/11 14:49:15| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.000 user + 0.019 sys
Maximum Resident Size: 3964 KB
Page faults with physical i/o: 0
2008/05/11 14:49:21| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:49:21| Process ID 2150
2008/05/11 14:49:21| With 7168 file descriptors available
2008/05/11 14:49:21| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 4048 KB
Page faults with physical i/o: 0
2008/05/11 14:50:15| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:50:15| Process ID 2155
2008/05/11 14:50:15| With 7168 file descriptors available
2008/05/11 14:50:15| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.019 user + 0.000 sys
Maximum Resident Size: 5472 KB
Page faults with physical i/o: 0
2008/05/11 14:50:18| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:50:18| Process ID 2157
2008/05/11 14:50:18| With 7168 file descriptors available
2008/05/11 14:50:18| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 5380 KB
Page faults with physical i/o: 0
2008/05/11 14:50:24| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:50:24| Process ID 2159
2008/05/11 14:50:24| With 7168 file descriptors available
2008/05/11 14:50:24| Performing DNS Tests...
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.014 user + 0.005 sys
Maximum Resident Size: 5472 KB
Page faults with physical i/o: 0
2008/05/11 14:52:30| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:52:30| Process ID 2174
2008/05/11 14:52:30| With 7168 file descriptors available
2008/05/11 14:52:30| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.000 user + 0.019 sys
Maximum Resident Size: 4408 KB
Page faults with physical i/o: 0
2008/05/11 14:53:24| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:53:24| Process ID 2176
2008/05/11 14:53:24| With 7168 file descriptors available
2008/05/11 14:53:24| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.019 user + 0.000 sys
Maximum Resident Size: 5380 KB
Page faults with physical i/o: 0
2008/05/11 14:53:27| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:53:27| Process ID 2178
2008/05/11 14:53:27| With 7168 file descriptors available
2008/05/11 14:53:27| Performing DNS Tests...
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.019 user + 0.000 sys
Maximum Resident Size: 5276 KB
Page faults with physical i/o: 0
2008/05/11 14:53:33| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:53:33| Process ID 2180
2008/05/11 14:53:33| With 7168 file descriptors available
2008/05/11 14:53:33| Performing DNS Tests...
2008/05/11 14:54:10| Starting Squid Cache version 3.0.STABLE5 for i386-unknown-freebsd7.0...
2008/05/11 14:54:10| Process ID 2182
2008/05/11 14:54:10| With 7168 file descriptors available
2008/05/11 14:54:10| DNS Socket created at 0.0.0.0, port 52328, FD 4
2008/05/11 14:54:10| Adding nameserver 212.46.48.7 from /etc/resolv.conf
2008/05/11 14:54:11| Unlinkd pipe opened on FD 9
2008/05/11 14:54:11| Swap maxSize 102400 KB, estimated 7876 objects
2008/05/11 14:54:11| Target number of buckets: 393
2008/05/11 14:54:11| Using 8192 Store buckets
2008/05/11 14:54:11| Max Mem size: 8192 KB
2008/05/11 14:54:11| Max Swap size: 102400 KB
2008/05/11 14:54:11| Version 1 of swap file with LFS support detected...
2008/05/11 14:54:11| Rebuilding storage in /usr/local/squid/var/cache (DIRTY)
2008/05/11 14:54:11| Using Least Load store dir selection
2008/05/11 14:54:11| Set Current Directory to /usr/local/squid/var/cache
2008/05/11 14:54:12| Loaded Icons.
2008/05/11 14:54:12| Accepting HTTP connections at 0.0.0.0, port 3128, FD 11.
2008/05/11 14:54:12| Accepting ICP messages at 0.0.0.0, port 3130, FD 12.
2008/05/11 14:54:12| HTCP Disabled.
2008/05/11 14:54:12| Ready to serve requests.
2008/05/11 14:54:12| Done reading /usr/local/squid/var/cache swaplog (0 entries)
2008/05/11 14:54:12| Finished rebuilding storage from disk.
2008/05/11 14:54:12| 0 Entries scanned
2008/05/11 14:54:12| 0 Invalid entries.
2008/05/11 14:54:12| 0 With invalid flags.
2008/05/11 14:54:12| 0 Objects loaded.
2008/05/11 14:54:12| 0 Objects expired.
2008/05/11 14:54:12| 0 Objects cancelled.
2008/05/11 14:54:12| 0 Duplicate URLs purged.
2008/05/11 14:54:12| 0 Swapfile clashes avoided.
2008/05/11 14:54:12| Took 0.25 seconds ( 0.00 objects/sec).
2008/05/11 14:54:12| Beginning Validation Procedure
2008/05/11 14:54:12| Completed Validation Procedure
2008/05/11 14:54:12| Validated 25 Entries
2008/05/11 14:54:12| store_swap_size = 0
2008/05/11 14:54:12| storeLateRelease: released 0 objects
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 3960 KB
Page faults with physical i/o: 0
2008/05/11 14:54:27| Squid is already running! Process ID 2182
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 4992 KB
Page faults with physical i/o: 0
2008/05/11 14:54:30| Squid is already running! Process ID 2182
2008/05/11 14:54:30| Squid is already running! Process ID 2182
2008/05/11 14:54:33| Squid is already running! Process ID 2182
2008/05/11 14:54:33| Squid is already running! Process ID 2182
FATAL: ipcache_init: DNS name lookup tests failed.
Squid Cache (Version 3.0.STABLE5): Terminated abnormally.
CPU Usage: 0.019 seconds = 0.010 user + 0.010 sys
Maximum Resident Size: 4048 KB
Page faults with physical i/o: 0
2008/05/11 14:54:36| Squid is already running! Process ID 2182
2008/05/11 14:54:36| Squid is already running! Process ID 2182
2008/05/11 14:54:36| Squid is already running! Process ID 2182
2008/05/11 14:54:39| Squid is already running! Process ID 2182
2008/05/11 14:54:39| Squid is already running! Process ID 2182
2008/05/11 14:54:39| Squid is already running! Process ID 2182
2008/05/11 14:54:42| Squid is already running! Process ID 2182
2008/05/11 14:54:42| Squid is already running! Process ID 2182
2008/05/11 14:54:45| Squid is already running! Process ID 2182
2008/05/11 14:54:48| Squid is already running! Process ID 2182
2008/05/11 14:57:41| Preparing for shutdown after 0 requests
2008/05/11 14:57:41| Waiting 0 seconds for active connections to finish
2008/05/11 14:57:41| FD 11 Closing HTTP connection
2008/05/11 14:57:42| Shutting down...
2008/05/11 14:57:42| FD 12 Closing ICP connection
2008/05/11 14:57:42| Closing unlinkd pipe on FD 9
2008/05/11 14:57:42| storeDirWriteCleanLogs: Starting...
2008/05/11 14:57:42| Finished. Wrote 0 entries.
2008/05/11 14:57:42| Took 0.00 seconds ( 0.00 entries/sec).
CPU Usage: 1.168 seconds = 0.440 user + 0.728 sys
Maximum Resident Size: 9588 KB
Page faults with physical i/o: 1
2008/05/11 14:57:42| Squid Cache (Version 3.0.STABLE5): Exiting normally.

in squid.conf
i have added
visible_hostname mylinux
http_access allow all
icp_access allow all
cache_dir ufs /usr/local/squid/var/cache/ 100 16 256

obzerver 12th May 2008 11:13

never mind, it works after little tuning up in the squid.conf

Now a quick question for the Squid Guru

How I can I add user authentication for the proxy


Anyone who connects to the proxy should get a username and password for verification..

how can I enable this on squid.

thanks

briealeida 13th August 2008 19:51

Try this:
http://www.google.com/search?hl=en&q...=Google+Search

There is more than one way use authentication with Squid. Read some of these links and HOWTOs and give it a shot yourself.


All times are GMT +2. The time now is 11:43.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.