Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 09 November 2024, 07:40:39 am

Login with username, password and session length

Visit the Official Endian Bug tracker  HERE
14250 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  EFW SMTP, HTTP, SIP, FTP Proxy Support
| | |-+  squid fails to start due to squid.conf
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: squid fails to start due to squid.conf  (Read 20906 times)
sawilla
Full Member
***
Offline Offline

Posts: 12


« on: Monday 24 May 2010, 10:54:58 am »

I'm using EFW 2.3. When I enable the HTTP Proxy (transparent) in the web interface, it looks like it succeeds (the switch goes green) but all clients receive the error: (111) Connection refused. On the status page "Content filter" is shown as STOPPED, and the dashboard shows HTTP Proxy as OFF. The log at /var/log/squid/squid.out has the following errors:

FATAL: Bungled squid.conf line 87: acl allowed_ports       port "/etc/squid/acls/ports.acl"
Squid Cache (Version 2.6.STABLE22): Terminated abnormally.
FATAL: Bungled squid.conf line 87: acl allowed_ports       port "/etc/squid/acls/ports.acl"
Squid Cache (Version 2.6.STABLE22): Terminated abnormally.
2010/05/23 18:29:28| Creating Swap Directories
FATAL: Bungled squid.conf line 90: acl allowed_ports       port "/etc/squid/acls/ports.acl"
Squid Cache (Version 2.6.STABLE22): Terminated abnormally.

(last 2 lines repeat many times, then there are many repeats of:)

FATAL: Bungled squid.conf line 91: acl allowed_ports       port "/etc/squid/acls/ports.acl"
Squid Cache (Version 2.6.STABLE22): Terminated abnormally.

/etc/squid/squid.conf lines 87-91 are:
87: acl from_green          src "/etc/squid/acls/green_subnets.acl"
88: acl to_green            dst "/etc/squid/acls/green_subnets.acl"
89:
90: # allowed ports - acls
91: acl allowed_ports       port "/etc/squid/acls/ports.acl"

I've tried starting squid at the command prompt but it fails:
root@EndianFW:/etc/squid # /etc/init.d/squid start
init_cache_dir /var/spool/squid... Starting squid:         [FAILED]

I haven't modified the squid.conf file and I'm not sure what to try next. Thanks for your help.

Reg
Logged
sawilla
Full Member
***
Offline Offline

Posts: 12


« Reply #1 on: Saturday 29 May 2010, 01:44:52 am »

The problem turned out to be due to the comments following the allowed ports. I removed all the comments (e.g.: "80+#+http" was changed to "80") in the "Allowed ports and ssl ports" section of the "HTTP proxy: Configuration" page and then the service started OK.
Logged
Blazer79
Jr. Member
*
Offline Offline

Posts: 1


« Reply #2 on: Friday 14 February 2014, 09:11:10 am »

Thank you for this reply. I had this exact problem today. I can't understand why this problem is still arising almost 4 years later. I'm using version 2.5.1.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 18 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com