Fedora Linux Support Community & Resources Center
  #1  
Old 10th June 2008, 06:11 AM
xMoDx Offline
Registered User
 
Join Date: Apr 2008
Age: 29
Posts: 7
Squid Proxy problem

Quote:
ERROR
The requested URL could not be retrieved

While trying to retrieve the URL: http://forums.fedoraforum.org/forum/

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.
attached is my config file, can someone please help me what i forgot to uncomment and change in settings?
Attached Files
File Type: conf squid.conf (118.0 KB, 56 views)
__________________
http://blog.xmodx.com/
Reply With Quote
  #2  
Old 10th June 2008, 12:36 PM
homey Offline
Registered User
 
Join Date: Feb 2005
Posts: 415
The first thing I do is run this command to make the squid.conf readable with a backup file so I can lookup other sections if needed.
Code:
# Trim down the squid.conf
sed -i.bak '/^$/d; /^#/d' /etc/squid/squid.conf
I also make the realm name shorter so it's less confusing
Code:
auth_param basic realm caching_server
I was able to get your error when my ip address didn't match the ip range in
our_networks. So, check to be sure you are actually on that network or change it in the squid.conf
Code:
acl our_networks src 192.168.1.0/24 192.168.2.0/24
Here's what does work on my system...
Code:
auth_param basic realm caching_server
auth_param basic children 5
auth_param basic credentialsttl 2 hour
auth_param basic casesensitive off

refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80		# http
acl Safe_ports port 21		# ftp
acl Safe_ports port 443 563	# https, snews
acl Safe_ports port 70		# gopher
acl Safe_ports port 210		# wais
acl Safe_ports port 1025-65535	# unregistered ports
acl Safe_ports port 280		# http-mgmt
acl Safe_ports port 488		# gss-http
acl Safe_ports port 591		# filemaker
acl Safe_ports port 777		# multiling http
acl CONNECT method CONNECT
acl our_networks src 192.168.1.0/24 192.168.2.0/24

http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow our_networks
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all

http_port 3128
hierarchy_stoplist cgi-bin ?
access_log /var/log/squid/access.log squid
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
refresh_pattern ^ftp:		1440	20%	10080
refresh_pattern ^gopher:	1440	0%	1440
refresh_pattern .		0	20%	4320
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache
coredump_dir /var/spool/squid
Reply With Quote
Reply

Tags
problem, proxy, squid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server cache_dir in different partition problem tr3s Servers & Networking 0 16th October 2009 02:46 AM
Problem configuring IPTABLES for SQUID transparent proxy popacio Servers & Networking 12 5th April 2008 02:43 PM
Squid Proxy spearball Servers & Networking 2 15th October 2007 06:19 AM


Current GMT-time: 00:24 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat