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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-05-2008, 08:36 PM   #1
ubuntu777
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
Squid 2.6 always_direct problem


Guys

This is a copy of my squid.config file when I run SQUID it fails.
On debugging I get the following error

ACL name 'all' not defined!
FATAL: Bungled squid.conf line 4: always_direct allow all
SQUID Cache (Version 2.6 STABLE16) Terminated abnormally

OS is Fedora 7

Your urgent attention will be very helpful.

Best
Ubuntu777
_______________________________________________________________
http_port 172.168.10.10:8080 transparent
http_port 80 vhost
http_port 127.0.0.1:8080 transparent
always_direct allow all

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 mynet src 172.168.10.0/255.255.255.0 #(netmask is deliberate)
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

http_access allow mynet
http_access allow manager localhost
http_access deny manager
# Deny requests to unknown ports
http_access deny !Safe_ports
# Deny CONNECT to other than SSL ports
http_access deny CONNECT !SSL_ports
 
Old 08-06-2008, 12:14 AM   #2
Red_Man
LQ Newbie
 
Registered: Nov 2007
Location: Dallas, TX
Distribution: RHEL, CentOS, Fedora
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by ubuntu777 View Post
Guys

This is a copy of my squid.config file when I run SQUID it fails.
On debugging I get the following error

ACL name 'all' not defined!
FATAL: Bungled squid.conf line 4: always_direct allow all
SQUID Cache (Version 2.6 STABLE16) Terminated abnormally
...
Squid tells you what it needs. Squid cannot run without ACL all so you MUST to define this list.

acl all src "path/to/file"

or

acl all src 0.0.0.0/0.0.0.0
 
Old 08-06-2008, 09:22 AM   #3
ubuntu777
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by deb2304 View Post
Squid tells you what it needs. Squid cannot run without ACL all so you MUST to define this list.

acl all src "path/to/file"

or

acl all src 0.0.0.0/0.0.0.0
I have tried to seperate the ACL in a seperate file but it does not work. The issue is with the parameter always_direct allow all
. How can I allow the acl's that are defined in the file.
 
Old 08-06-2008, 11:23 PM   #4
Red_Man
LQ Newbie
 
Registered: Nov 2007
Location: Dallas, TX
Distribution: RHEL, CentOS, Fedora
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by ubuntu777 View Post
I have tried to seperate the ACL in a seperate file but it does not work. The issue is with the parameter always_direct allow all
. How can I allow the acl's that are defined in the file.
What is version of your squid?
 
Old 08-07-2008, 08:07 AM   #5
ubuntu777
LQ Newbie
 
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
SQUID 2.6 Stable 16
 
  


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
Squid Problem Peter_APIIT Linux - Server 11 03-28-2007 01:56 AM
never_direct deny all vs. always_direct deny all simplyrahul Linux - General 1 02-16-2005 02:42 PM
Squid problem. hiplainsdrifter Linux - Networking 2 04-24-2004 08:50 AM
squid problem htm Linux - Networking 22 04-11-2004 03:50 AM
squid problem... Hacker Linux - Networking 3 05-19-2003 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:04 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