On Tue, 2013-08-13 at 11:12 -0300, Oliveiros Peixoto (Netinho) wrote:
> I need get ip address of user in my own auth basic script. Exist some
> method to pass that can i get the ip?
> My auth basic getting the username and password and check in mysql
> table, if ok, he will write in other table the username and ip address
> of user. How can work with this?
You probably want to have a read of
http://wiki.squid-cache.org/Features/AddonHelpers
and
http://www.squid-cache.org/Doc/config/external_acl_type/
You basically want to add the following to the squid.conf
external_acl_type <name> %LOGIN %SRC <your script>
Your script will then receive the source ip and username on standard in.
You can then reply ERR or OK on standard out.
Cheers,
-- Michael Graham <mgraham_at_bloxx.com>Received on Tue Aug 13 2013 - 14:24:45 MDT
This archive was generated by hypermail 2.2.0 : Tue Aug 13 2013 - 12:00:23 MDT