[squid-users] established connections info

From: Shilov Ilya <sia@dont-contact.us>
Date: Thu, 8 May 2003 09:39:24 +0500

Good day!

Is there a way to identify all client_ip:port/squid_ip:port1 squid_ip:port2/remote_ip:port pair (so we can
identify that client_ip:port exchanges data to/from remote_ip:port
through squid) on currently established connections at any time?

/ # client -p 8090 cache_object://127.0.0.1/active_requests
There is only one entry:
Connection: 0xa4be300
        FD 30, read 81, wrote 0
        FD desc: cache_object://localhost.domain.com/active_requests
        in: buf 0xa412000, offset 0, size 0
        peer: 127.0.0.1:2351
        me: 127.0.0.1:8090
        nrequests: 1
        persistent: 0
        defer: n 0, until 0
uri cache_object://localhost.domain.com/active_requests
log_type TCP_MISS
out.offset 0, out.size 0
req_sz 81
entry 0x87e11c0/4DC3322C46256AA2ED1C17CA50984272
old_entry 0x0/N/A
start 1052296318.008228 (0.000000 seconds ago)

/ # client -p 8090 cache_object://127.0.0.1/filedescriptors
[skip]
Active file descriptors:
File Type Tout Nread * Nwrite * Remote Address Description
---- ------ ---- -------- -------- --------------------- ----------------------
[skip]
   8 Socket 1 1113135* 3177392 81.18.143.39.80 81.18.143.39 idle connection
[skip]
  31 Socket 1 1111315* 1210355 192.168.74.30.1034 Reading next request
  42 Socket 1 1112727* 3166278 81.18.143.39.80 81.18.143.39 idle connection
  61 Socket 1 1100229* 1193293 192.168.74.30.1042 Reading next request
  62 Socket 1 1099447* 1183395 192.168.74.30.1044 Reading next request
  64 Socket 1 1093202* 3113304 81.18.143.39.80 81.18.143.39 idle connection
  65 Socket 1 1090704* 1174534 192.168.74.30.1043 Reading next request
  66 Socket 1 1068555* 3046580 81.18.143.39.80 81.18.143.39 idle connection
[skip]

/ # client -p 8090 cache_object://127.0.0.1/client_list
[skip]
Address: 192.168.74.30
Name: 192.168.74.30
Currently established connections: 4
    ICP Requests 0
    HTTP Requests 3269782
        TCP_HIT 93 0%
        TCP_MISS 3269174 100%
        TCP_REFRESH_HIT 11 0%
        TCP_REFRESH_MISS 3 0%
        TCP_IMS_HIT 41 0%
        TCP_MEM_HIT 4 0%
        TCP_DENIED 456 0%
[skip]

In this example we have four connection from 192.168.74.30 to
81.18.143.39 through SQUID-server. But as there are no active requests
from this client I see no way to make correspondence between
remote 192.168.74.30 sockets as client and remote 81.18.143.39 sockets
as web-server.

Please give a suggestion.
Thanks!

P.S. Squid 2.4.STABLE1, FreeBSD 4.3-STABLE

____________________________

 Shilov Ilya A.
Received on Wed May 07 2003 - 22:41:52 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:21 MST