[squid-users] username from external_acl to url_rewrite_program

Andrew Lavrinenko lxlight at gmail.com
Thu Feb 4 11:02:49 UTC 2016


Hello, everyone!

In my configuration of squid not used authorization based on auth_param but
user name was fetched from database throught self writed script. In squid
3.3 all works fine, but in 3.5 i have a problem, user name returned from
script not sended to redirector program.
squid.conf:
...

url_rewrite_program /usr/bin/tee /tmp/squid.log
url_rewrite_children 10 startup=5 idle=1 concurrency=0
url_rewrite_bypass on

external_acl_type ip_auth ttl=120 negative_ttl=1 children-max=8
children-startup=2 protocol=2.5 %SRC /usr/local/bin/squid_ip_auth.pl

acl authorized_ips external ip_auth
http_access allow authorized_ips
...

/tmp/squid.log:
http://awaps.yandex.ru/8/8980/336280 192.168.0.114/grey-xp.int.rdw.ru - GET
myip=192.168.0.226 myport=3128

/var/log/squid/access.log:
1454582114.059     11 192.168.0.114 TCP_MISS/200 5137 GET
http://awaps.yandex.ru/8/8980/336280 TECHCENTER\\sas HIER_DIRECT/
87.250.250.131 application/x-javascript

any suggestions?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160204/c4d316e3/attachment-0001.html>


More information about the squid-users mailing list