[squid-users] ICAP: how to get port of X-Client-IP

2014-12-12 Thread Alexander Bubnov
Hello! Could you please help me? There is a possibility to get IP address of squid client through extended ICAP X-Client-IP field. And is there a way to get port of that client who owns IP placed in X-Client-IP field? I would like to know which application of a desktop computer establish connec

Re: [squid-users] ICAP: how to get port of X-Client-IP

2014-12-12 Thread Александр Бубнов
I do not need to map it back remotely. I just need to know it. One of my applications collects logs about all connections on a desktop PC and another (ICAP server) collects what that applications sends to the Internet. And to know that traffic belongs to certain application I need to know port of t

Re: [squid-users] ICAP: how to get port of X-Client-IP

2014-12-14 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 13/12/2014 9:09 a.m., Александр Бубнов wrote: > I do not need to map it back remotely. I just need to know it. One > of my applications collects logs about all connections on a desktop > PC and another (ICAP server) collects what that applications s

Re: [squid-users] ICAP: how to get port of X-Client-IP

2014-12-16 Thread Alexander Bubnov
Hello Amos! Glad to get your answer! 1. I have tried to use %>p specifier for adaptation_meta directive. But it seems does not work that way I used it. I specified it in squid.conf: adaptation_meta X-CLIENT-SRCPORT %>p I found that specifier ony in logformat. May be you mixed it up? 2. About

Re: [squid-users] ICAP: how to get port of X-Client-IP

2014-12-16 Thread Amos Jeffries
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16/12/2014 9:49 p.m., Alexander Bubnov wrote: > > Hello Amos! Glad to get your answer! > > > 1. I have tried to use %>p specifier for adaptation_meta directive. > But it seems does not work that way I used it. I specified it in > squid.conf: > >

Re: [squid-users] ICAP: how to get port of X-Client-IP

2014-12-17 Thread Alexander Bubnov
-- /BR, Alexander Wed, 17 Dec 2014 01:42:37 +1300 от Amos Jeffries : >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >On 16/12/2014 9:49 p.m., Alexander Bubnov wrote: >> >> Hello Amos! Glad to get your answer! >> >> >> 1. I have tried to use %>p specifier for adaptation_meta directive. >>

Re: [squid-users] ICAP: how to get port of X-Client-IP

2014-12-17 Thread Alexander Bubnov
It works on sqiud 3.5.0.2!!! adaptation_meta X-Client-Port %>p Exactly as you said. Many thanks to you Amos! I am not sure about 3.4 version but it does not matter for me. -- /BR, Alexander Wed, 17 Dec 2014 15:52:00 +0300 от Alexander Bubnov : > > > >-- >/BR, Alexander > >Wed, 17 Dec 2014 01: