Discussion Locked

squid server

0 helpful
12 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

i had installed squid server and start the
service but when i am browsing from clients
i am receiving an error message access is
denied tell me solution for this as if i am
new to linux

12 replies

by schannachie

Hi,

If you had read the readme files and your squid is not behind a firewall the sample configuration may work until you get used to modifing the configuration file to its best shape.

You've got some commands for the squid daemon, the list of command you can invoke using the command :

squid --help

man squid (if you have installed man pages for squid)

info squid

first (now that you are shure that it is installed correctly and that you can command the daemon):

the file squid.conf that the squid daemon reads must be at the /etc/squid directory and not at the /etc.

once you have checked this out you have to open the squid.conf file and see the port that the squid is sending to the net, the ports can be 80 or 3128.3128 is used also to set peer squid caches or parten-child relations between squid caches. So be shure that the out socket is 80 or the same that you have configured your workstations browser.

second:

Check out that the lan card that faces your lan is realy connected fisicaly at the lan and not at the routing device (it's one of the most offen mistakes). Check out the acl (access control lists) read very carefully the comments and set them in the correct order because in other way you will not reach the public network. If you have more trouble you can get more help at:

http://www.squid-cache.org

If your squid.conf is not correct or you've got to much trouble to set it at the default values, you can get a fresh copy at :

ftp://ftp.squid-cache.org/pub/squid-2/STABLE/

for info you can download

ftp://ftp.squid-cache.org/pub/Scripts/

good luck and hope it helps !

by schannachie

Please remember that in this case you are not using the firewalling extentions of the kernel this is how to configure the squid.conf file only.

by ampl

You may wish to download and install 'webmin'
for your distribution. Webmin allows you to
adjust most of the parameters without
resorting to text files, etc. I've used
webmin on my proxy server for a while now,
and find it useful to adjust itfor changes.

Good luck

by cyrille

in additionally to schannachie answer:

Are you sure, the squid demon really started.
please check with this:

$> netstat -an

and you should be see some listening port: 80, or 3128 ,depending on on wich port your squid is setting up to listen). The problem is, that the squid may be run, but actionally there isn't the opened port for accepting requires from the LAN.

Also, the squid config file may be placed on different directories; For example on latest SuSE distributions, the squid installed in /usr/local/squid and conf file is in ~/conf. (in other cases - /var/squid/squid.conf)

the other problem may occurs if there is a fireall installed on linux box and this firewall rejects the requires on any of the below ports. If yes you shoulkd accept request from LAN on the squid's port.

good luck
cyrille

by mayurdeodhar

i think ur problems solution s simple:
by default the squid.conf file has access allowed to only localhost. and access to all other users is denied by default. the same s reflected in the configuration line:
http_access deny all
what u need to dois simply change the above line in the squid.conf file to :
http_access allow all
and things would work out

hope this helps u

by taisn

Hi there,

You need to perform the following steps in order to get rid of this problem.

Define DNS entry in your client machine as those of ISP's DNS Server through which your server is connected.

Define gateway entry in your client machine as those of IP number of your server.

Define proxy entry in your browser like Internet Explorer or Netscape with the IP number of your server and with port 3128 (the default port of Squid Server).

Hope all the above steps will help you to solvethe problem.

Tahir
Pakistan

This discussion is closed to new replies.