2014-10-28 48 views
0

我想在鱿鱼中使用我自己的身份验证程序,如下所示。如何配置squid传递客户端ip来验证程序?

auth_param basic program /usr/bin/python python_script_location 
auth_param basic children 20 
auth_param basic realm Username and password 
auth_param basic credentialsttl 5 hours 

但默认情况下只鱿鱼通过用户名和密码python_script_location(见例如这里http://gofedora.com/how-to-write-custom-basic-authentication-plugin-squid-python/)。

是否可以传递一些内置值作为额外的参数? 例如客户端IP,鱿鱼服务器的IP(我有多个输出IP地址,我想知道客户端访问哪个IP)

回答