Find the answer to your Linux question:
Results 1 to 7 of 7
Hi folks, Ubuntu 6.05.3 server drake Following Configuration on; https://help.ubuntu.com/6.06/ubuntu/...e/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: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    Squid setup problem


    Hi folks,


    Ubuntu 6.05.3 server drake


    Following Configuration on;
    https://help.ubuntu.com/6.06/ubuntu/...e/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. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    how about posting some of your squid.conf? specifically the part where you define biz_hours

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by jledhead View Post
    how about posting some of your squid.conf? specifically the part where you define biz_hours
    After changing the line
    Code:
    acl biz_network src 10.1.42.0/24 acl biz_hours time M T W T F 9:00-17:00

    into 2 lines as;
    Code:
    acl biz_network src 10.1.42.0/24
    acl biz_hours time M T W T F 9:00-17:00
    $ sudo /etc/init.d/squid restart
    Code:
     * Restarting Squid HTTP proxy squid
    2008/05/04 06:03:39| aclParseIpData: Bad host/IP: 'acl'
                                              [ ok ]
    Problem disappeared. But another warning "Bad host/IP" popup. What dose it refer and how to fix it? Thanks


    B.R.
    satimis

  4. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    if you comment out that line does the error go away?

    if so, can you post your squid.conf or pm it to me?

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778
    Quote Originally Posted by jledhead View Post
    if you comment out that line does the error go away?

    if so, can you post your squid.conf or pm it to me?
    /etc/squid/squid.conf
    Code:
    http_port 8888
    visible_hostname weezie
    hierarchy_stoplist cgi-bin ?
    acl QUERY urlpath_regex cgi-bin \?
    no_cache deny QUERY
    hosts_file /etc/hosts
    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      # https, snews
    acl SSL_ports port 873          # rsync
    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 Safe_ports port 631         # cups
    acl Safe_ports port 873         # rsync
    acl Safe_ports port 901         # SWAT
    acl purge method PURGE
    acl CONNECT method CONNECT
    acl fortytwo_network src 192.168.42.0/24
    acl biz_network src 10.1.42.0/24 acl 
    acl biz_hours time M T W T F 9:00-17:00
    http_access allow fortytwo_network
    http_access allow biz_network biz_hours
    http_access allow manager localhost
    http_access deny manager
    http_access allow purge localhost
    http_access deny purge
    http_access deny !Safe_ports
    http_access deny CONNECT !SSL_ports
    http_access allow localhost
    http_access deny all
    http_reply_access allow all
    icp_access allow all
    coredump_dir /var/spool/squid

  6. #6
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    you have this line
    Code:
    acl biz_network src 10.1.42.0/24 acl
    it should be this
    Code:
    acl biz_network src 10.1.42.0/24
    then #squid -k reconfigure

    or just restart

  7. #7
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,778

    Problem SOLVED

    Quote Originally Posted by jledhead View Post
    you have this line
    Code:
    acl biz_network src 10.1.42.0/24 acl
    it should be this
    Code:
    acl biz_network src 10.1.42.0/24
    then #squid -k reconfigure

    or just restart
    Your advice works for me here. Thanks


    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •