Solved

current internet user view

Posted on 2000-02-22
6
206 Views
Last Modified: 2013-12-16
how can we view that who is connected with internet throught proxy and which site ?
0
Comment
Question by:umar
6 Comments
 
LVL 2

Expert Comment

by:proglot
Comment Utility
Try to use cachemgr.cgi if you use squid of course.
0
 
LVL 2

Expert Comment

by:GP1628
Comment Utility
last?
finger? (by iteself with no user given)
netstat?
0
 

Expert Comment

by:AGB
Comment Utility
1. use netstat command for view who is connected throught proxy now.

2. view proxy's log files
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 

Expert Comment

by:ristridin
Comment Utility
if you have access to the proxy logs you can analyze them by using a tool like webalizer, that generates html-output with graphics and all stuff.

you just have to tell squid to use common log file format, that can be done by editing the squid.conf file.

cheerio
Ristridin
0
 
LVL 2

Accepted Solution

by:
mapc earned 50 total points
Comment Utility
This problem arised couple of times at couple of places we've a squid installation.
The answer is quite surprising - it's very hard.
The reasons are:
1) The log file is updated only *after* the transfer is completed, e.g. if your client downloads ISO image - 650MB, then you'll see it only after he finishes.
2) The user-ip mapping is non trivial.
However, these problems could be solved:
1) use cachemgr interface, for example:
cache_object://localhost/info
will show the "info" screen which you can see with cachemgr.cgi
So, you don't use logs at all, you see the current TCP connections and URLs
netstat won't give you url, just ips.
2) use user authentification, so every user must authentificate before he surfs. Otherwise, create a db for fast lookups.
Now, put it all together and write a perl script.
This is an answer.
0
 
LVL 2

Expert Comment

by:mapc
Comment Utility
ah.. the cache_object://localhost/info
must be asked from proxyhost:proxyport
it could be other host rather then localhost, and then, authentification or special permissions (squid.conf) - acl, is needed.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now