LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2011, 01:52 PM   #1
elishac
Member
 
Registered: Nov 2009
Posts: 522

Rep: Reputation: 33
network


hello,
what's the easiest way (in, let's say, ubuntu) to be notified when someone (besides me) starts using my wireless network ?
A script can be written if necessary.

Thanks.
 
Old 06-20-2011, 02:27 PM   #2
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
Wireles Network

The only way I know is to login as admin to the wireless hub and open the page that shows you the machines using the network.

There may be other ways but this is what I would do.
 
Old 06-20-2011, 03:51 PM   #3
Vlinux6
LQ Newbie
 
Registered: Nov 2010
Distribution: VectorLinux
Posts: 23

Rep: Reputation: 1
You could also use nmap. Run (or write a script to run): nmap <ip-address-of-router>/24
That should scan all devices on your network. You could then expand the script to filter the output as desired.
 
Old 06-20-2011, 04:03 PM   #4
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Could you be a little bit more precise please, I'm familiar with neither nmap nor scripting in general.
Would it be something like:
while 1
$s=nmap -sn 192.168.0.1/24
if $s != "" then return true
WEnd
 
Old 06-21-2011, 01:08 AM   #5
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
Can someone with better scripting skills help me ?
Thanks
 
Old 06-21-2011, 11:05 AM   #6
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
It doesn't have to be ubuntu by the way, in case it's much easier in another distro
 
Old 06-21-2011, 11:52 AM   #7
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
Track hosts that are up

Vlinux6 gave you the answer. You can make it a cron job if you want that's easy, not much to know about cron.

type "nmap -v -A <ip address range>/24

i.e nmap -v -A 192.168.0.254/24

You will get plenty of interesting information.

If Vlinux6 answer confused you go learn some bash,
 
Old 06-21-2011, 12:42 PM   #8
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I have some really basic understanding of bash which allows me to understand the general meaning of a script, but I'm not good enough to do it alone just yet, which is why I came here for help.
How could I filter the nmap output ?

Thanks
 
Old 06-21-2011, 06:10 PM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The best way to learn bash is to play with it.
Here are some good links
http://rute.2038bug.com/index.html.gz
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless network connects and works fine, but doesnt show up on the network manager newbie236 Linux - Newbie 1 07-07-2010 12:47 AM
b43-fwcutter-no connection with WEP encrypted network while WPA network works blorpton Linux - Networking 6 01-25-2010 02:06 AM
NETWORK transmit errors - assuming offline / NETWORK restart failed, could not find gcan Linux - Networking 3 11-13-2009 07:01 PM
LXer: Network World names Zenoss Clear Choice for Network Management LXer Syndicated Linux News 0 06-20-2007 08:01 AM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-02-2007 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration