[squid-users] squid4.07 - ale missing adapted httprequest object

Jens Kallup jkallup at web.de
Fri Mar 25 23:32:21 UTC 2016


Hello Folks,

I download the latest squid4.07 sources last night.
I can compile it without erros.
I have a optimized squid.conf - it works with squid3.

But now, I get:

ale missing adapted httprequest object
ale missing url

in the cache.log and sites where not block!

Here is my squid.config, and the helper script:

---%<----
auth_param basic program /usr/lib/squid3/basic_ncsa_auth /sap/squid/passwd
auth_param basic children 4
auth_param basic utf8 on
auth_param basic realm Bitte geben Sie Ihren Benutzernamen und Passwort 
fuer die Internetberechtigung ein!
auth_param basic credentialsttl 60 minutes
auth_param basic casesensitive on

external_acl_type MyAclHelper %LOGIN %DST /sap/squid/helper.py

acl ncsa_users proxy_auth REQUIRED
acl block_list external MyAclHelper REQUIRED


acl localnet src 10.0.0.0/8        # RFC1918 possible internal network
acl localnet src 172.16.0.0/12        # RFC1918 possible internal network
acl localnet src 192.168.178.80

acl SSL_ports port 443
acl Safe_ports port 3128
acl Safe_ports port 80        # http
acl Safe_ports port 21        # ftp
acl Safe_ports port 443        # https
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 CONNECT method CONNECT

http_access allow ncsa_users !block_list


http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny all

http_port 192.168.178.80:3128

cache_mgr jkallup at web.de
cache_mem 8 MB

cache_effective_user  squid
cache_effective_group squid

error_directory  /usr/share/squid3/errors/de
error_default_language de

cache_dir ufs    /sap/var/spool/squid 64 16 128
cache_access_log /sap/squid/log/access.log
cache_log        /sap/squid/log/cache.log
cache_store_log  none

# Leave coredumps in the first cache dir
coredump_dir /sap/var/spool/squid

pid_filename /sap/squid/squid3.pid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320

logformat squid  %tl.%03tu %6tr %>a %un %Ss/%03>Hs %<st %rm %ru %Sh/%<A %mt
---%<----


----%<-------
#!/usr/bin/perl -l

use warnings;
use IO::Handle;
use URI::Escape;
use DBI;
use 5.010;

$|=1;

while (<>) {
     ($chid,$ip,$user,$dest) = split;
      $user =~ s/%(..)/pack("H*", $1)/ge;
      $dest =~ s/%(..)/pack("H*", $1)/ge;

     $dest = uri_unescape($dest);
     $user = uri_unescape($user);

     if ($dest eq "web.de") {
         print "OK user=" . $user;
     }  else {
         print "ERR";
     }
     if ($ip eq "0") {
        print $chid . "ERR";
     }
}
--%<---
can someone help me out to get squid4.07 working?

TIA
Jens

-- 
        .  ."|
       /| /  |  _.----._
      . |/  |.-"        ".  /|
     /                    \/ |__
    |           _.-"""/        /
    |       _.-"     /."|     /
     ".__.-"         "  |     \
        |              |       |
        /_      _.._   | ___  /
      ."  ""-.-"    ". |/.-.\/
     |    0  |    0  |     / |
     \      /\_     _/    "_/
      "._ _/   "---"       |
      /"""                 |
      \__.--                |_
        )          .        | ".
       /        _.-"\        |  ".
      /     _.-"             |    ".
     (_ _.-|                  |     |"-._.
       "    "--.             .J     _.-'
               /\        _.-" | _.-'
              /  \__..--"   _.-'
             /   |      _.-'
            /| /\|  _.-'
           / |/ _.-'
          /|_.-'
        _.-'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jkallup.vcf
Type: text/x-vcard
Size: 115 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160326/d7795df8/attachment.vcf>


More information about the squid-users mailing list