LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-10-2003, 04:44 PM   #1
ryhackl
LQ Newbie
 
Registered: Jun 2003
Distribution: Red Hat 7.2
Posts: 6

Rep: Reputation: 0
Squid denies everything


I'm running Mandrake 9.1 on a new server. TCP/IP and network interfaces are set up correctly (i.e. I can "get on the network and Internet"). When I install the SQUID rpm and set up the proxy server, (without changing any of the settings), SQUID disallows everything with the following message:

>ERROR
>
>The requested URL could not be retrieved
>
>While trying to retrieve the URL: http://www.google.com/
>
>The following error was encountered:
>
>Access Denied.
>
>Access control configuration prevents your request from being
>allowed at this time. Please contact your service provider if you
>feel this is incorrect.
>
>Your cache administrator is root.

What's curious is that I've set up SQUID before this way (to test for functionality before setting ACLs), and it's always worked. Any suggestions?

- Ryan
 
Old 06-10-2003, 06:47 PM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
You probably just need to define an allowed network... Also, I've noticed that Squid is sensitive to the order in which the rules are listed in the config file, so that also have something to do with it...
like 'http_acccess allow network' before 'http_access deny all'.


Last edited by bentz; 06-10-2003 at 06:54 PM.
 
Old 06-10-2003, 10:58 PM   #3
ryhackl
LQ Newbie
 
Registered: Jun 2003
Distribution: Red Hat 7.2
Posts: 6

Original Poster
Rep: Reputation: 0
Just to be sure...

Is that in the http_access section, ACL section, or somewhere else?
 
Old 06-11-2003, 03:42 AM   #4
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Short answer: the allowed network is defined in the 'acl' section, and the rule allowing access is under the 'http_access' section.

For squid-2.4.STABLE6-6.7.3 (the latest version for RH7.2) /etc/squid/squid.conf:

Line 1418: acl localhost src 127.0.0.1/255.255.255.255
Stick another line in: acl yournetwork src 192.168.0.0/255.255.255.0

Line 1466: http_access allow localhost
Stcik another line in: http_access allow yournetwork

Restart Squid [nessasary?] (/etc/rc.d/init.d/squid restart) and you should be off and running.

These numbers might not be perfect, but the file is friggin' huge, so this should at least get you on the right page.
 
  


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
Sudo Su denies password accepted bu just Su arew264 Linux - Software 2 09-29-2005 07:35 PM
in.rsdh denies access to root sylliaad Linux - Security 2 07-13-2005 06:23 PM
Suse 9.1 Kinternet denies me Phaen Ilda Linux - Newbie 5 12-01-2004 06:09 PM
Proftp denies connections Squiddy Linux - Networking 8 11-05-2003 10:27 PM
windoz can see but denies share laminapoo Linux - Networking 2 10-21-2003 08:13 AM

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

All times are GMT -5. The time now is 07:26 PM.

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