[squid-users] ICAP: how to get port of X-Client-IP
Amos Jeffries
squid3 at treenet.co.nz
Tue Dec 16 12:42:37 UTC 2014
-----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:
>
> adaptation_meta X-CLIENT-SRCPORT %>p
>
> I found that specifier ony in logformat. May be you mixed it up?
We are generalizing the logformat tokens for use anywhere custom
formats or strings might be configured. I was hoping that header value
parameter had been updated already, but it seems not.
>
> 2. About mapping port transparently. How does it help to get (at
> least) mapped port number in ICAP?
I dont know. You were pretty adamant that the (ephemeral) port Squid
was receiving from was what you needed passed through, so I figured
you had a use-case for it.
>
> 3. I would like to track any software. Especially software which
> use "User Agent" field not legitimately or event does not fill it
> at all.
>
Thats possibly the answer to your Q#2.
Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)
iQEcBAEBAgAGBQJUkCi9AAoJELJo5wb/XPRjlhYIAK40g+UJ2jxSjYCQuDbwzdk/
uamQVRYZr51bmrGbt61XDC88lq1g9b9zCR768VySbwWziMbQng0VXkS+pwY13BHC
SzyTZ/9VHy8SQ7JOr81z6/aufspN1x3Ht8bSIP084ZtXvjAKKqQd0jawNUA+tU7W
VtLq4/LRaNAs+U4mlUL8n/E643Qkx+qGUbIBEtebGN+m9Av+SwjBfxpR43qEaonW
gCcDQU6UQM46CaTlqknW8CgkFfk7QfXQAJM+9Gkc1L/7Z5xIhxB45WcwuF/NEkwZ
zS8fT1gva23JnSyIdm32JNQM2V4PXUs0D15/JcdqubQdn71xyh9RMIjtYThqBeo=
=YKfQ
-----END PGP SIGNATURE-----
More information about the squid-users
mailing list