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: ...
- 05-03-2008 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
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 restartCode:* 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]
$ ifconfigPlease advise where shall I check and how to rectify the problem? TIACode: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)
B.R.
satimis
- 05-03-2008 #2
how about posting some of your squid.conf? specifically the part where you define biz_hours
- 05-03-2008 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
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;$ sudo /etc/init.d/squid restartCode:acl biz_network src 10.1.42.0/24 acl biz_hours time M T W T F 9:00-17:00
Problem disappeared. But another warning "Bad host/IP" popup. What dose it refer and how to fix it? ThanksCode:* Restarting Squid HTTP proxy squid 2008/05/04 06:03:39| aclParseIpData: Bad host/IP: 'acl' [ ok ]
B.R.
satimis
- 05-03-2008 #4
if you comment out that line does the error go away?
if so, can you post your squid.conf or pm it to me?
- 05-03-2008 #5Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
/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
- 05-03-2008 #6
you have this line
it should be thisCode:acl biz_network src 10.1.42.0/24 acl
then #squid -k reconfigureCode:acl biz_network src 10.1.42.0/24
or just restart
- 05-03-2008 #7Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546


Reply With Quote
