On Fri, 13 May 2005, Truong Tan Son wrote:
Dear Sir,
I use "external_acl_type" TAB to check the match of username and IP client but don't know how to get %LOGIN & %SRC on my script.
external_acl_type checkip children=20 %LOGIN %SRC /usr/local/squid/bin/script.sh
Please could help me howto get "%LOGIN" and "%SRC" on script.sh
It is sent on the request line sent to your script, one line per request.
The format is documented under the external_acl_type directive in squid.conf.
#!/bin/sh while read login source; do echo OK done
Regards Henrik