2014-10-28 45 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)

回答