LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-28-2004, 01:31 PM   #1
Kaniaz
LQ Newbie
 
Registered: Mar 2004
Location: England
Distribution: Slackware Linux 9.1
Posts: 6

Rep: Reputation: 0
Squid Proxy starts, but will not serve pages [FIXED]


Hi, I've got a problem with running Squid Proxy (or any kind of proxy).

I install it and run it and it says "Ready to serve requests", but when I go to the windows box and try to go to a website (I have set the Proxy Adress + Port correctly), it just says "There was an error finding the server."

I tried all kinds of proxies and I tried accessing it from another windows box, but it does not work. The boxes can ping each other.

I am running Apache 2 on Linux box running the proxy.

If you need me to print the output of certain commands, I will do so gladly

Thanks for your help in advance!

Last edited by Kaniaz; 03-29-2004 at 11:52 AM.
 
Old 03-28-2004, 01:48 PM   #2
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
You have to edit your squid.conf file and define some ACLs. By default will only allow connections from localhost.

Look for ACL and you will see, you have to create an ACL and then allow access. I guess the info you already have in there is self explanatory

Then restart squid
 
Old 03-28-2004, 02:00 PM   #3
Kaniaz
LQ Newbie
 
Registered: Mar 2004
Location: England
Distribution: Slackware Linux 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
I have done that, but I am wondering if I have done it correctly? Here is a peice of the config:

Code:
acl our_networks src 192.168.0.0/24
http_access allow our_networks

# And finally deny all other access to this proxy
http_access deny all
Would that allow somebody on 192.168.0.2 or 192.168.0.4 (the window boxes IP's) to use squid? Or have I done it incorrectly? I had squid working before, only today it stopped working.. I don't recall doing anything to the configuration file either.
 
Old 03-29-2004, 10:22 AM   #4
Kaniaz
LQ Newbie
 
Registered: Mar 2004
Location: England
Distribution: Slackware Linux 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
Bump. Sorry, I don't like bumping, but nobody's anwsered my question yet and I really need some help with this. =/
 
Old 03-29-2004, 10:46 AM   #5
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
The rule seems to be ok. Unless there is a deny rule before, it should work.
I always use 192.168.0.0/255.255.255.0 instead of /24, but it should not make a dfference.

Check also the squid log and make sure the client is in fact connecting to the proxy. Maybe the problem is not the actual squid...
 
Old 03-29-2004, 11:51 AM   #6
Kaniaz
LQ Newbie
 
Registered: Mar 2004
Location: England
Distribution: Slackware Linux 9.1
Posts: 6

Original Poster
Rep: Reputation: 0
I edited it to the way you have it, and it works! Thankyou!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM
No able to Upload file to FTP serve using squid proxy simplyrahul Linux - General 2 02-16-2005 04:01 PM
apache won't serve pages gvaught Linux - Networking 6 12-08-2004 09:37 PM
Using Squid and Apache in order to better serve pages xbaez Linux - Networking 2 04-07-2004 05:26 PM


All times are GMT -5. The time now is 10:25 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration