Config Squid problem

Discussion in 'Server Operation' started by satimis, May 3, 2008.

  1. satimis

    satimis Member

    Hi folks,


    Ubuntu 6.05.3 server drake


    Following Configuration on;
    https://help.ubuntu.com/6.06/ubuntu/serverguide/C/squid.html


    encountered problem on running;
    $ sudo /etc/init.d/squid restart
    Code:
     * Restarting Squid HTTP proxy squid                                                                                  2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'acl'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'biz_hours'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'time'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'M'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'T'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'W'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'T'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: 'F'
    2008/05/04 02:45:57| aclParseIpData: Bad host/IP: '9:00-17:00'
    2008/05/04 02:45:57| ACL name 'biz_hours' not defined!
    FATAL: Bungled squid.conf line 1896: http_access allow biz_network biz_hours
    Squid Cache (Version 2.5.STABLE12): Terminated abnormally.
                                                                                                                   [fail]
    

    $ ifconfig
    Code:
    eth0      Link encap:Ethernet  HWaddr 00:13:D4:FE:DA:87  
              inet addr:192.168.0.52  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::213:d4ff:fefe:da87/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:6892 errors:0 dropped:0 overruns:0 frame:0
              TX packets:4086 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:1704476 (1.6 MiB)  TX bytes:1111100 (1.0 MiB)
              Interrupt:217 Base address:0xe000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:66 errors:0 dropped:0 overruns:0 frame:0
              TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:5176 (5.0 KiB)  TX bytes:5176 (5.0 KiB)
    
    Please advise where shall I check and how to rectify the problem? TIA


    B.R.
    satimis
     
  2. topdog

    topdog Active Member

    move this
    Code:
    acl biz_hours time M T W T F 9:00-17:00
    to its own line
     
  3. satimis

    satimis Member

    Noted with thanks.

    Problem solved.


    satimis
     

Share This Page