Detect users when using Internet Sharing?

My wireless died months ago, so I've gone back to a wired ethernet connection for my TiBook. When my friends come to visit, I turn on my AirPort card and activate Internet Sharing. This all works well and good, with no tweaking necessary. Thank God for Apple, Inc.
The problem is, I would like to monitor who is using the internet connection. If my neighbors (I live in a condo) are leeching my access or, worse yet, attempting to hack my laptop, I would like to know about it. I can't find any app included in the OS to monitor such connections (which, btw, seems really insane, since this sharing functionality can be flipped on by clicking a single button). Any ideas on what software I should be using?
Thanks.
TiBook G4   Mac OS X (10.4.8)  

Nice try, but fails if they simply assign themselves a different network address, or if they get one from DHCP. No, since his laptop is now effectively the wireless access point and NAT routing device, the thing to do is check the arp cache. I'll bet there are third-party programs to do this, but being a homebrew kinda guy, I'd write a script like:
<pre>
#!/bin/bash -l
currarp=`arp -a`
if [ -f /tmp/arpcache ]
then
anychange=`echo "$currarp"|diff -q - /tmp/arpcache`
if [ "$anychange" ]
then
change=`echo "$currarp"|diff - /tmp/arpcache`
echo "someone new is on the network $change"|wall
echo "$change"|syslog -s
echo "$currarp" > /tmp/arpcache
fi
else
echo "$currarp" > /tmp/arpcache
fi
exit 0
</pre>
And then make it execute every minute with cron:
$crontab -e
(add a line to file with $EDITOR:)
* * * * * /path/to/script
And then as long as I've got a Terminal or xterm or other cli window up, I'll get a notification if there's any change on my network. Since my laptop is the access point, anybody connecting to the network is going to be in my arp cache, so we can examine that for any change.
It's not a pretty script, just whipped it up, but it should prove the concept.
-Phil
Powerbook G4, iMac (Intel), and tons of hardware sitting in the closet   Mac OS X (10.4.9)  

Similar Messages

  • Monitor/mange users when using 'Internet Sharing'

    Good day,
    I use a HUAWEI USB key modem to connect to the internet with my MBA when in class. Since one of our lecture rooms is not covered on the campus wifi network I often turn on Internet Sharing in class and bridge my HSDPA connection to my classmates (Small class, I know them all).
    Anyways today I wanting to monitor each user's usage as I caught one of my classmates downloading a 2GB file (I'm on an unlimited plan (soft cap of 40GB) so its not quota that I'm worried about, it just slowed the rest of us for the better part of an hour). Instead of being confrontational in class, and instead of booting everyone off the network I was wondering if anyone knew of a user management tool I could use to monitor those using the shared connection my notebook is broadcasting.
    Many thanks!
    Sam

    I guess this question is bound for the depths of the apple discussion forum with all other thousands of unanswered questions.
    Thanks for looking though

  • ITunes isn't showing up in the Devices list when using Internet Sharing.

    Due to a neccessary relocation of my router, my two computers upstairs no longer have Internet Access (as neither have wireless capability). I am going to fix this issue soon by wiring in a new network to where the router is, but in the mean time I've simply been using my PowerBook G4 (running Leopard) as a Wireless access point. I simply plugged my two computers (via a hub) into my PB and turned on Internet Sharing.
    Now, both of my computers (an iMac G3 running Tiger, and a Windows 7 computer) have Internet access fine. But neither of the two recognise my Apple TV now, which is connected to the router via WiFi. They both used to recognise the ATV and it would show up in devices fine, and the only thing that's changed now is the internet access is coming from the PB's sharing ability, since I did this both computer suddenly stopped seeing the ATV and I can no longer sync/connect. iTunes is up-to-date on all three computers (well except for the iMac which has an older version on it for obvious reasons).
    The PowerBook on the other hand, does still see the ATV in iTunes. So I can only assume that for some reason the PowerBook is stopping the Apple Tv from being seen by the other two computers. Is there anyway I can fix this? Until I sort out a new network to my router which will take many months at the moment due to my own time constraints, this is the only way my two computers can connect to the ATV.

    That's surprising Roger, because it was showing up in searches on iTunes and feedburner has a title that I inputted under that rss feed.  Is there another way for me to add a title that I am missing?  I have pasted the feedburner screen that I see when I login:
    The Bill And Mo Show
      Edit Feed Details… | Delete Feed… | Transfer Feed…
    You should not change "Original Feed" unless you move your original feed to a new domain or a new location on your existing server. Also, changing "Feed Address" will require you to update your feed subscribers with your new address; the previous feed address will no longer work.
    Feed Title:
    (Helps you identify your feed)
    Original Feed:
    (Feed published on your site)
    Feed Address:
    http://feeds.feedburner.com/ (Your FeedBurner feed)
      or cancel and do not make these changes 

  • Ssh when using internet sharing

    I have my Powerbook connect to the internet using my airport. I have set it to share the internet connection with an linux laptop through an ethernet connection.
    The ip assigned to my powerbook for the airport connection is 192.168.1.3
    The ip assigned to my linux laptop by my powerbook is 192.168.2.2
    The laptop can access the internet no problem there. But I can't login to the laptop using the terminal on my powerbook using:
    ssh -2 [email protected]
    When a do a port scan of the laptop I can see port 22 used for the ssh connection so I can't understand why it won't work. Any ideas?

    I am not an SSH expert by anymeans however the first step of troubleshooting a newtork problem is pinging the target machine.
    Can you ping the linux box from your powerbook?
    If so have you tried login into the linux box via SSH in verbose mode to see if that shows up any clues
    ssh -v -2 user@server
    iBookG4 1.33ghz. 20inch iMacG5, 1.2ghz Mac Mini, ipod video, iSight   Mac OS X (10.4.3)   Linksys WRT54gs+1.05 Talisman Firmware, Telewest 10mb/384k

  • HT4199 Best wifi setting for Airplay when using Internet sharing from iMac?

    My iPhone can't pair with my ATV-- maybe the wifi settings are not right? (They are both connected to same network)

    See http://support.apple.com/kb/HT4199.

  • Slow access to local WebServer using Internet Sharing

    Hi,
    I have a MacPro with a WLAN. Sometimes I use internet sharing to access the internet with my iPhone. When using the "Browse the Web" feature of Goodreader to access some files on my MacPro it took very long until I get a directory listing on the iPad (only a dew files and folder). The other Way aroung (using the Goodreader intergrate WebServer an access this from my desktop is quite fast.
    The desktop has an IP Number 192.168.1.2 the iPad someting with 10.xx.xx.xx. Putting the into the same ip number schema (using a wieeless router) works fine in both directions.
    Any idea why the server is so slow?
    Leif

    Hi,
    I don't know if any of you came up with an answer to this problem, because I have the exact same problem.
    I use version 5.0.01.0600 of the VPN Client. Windows Explorer hangs for a couple of seconds and then works fine for a couple of seconds and then hangs for a couple of seconds, etc. When logged on in Windows XP with a user with administrator rights this problem doesn't occur. Only when logged on with a Restricted user (Users Group) does this problem occur.
    Hoping you can help,
    Jeroen

  • How can I use Internet Sharing with Firewall on ?

    Hi,
    My PowerMac G5 is connected to the internet via Ethernet. I share the connection to a Powerboog via Airport using internet sharing. Everything is working fine except when I turn the Firewall on. After reading http://docs.info.apple.com/article.html?artnum=107653 I tried opening port 443 but it still does'nt work. I'd like to be able to use internet sharing with the firewall on. Anyone can help me ? Thanks!

    Hmmm, how curious... I never had to do that in 10.4.7 or 10.4.8... the only ones I ever tried Internet Sharing with.
    I'm wondering if turning the Firewall on after the Internet sharing is what's doing it? Just for kicks you might try turning off Internet Sharing, then Firewall on, then turn on Internet Sharing.
    If that doesn't work, then I'd personally try trashing...
    /Library/Preferences/com.apple.sharing.firewall.plist
    Then reboot and try the Firewall again.

  • WiFi IP address lost when activating internet sharing

    iMac (24-inch, Early 2009)
    I'm having troubles with sharing my wifi to internet.
    Worked great untill today. Wifi IP address (reserved/dedicated address from DHCP Airport Extreme 192.168.0.4) disappeares when the Internet Sharing is activated. Wifi in Network turnes orange and notes that no IP address is available.
    When the Internet Sharing is turned off, the DHCP connection seemes to restore and the normal IP address returns.
    Both IPv4 and IPv6 are active and available on the network. IPv6 address lost also.
    Did a complete rework of the Airport Extreme, complete rework of the iMac network environment, dumped all settings (trashed the config folder) rebooted modem, router, iMac in different order. Repeated everything with firewall off, tried again without encryption, no results.
    Everything works great, except for the Internet share (over ethernet for devices using wifi).
    DHCP / IP lost the moment the sharing is activated and restored the moment it is killed.
    Anyone got any suggestion?

    "Stuffed up" is not really a term we use much in networking. What did you actually do? Using what software? How are you connected to your local network, and how is that connected to the internet?
    What happens if you use the Apple menu to access System Preferences/Network?

  • How to remove Open/Save prompt when using Internet Explorer

    Acrobat XI Pro was deployed with custom MST that had When using Internet Explorer prompt for Open/Save.  Is there a hack that will disable this prompt without having to re-install Acrobat XI Pro?

    An engineer gave me a possible solution, but I don't have permission on my machine to test it. You can try the following:
    -- snip --
    This is because of not having necessary permissions to edit the registry. To obtain the permission, follow following steps:
    Right click on “HKEY_CLASSES_ROOT\AcroPDF.FDF.1” and click permissions.
    On permissions dialog, click Advanced.
    In the new dialog, select Owner tab and make current user as owner.
    Click Apply and close the dialog.
    Close the permission dialog.
    Try editing the registry as suggested.

  • Using Internet Sharing on Macbook Pro 17" (intel) with the iPhone

    Hi,
    i like to use Internet Sharing on my Macbook Pro 17" (intel) with OS X Leopard.
    Enabling Internet Sharing on Leopard works just fine. I share my Ethernet Connection with the Airport.
    I can connect to the Airport sharing the connection with multiple devices.
    It does however not work with the iPhone.
    The phone can see the network. It even connects and gets its lease (IP Adress / etc)...
    I did open a terminal and did ping the iphone. Doing that i disconnected the iphone from the wifi network and connected again. I found out that immediately after connecting the connection is working (ping reply) for about 2 or 3 seconds and then there is no reply... Sometimes it is working... but 99% of the connections dont work... (working for 2 seconds and then no reply)
    This is only with the Internet Sharing on the Macbook Pro (intel) in combination with the iPhone. I did not have any other wifi problems with the iPhone or with Internet Sharing on my Macbook Pro.
    Regards,
    somi
    Message was edited by: somi

    Hi,
    thank you for your posts!
    Nathan C: Did you notice this issue occurring when you were using Mac OS X 10.4?
    Yes! I did not get it to work with Tiger also.
    mucmac: just solved the issue by setting the channel for airport under Airport Options in sys prefs>sharing>internet sharing from Automatic to a specific channel
    lazarus: Doesn't work for me.
    and not for me
    Richard Cartledge: Maybe it is a Leopard issue?
    I think its a Macbook Pro / iPhone issue. Because other clients work well also the iPhone works on a Powerbook using Internet-Sharing.
    Aaron@SODE: No luck for me! Tried every Channel and every MacBook Pro and MacBook in the company. The only Internet Sharing working is a PowerBook G4 running Leopard 10.5.1. iPhone works with the Powerbook without any problem.
    The same applies to me! I really think it is a problem with the iPhone / Macbook Pro.
    mucmac: what model of macbook Pro do you use? I cant get it to work on a Macbook Pro 17"
    Regards,
    somi

  • Using internet sharing in other countries

    Hello,
    I've bought a HTC 8X unlocked cellphone from Verizon and moved to Brazil since them.
    How can I use internet sharing here? The cellphone says it's not allowed, although my internet plan here does allow me to do that.
    It seems besides being an unlocked phone, Verizon is still locking the internet sharing option.
    Any help is really appreciated,
    Cheers,
    André

    The answer is not really, but sort of.
    If you have a US mailing address, a credit card that bills to that address, and a US Social Security Number, you can purchase and activate an iPhone in the US. The problem is that the phone is locked to AT&T as the mobile provider, so when you go to those countries, you will be roaming, which is expensive for calls and outlandishly expensive for data. You will not be able to inset a SIM card from a local mobile provider; it will not work. Also, AT&T may cancel you for roaming too much.
    A fair number of people outside the US (and inside as well) appear to have purchased iPhones and hacked them so that they can be used as an iPod and WiFi device but not as a phone. I think those in other countries are hoping that someday they will be able to use the phone features in their country, though it is not certain that will ever be the case.

  • Can I use internet sharing to give internet to my Apple TV through my Macbook and use Airplay on the same computer at the same time?

    So I am using internet sharing from my Macbook to my Apple TV. The router providing internet to my Macbook has an ip address that looks like 192.168.0.x. Since the internet sharing feature assigns an ip address that looks like 192.168.2.x to my Apple TV, the Macbook is unable to see the Apple TV ("different" networks). Is there a way around this so I can share internet and still be able to use Airplay between the two?
    BTW I am using a Macbook Pro Retina 15'' (late 2013) on Mavericks 10.9.1 and Apple TV 3.
    Thanks.

    Why are you tyring to spilt your connection though the MBP?  Why don't you just connect them both to the router as they are meant to be setup?

  • HT202213 When using home sharing, can you copy music permanently from an iTunes library to an iPod touch?

    When using home sharing, can you copy music prmanently from a iTunes library to an iPod touch? Is it possible when home sharing music from my Mac to an iPod touch, can you copy the shard music on the ipod touch in to the ipods library?

    Not that I have found via a Google search

  • How can I prevent my family from having the ability to erase my devices when using Family Sharing?

    When using Family Sharing, it appears that all family members have the ability to lock and erase all devices that are linked to the family account. This does not seem very secure. For example, I wouldn't want my disgruntled family member to arbitrarily lock or erase devices, remotely.

    If you're using iTunes Match you might want to post this question over in the iTunes match forum:https://discussions.apple.com/community/itunes/itunes_match.  They may be able to help you over there.

  • Can I connect a PS3 wirelessly using internet sharing from my ethernet-wired iMac. It works for my Nook e-reader, but the PS3 give a DNS error code 8070102, I've tried alternate DNS settings, but no luck.

    Can I connect a PS3 wirelessly via the built-in AirPort card using internet sharing from my ethernet-wired iMac?  It works for my Nook e-reader, but the PS3 give a DNS error code 8070102, I've tried alternate DNS settings, but no luck.

    Can I connect a PS3 wirelessly via the built-in AirPort card using internet sharing from my ethernet-wired iMac?  It works for my Nook e-reader, but the PS3 give a DNS error code 8070102, I've tried alternate DNS settings, but no luck.

Maybe you are looking for

  • Filename from field

    I have seen in past discussions about the difficluty and even impossibility of creating a SAVE AS filename from a field value in an Adobe form.  These discussions were posted back in 2006-2008. I am hoping that someone knows a relatively simple way t

  • GR/GI Account, vendor account, stock account

    Dear All,             How to see GR/GI Account, Vendor Account, Stock Account in single screen or report/ Transaction code. Thanks Teknath

  • Invoice without GR

    Hello, We are using SRM 5.5, ECS and I have a question on invoice creation. I want to create invoices for the PO's before the GR is done, but the system is not letting me do that, I have checked th PO and the GR-Bsd Inv field is set, I think it is va

  • Trim With Outer Join in where

    Getting an error called Invalid relational Operator SELECT DISTINCT t1.recv_order_no, t2.reference_no FROM receiving_order t1, receiver_num t2 WHERE TRIM(t2.reference_no) (+) = TRIM (t1.recv_order_no) ORDER BY t2.reference_no ASC What I am doing wron

  • Smartform mail format(PDF) dropped by spam detector

    Hi, When we are firing mails from t-code CRMD_ORDER in CRM,in scenarios like sales order creation, etc.,mail is triggered as a PDF attachment to the partner's email ID . But at present this PDF attachment is treated as SPAM by spam scan software and