per-user bandwidth monitoring.

Kenny k at metropipe.net
Thu Sep 2 07:48:37 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings,

I am interested in patching openssh to provide per-user bandwidth monitoring.  
We are working on a project that uses ssh in tunneling mode.  I was thinking 
about implimenting a patch for monitoring bandwidth usage and wondered if 
anyone is already working on this.

My initial idea is to use the spawned process id and find which private key 
was accepted for authentication.  I would then look up the open sockets for 
that particular process and monitor bandwidth for them using the pcap 
library.

The approach outlined above would enable monitoring based on ssh key and not 
on ip address, so multiple users coming the same ip address (such as from a 
nat'd firewall setup) would be monitored correctly.

If anyone has any comments or suggestions, please respond :-)

/Kenny
http://www.metropipe.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFBNkO645NbQGIfM7IRAlnGAJ9OKzZEQsbpTOmXBCJ1B84u9swVxgCg4834
jiwUCdmOimnm5XedmWgyR3o=
=Qzia
-----END PGP SIGNATURE-----




More information about the openssh-unix-dev mailing list