squid 3.1.19 external_acl_type fail
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squid3 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
System: ubuntu 12.04.1
Squid: 3.1.19-
In squid.conf:
...
external_acl_type testcom_ip ttl=0 children=5 ipv4 %SRC php /php/squid_
acl testcom_ipacl external testcom_ip
http_access allow testcom_ipacl
http_access deny all
...
In the /php/squid_
<?php
$time=null;
$output=null;
while ($i = fopen('
$ii = fgets($i);
$s = trim($ii);
fclose($i);
if ($s == NULL) {
if ($time == time()) {
break;
} else {
$time = time();
continue;
}
}
$o = fopen('
#fwrite($o,"OK user=test\n");
fwrite($o,"OK\n");
fclose($o);
}
?>
Client use the Squid server as proxy and will get "Access Deny" many time. It seems squid will miss the external_acl_type acl ( "http_access allow testcom_ipacl") of config.conf in sometime.
description: | updated |
Changed in squid3 (Ubuntu): | |
status: | Invalid → New |
importance: | Undecided → Medium |
description: | updated |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
What is your "testcom" ACL? Are you aware that http_access ANDs its arguments, and so will never evaluate the second argument if the first argument fails?
Since this appears to be expected behaviour to me, this looks like a local configuration problem, rather than a bug in Ubuntu. So I'm marking this bug as Invalid.
You can find pointers to get help for this sort of problem here: http:// www.ubuntu. com/support/ community
If you believe that this is really a bug, please explain, and then change the bug status back to New.