Solved

current internet user view

Posted on 2000-02-22
6
209 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
ID: 2552268
Try to use cachemgr.cgi if you use squid of course.
0
 
LVL 2

Expert Comment

by:GP1628
ID: 2558544
last?
finger? (by iteself with no user given)
netstat?
0
 

Expert Comment

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

2. view proxy's log files
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Expert Comment

by:ristridin
ID: 2590556
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
ID: 2645229
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
ID: 2645237
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access_log 17 121
Determine Who is Runnig my Bash Shell Script 4 81
LINUX backups with VEEAM 8 83
Linux Real Time Memory on Distinct 24 Cycle 7 19
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

810 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