LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   squid problem on RHEL Release 5 (https://www.linuxquestions.org/questions/linux-enterprise-47/squid-problem-on-rhel-release-5-a-580109/)

Dogar 08-27-2007 05:23 AM

squid problem on RHEL Release 5
 
hi all

i have installed RHEL Release 5. when i configure the squid 2.6 on it as well as my requirement is that
1- configure individual cache on /cache (which has isolated mount point)
mean to say.
# cache_dir /var/spool/squid 100 16 256
cache_dir /cache 10000 16 256

2- squid configure on port 80 (listening port 80 either 3128)


but when i try to start the service of squid
i got a error page
cache_dir permission deny
squid cant listen port 80

note; i can change ownership of /cache directory from root to squid
also crating swap directories by squid -z

but again i can start the service of squid
i got the same error

plz help me for both cases.

Dogar 08-28-2007 05:43 AM

hi all

as i mentiond in above post i have two problems.the first one i have solved.the second one about port.when i change port from 3128 to 80 following error is generatd.

"can not bind Socket FD 12 to *:80: (13) Permission denid.
FATAL: can not open HTTP port"

plz help me..

docalton 08-28-2007 07:31 AM

Are you running a web server such as apache on this system?

You can't have 2 services listening on the same port on the same interface.

Dogar 08-28-2007 10:53 PM

hi docalton

The service of apache is stoped.

gilead 08-28-2007 11:07 PM

What user were you logged in as when you tried to start Squid? You should be logged in as root but you should have Squid configured to run as a non-privileged user with the cache_effective_user and cache_effective_group settings.

I haven't tried running Squid on port 80 (it's a privileged port by the way, < 1024), is there any reason you can't run it on the default port of 3128?

Dogar 08-29-2007 05:38 AM

hi gilead

i login as root.and i do same as u say but it still give error of permission.
Our network is consist of more then 4000 nodes and its very diffecult to change proxy settings on every machine.
is there any other solaution ????


plz help me....

bilal

gilead 08-29-2007 02:17 PM

I'd suggest looking through the info at the Squid FAQ. The only info I found suggests that the problem is that you need to start Squid as the root user (FATAL: Cannot open HTTP Port). They mention that you can't start Squid as root and continue to run it that way (Why Can't I run Squid as root?) and that the suggested solution is to use the cache_effective_user setting (FATAL: Don't run Squid as root, set 'cache_effective_user'!)

gr8scot 09-03-2007 06:24 PM

Use nodes' proxy settings on server
 
Quote:

Originally Posted by Dogar (Post 2874420)
Our network is consist of more then 4000 nodes and its very difficult to change proxy settings on every machine. is there any other solution ????

There is another thread on LQ that might help you:
http://www.linuxquestions.org/questi...id#post2725475

Member win32sux is explaining how to use iptables to REDIRECT traffic from clients to the port used by Squid (& Dansguardian).

HTH


All times are GMT -5. The time now is 03:28 PM.