-- James L. Ryan -- TaliesinSoft
> What I would like to
> know is if it is possible to determine who at a moment is connected via the
> router.
Take a look at my script "ArportUsers":
http://Gnarlodious.com/Apple/AppleScript/Scripts/AirportUsers/
Should work with your LinkSys. Runs tcpdump on port 80 and writes the log to
a file. Click the dock icon to view active machines and open the log in
Console.
Since the readout lists all machines active since the script was started, it
can only give you an idea of who is using your router cumulatively. It can't
tell you who is logged on right now. For that you may need to hack into your
router. There's probably a DHCP or logging feature there somewhere to look
at.
-- Gnarlie
echo 151164830769857037916921046974097992583040293105517P | dc
You don't say what model router you're using but it it's a BEF series
(possibly others as well), you can log and examine all connection
activity using the "Linksys Log Viewer for OS X". See
<http://freshmeat.net/projects/linksyslogviewerforosx/> for additional
details.
If you have DHCP enabled on the router, you can examine "DHCP Clients
Table" from the "Status" page of the router.
--
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3
7BDA 71ED 6496 99C0 C7CF
> is possible to determine who at a moment is connected via the
> router.
Here's a script that should do what you want (works here anyway). It will
ping every possible machine IP in the range set in the first two variables.
It waits until all broadcasts time out, then displays the results.
Be sure to unwrap lines:
-- Script by Gnarlodious: http://Gnarlodious.com/Apple/AppleScript/
set startIP to 2
set endIP to 20
set IPbase to do shell script "arp -a | sed -n '/1)/{p;q;}' | sed 's|.*
(\\(.*\\).1) .*|\\1.|' "
set pingTemp to "/tmp/pingtemp"
do shell script ": > " & pingTemp
repeat with i from startIP to endIP
set theIP to IPbase & i
do shell script "ping -c 1 -q " & theIP & " >> " & pingTemp & " 2>&1 &"
end repeat
delay 12
set ipText to do shell script "awk
'/^PING/{ip=$2}$NF==\"ms\"{split($(NF-1),t,\"/\");printf \"%s = %s
ms\\n\",ip,t[1]}' " & pingTemp
tell application "Finder" to set frontApp to (the name of (the path to the
frontmost application))
beep
tell application frontApp to display dialog the ipText with icon note
buttons {"OK"} default button 1
I use IPNetMonitorX from Sustainable Softworks. It has a lot of really
good network analysis tools. The URL is <http://www.sustworks.com/> It
costs $60, but it does the job. I like to know who is on my network,
and I also use it for troubleshooting the network when necessary.
I'm not sure if they have a trial version (I think so)f they do, try it
out.
IHTH,
AndyD
You may wish to re-think that attitude before the FBI shows up at your
door with questions regarding threats against POTUS or evidence of
kiddie PrOn downloaded or worse yet, being served from your Internet
connection...