Locating an IP address via SMB

Dan Barrett nullpointer at pobox.com
Tue Jan 20 16:28:06 EST 2004


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

On Tuesday 20 January 2004 16:13, Joshua Pollak wrote:
> Is there a way to configure samba to log the IP's, workgroups, and 
> computer names of computers it notices on the network? Can I setup a 
> traffic monitor to do these things? I'm a bit of a novice in the 
> advanced network administration world, so any pointers would be 
> helpful.


Have your Samba server run nmbd with the debug level turned up (--debug=3), 
spitting to the logfile of your choice (--logfile=blah); same thing with 
smbd.  That might/should catch browse announcements.
Other than that, what about running $your_favorite_sniffer and grepping for 
SMB packets?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFADZ1psIjNiQTGkXARAtTzAKCT8Px2/eGyguzcpwThRvjNODgwIQCeJNKr
0P5sHyFX+MJVSx0UVGJqo2I=
=SBSP
-----END PGP SIGNATURE-----




More information about the Discuss mailing list