[squid-users] external acl helper

Eliezer Croitoru eliezer at ngtech.co.il
Sun Jan 22 11:58:57 UTC 2017


An example for a helper in python.
You will need to remove the whole memcache stuff and this is the basic structure:
http://wiki.squid-cache.org/EliezerCroitoru/SessionHelper/Python


----
http://ngtech.co.il/lmgtfy/
Linux System Administrator
Mobile: +972-5-28704261
Email: eliezer at ngtech.co.il


From: squid-users [mailto:squid-users-bounces at lists.squid-cache.org] On Behalf Of O?uz ?smail Uysal
Sent: Sunday, January 22, 2017 11:21 AM
To: squid-users at lists.squid-cache.org
Subject: [squid-users] external acl helper

Can I use a python script as external acl helper ? I have tested it quickly by adding these lines to squid.conf:

external_acl_type python %SRC /usr/bin/python ~/rekt.py
acl external_acl_helpers external python
http_access allow external_acl_helpers

And this is rekt.py:

#!/usr/bin/env python
print "OK"

As I sadly expected it did not work after restarting squid. Excuse my inadequate knowledge guys, how can I do this ?



More information about the squid-users mailing list